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)
m
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#switch: {{NAMESPACE}}  
+
{{Infobox|child={{{child|{{{embed|}}}}}}
|{{ns:User}}|{{ns:User talk}}=
+
 
|#default=<div id="infoboxborder">
+
| above      = {{{name|Unnamed Version}}}
{{{!}} id="infoboxtable"
+
 
{{!}}colspan="2" id="infoboxheader"{{!}}{{{name|}}}
+
| image      = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|Game-Update.jpg}}}|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|Unnamed Game Update}}}|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
+
 
{{!}}-
+
| label3    = Version Number
{{!}}id="infoboxsection"{{!}}Date Released:
+
| data3    = {{{version_number|Unknown}}}
{{!}}id="infoboxdetail" class="no-wrap"{{!}}{{{date_released|Unknown}}}
+
 
{{!}}-
+
| label4    = {{#if:{{{facebook|}}}|Facebook}}
{{!}}id="infoboxsection"{{!}}Version Number:
+
| data4    = {{#if:{{{facebook|}}}|[{{{facebook|}}} Facebook Post]}}
{{!}}id="infoboxdetail" class="no-wrap"{{!}}{{{version_number|Unknown}}}
+
 
{{!}}-
+
| label5    = {{#if:{{{twitter|}}}|Twitter}}
{{#if:{{{twitter|}}}|
+
| data5    = {{#if:{{{twitter|}}}|[{{{twitter|}}} Tweet]}}
{{!}}id="infoboxsection"{{!}}Twitter:
+
 
{{!}}id="infoboxdetail"{{!}}[{{{twitter|}}} Tweet]
+
| label6    = {{#if:{{{steam|}}}|Steam}}
{{!}}-
+
| data6    = {{#if:{{{steam|}}}|[{{{steam|}}} Steam]}}
|}}
+
 
{{#if:{{{steam|}}}|
+
| label7    = {{#if:{{{oculus|}}}|Oculus}}
{{!}}id="infoboxsection"{{!}}Steam:
+
| data7    = {{#if:{{{oculus|}}}|[{{{oculus|}}} Oculus]}}
{{!}}id="infoboxdetail"{{!}}[{{{steam|}}} Steam]
+
 
{{!}}-
+
}}<noinclude>{{documentation}}</noinclude>
|}}
 
{{#if:{{{oculus|}}}|
 
{{!}}id="infoboxsection"{{!}}Oculus:
 
{{!}}id="infoboxdetail"{{!}}[{{{oculus|}}} Oculus]
 
{{!}}-
 
|}}
 
{{!}}}
 
</div>
 
{{#ifeq:{{lc:{{{toc|}}}}} | n | |{{TOC right}}}}
 
}}</includeonly>
 
<noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude>
 

Latest revision as of 20:11, 5 June 2021

Unnamed Version
Unnamed Game Update
Date ReleasedUnknown
Version NumberUnknown
50px Template documentation[view] [edit] [history] [purge]

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

Parameter Description[edit source]

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

Name[edit source]

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

Image[edit source]

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[edit source]

Alt text for the image in the infobox.

Date Released[edit source]

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

Version Number[edit source]

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

Facebook[edit source]

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

Twitter[edit source]

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

Steam[edit source]

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

Oculus[edit source]

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

Example[edit source]

World Expansion Update - 1.9
World Expansion Update - 1.9
Date Released7th April 2021
Version Number1.9
FacebookFacebook Post
TwitterTweet
SteamSteam
OculusOculus

{{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/ }}