Difference between revisions of "Template:Infobox version"

From Blaston Wiki
Jump to navigation Jump to search
m (Fixed image placeholder to be the generic game update image)
(Updated template to use infobox module)
Line 1: Line 1:
<includeonly>{{#switch: {{NAMESPACE}}
+
{{Infobox|child={{{child|{{{embed|}}}}}}
|{{ns:User}}|{{ns:User talk}}=
+
 
|#default=<div id="infoboxborder">
+
| above      = {{{name|Unnamed}}}
{{{!}} id="infoboxtable"
+
 
{{!}}colspan="2" id="infoboxheader"{{!}}{{{name|}}}
+
| image      = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{#ifeq:{{lc:{{{landscape|}}}}}|yes|{{min|300|{{#if:{{#ifexpr:{{{image size|{{{image_size|{{{imagesize|}}}}}}}}}}}|300|{{{image size|{{{image_size|{{{imagesize|}}}}}}}}}}}}}x200px|{{{image size|{{{image_size|{{{imagesize|}}}}}}}}}}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{alt|}}}|suppressplaceholder=yes}}
{{!}}-
+
 
{{!}}colspan="2" style="text-align:center;"{{!}}{{#if: {{{portrait}}}|[[File:{{#ifexist:File:{{{portrait|}}}|{{{portrait|}}}|Game-Update.jpg}}|link=]]|[[File:Game-Update.jpg|link=]]}}
+
| label2    = Date Released
{{!}}-
+
| data2      = {{{date_released|Unknown}}}
{{!}}colspan="2" id="infoboxsection" style="text-align: center;"{{!}}Details
+
 
{{!}}-
+
| label10    = Version Number
{{!}}id="infoboxsection"{{!}}Date Released:
+
| data110    = {{{version_number|Unknown}}}
{{!}}id="infoboxdetail" class="no-wrap"{{!}}{{{date_released|Unknown}}}
+
 
{{!}}-
+
| label11    = Twitter
{{!}}id="infoboxsection"{{!}}Version Number:
+
| data11    = [{{{twitter|}}}Tweet]
{{!}}id="infoboxdetail" class="no-wrap"{{!}}{{{version_number|Unknown}}}
+
 
{{!}}-
+
| label12    = Steam
{{#if:{{{twitter|}}}|
+
| data12    = [{{{steam|}}}Steam]
{{!}}id="infoboxsection"{{!}}Twitter:
+
 
{{!}}id="infoboxdetail"{{!}}[{{{twitter|}}} Tweet]
+
| label13    = Oculus
{{!}}-
+
| data13    = [{{{oculus|}}}Oculus]
|}}
+
 
{{#if:{{{steam|}}}|
+
}}
{{!}}id="infoboxsection"{{!}}Steam:
+
<noinclude>{{documentation}}</noinclude>
{{!}}id="infoboxdetail"{{!}}[{{{steam|}}} Steam]
 
{{!}}-
 
|}}
 
{{#if:{{{oculus|}}}|
 
{{!}}id="infoboxsection"{{!}}Oculus:
 
{{!}}id="infoboxdetail"{{!}}[{{{oculus|}}} Oculus]
 
{{!}}-
 
|}}
 
{{!}}}
 
</div>
 
{{#ifeq:{{lc:{{{toc|}}}}} | n | |{{TOC right}}}}
 
}}</includeonly>
 
<noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude>
 

Revision as of 14:59, 10 May 2021

Unnamed
Date ReleasedUnknown
Twitter[Tweet]
Steam[Steam]
Oculus[Oculus]
50px Template documentation[view] [edit] [history] [purge]

This template is used to create an infobox for a game update in Blaston.

Parameter Description

{{Infobox version
| name=
| image=
| alt=
| date_released=
| version_number=
| facebook=
| twitter=
| steam=
| oculus=
}}

Name

The name of the game update. This is shown at the top of the infobox. If not included, Unnamed Version is displayed.

Image

The default image if one isn't included.

File name of the game update's image that has been uploaded to the Blaston Wiki. If an image is not included, the default image is displayed

Alt

Alt text for the image in the infobox.

Date Released

The release date of the game update. If not included, Unknown is displayed.

Version Number

This denotes the version number of this particular game update. If not included, Unknown is displayed.

Facebook

A link to the announcement of the game update on Facebook.

Twitter

A link to the announcement of the game update on Twitter.

Steam

A link to the announcement of the game update on Steam.

Oculus

A link to the announcement of the game update on Oculus.

Example

World Expansion Update - 1.9
World Expansion Update - 1.9
Date Released7th April 2021
Twitter[1]
Steam[2]
Oculus[3]


{{Infobox version | name= World Expansion Update - 1.9 | image= World-Expansion-Update.png | alt= World Expansion Update - 1.9 | date_released= 7th April 2021 | version_number= 1.9 | facebook= https://www.facebook.com/BlastonGame/photos/a.132801825028911/289286976047061 | twitter= https://twitter.com/BlastonGame/status/1379720672738426885 | steam= https://store.steampowered.com/news/app/1427890/view/2996557131233425248 | oculus= https://www.oculus.com/experiences/quest/developer-post/856988564879364/ }}