Template:Infobox Version: Difference between revisions
Robloxian493 (talk | contribs) templatedata work |
mNo edit summary |
||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Infobox |
<includeonly>{{Infobox |
||
| title = {{#vardefineecho:title|{{{title|{{PAGENAME}}}}}}} {{#if:{{{name|}}}|({{{name}}})|}} |
|||
|name = |
|||
| image = {{#ifexist:File:{{#var:title}}.png |
|||
|bodystyle = |
|||
|[[File:{{#var:title}}.png|320px]] |
|||
|{{#ifexist:File:{{#var:title}}_Magazine.png |
|||
|titlestyle = |
|||
|[[File:{{#var:title}}_Magazine.png|320px]] |
|||
|abovestyle = background:#afc; |
|||
|{{#if:{{{image|}}}|[[File:{{{image}}}|320px]]|}}}}}} |
|||
|subheaderstyle = |
|||
| label1 = First version | data1 = {{{first_version|}}} |
|||
| label2 = Release version | data2 = {{{release_version|}}} |
|||
|above = |
|||
| label3 = {{#if:{{{next_update|}}}|Final version|Latest version}} |
|||
|subheader = |
|||
| data3 = {{{latest_version|{{{release_version|{{{first_version|}}}}}}}}} |
|||
|subheader2 = |
|||
| below = {{#if:{{{prev_update|}}}{{{next_update|}}}| |
|||
<div style="display:inline-block;padding:0 .4em">{{#if:{{{prev_update|}}}| |
|||
|imagestyle = |
|||
[[{{{prev_update}}}|◄ {{{prev_update}}}]] |
|||
|captionstyle = |
|||
|}}</div> |
|||
|image = {{{image|}}} |
|||
<div style="display:inline-block;padding:0 .4em">{{#if:{{{next_update|}}}| |
|||
|caption = |
|||
[[{{{next_update}}}|{{{next_update}}} ►]] |
|||
|image2 = |
|||
|}}</div> |
|||
|caption2 = |
|||
⚫ | |||
⚫ | |||
|headerstyle = background:{{{colour|#ccf}}}; |
|||
{{#if:{{NAMESPACE}}||[[Category:Updates]]}}</includeonly><noinclude>{{Documentation}}</noinclude> |
|||
|labelstyle = |
|||
|datastyle = |
|||
| label1 = First release |
|||
| data1 = {{{first_release|}}} |
|||
| label2 = Current release |
|||
| data2 = {{{current_release|}}} |
|||
| label3 = Official release |
|||
| data3 = {{{official_release|}}} |
|||
| label4 = Final release |
|||
| data4 = {{{final_release|}}} |
|||
| label5 = Successor |
|||
| data5 = {{{successor|}}} |
|||
| label6 = Predecessor |
|||
| data6 = {{{predecessor|}}} |
|||
⚫ | |||
<noinclude>{{Documentation}}<templatedata> |
|||
{ |
|||
"params": { |
|||
"image": { |
|||
"label": "Magazine Image", |
|||
"description": "The PB magazine that was published for this update. (you can find it on the subreddit)", |
|||
"example": "[[File:0.99 magazine.png]]", |
|||
"type": "wiki-file-name", |
|||
"suggested": true |
|||
}, |
|||
"first_release": { |
|||
"label": "First release", |
|||
"description": "The first version published for this update, most likely a beta.", |
|||
"example": "0.9830 - 1 May, 2023", |
|||
"type": "string", |
|||
"required": true |
|||
}, |
|||
"current_release": {}, |
|||
"official_release": { |
|||
"label": "Official Release", |
|||
"description": "The first RTM version of this update.", |
|||
"example": "0.9900 - 5 May, 2023 (Steam), 6 May, 2023 (Android), 9 May, 2023 (iOS)", |
|||
"type": "string", |
|||
"required": true |
|||
}, |
|||
"final_release": { |
|||
"label": "Final release", |
|||
"description": "The final version for this update. Only use this once this update has been succeeded by a beta version of the next update.", |
|||
"example": "0.9960 - 3 September, 2023", |
|||
"suggested": true |
|||
}, |
|||
"successor": {}, |
|||
"predecessor": {} |
|||
}, |
|||
"paramOrder": [ |
|||
"image", |
|||
"first_release", |
|||
"current_release", |
|||
"official_release", |
|||
"final_release", |
|||
"successor", |
|||
"predecessor" |
|||
] |
|||
⚫ | |||
</templatedata></noinclude> |
Latest revision as of 18:02, 24 April 2024
Infobox for Progressbar95 versions
Basic template[edit source]
The following is the base code required to generate an infobox. One can copy and paste the base code into an article and insert relevant information in front of the =
signs.
{{Infobox Version
| title =
| name =
| first_version =
| release_version =
| latest_version =
| prev_update =
| next_update =
}}
Full usage[edit source]
Parameter | Function | Example | Default value |
---|---|---|---|
title |
The version string of the update | 0.86 |
{{PAGENAME}}
|
name |
The alternative name of the update | September Update |
|
image |
The filename of the "PB Magazine" issue for the update (posted by u/icoeye on r/Progressbar95), without 'File:' | 0.86.png |
{{PAGENAME}}.png or {{PAGENAME}}_Magazine.png ; None if neither exists
|
first_version |
The first version of the update (most of the time a beta version, sometimes a release) | {{Version|ver=0.8450|type=alpha|android_date={{Date|2021|9|26}}}} |
|
release_version |
The first major RTM (release) version of the update | {{Version|ver=0.8600|type=rtm|steam_date={{Date|2021|10|3}}|android_date={{Date|2021|10|4}}|ios_date={{Date|2021|10|5}}}} |
|
latest_version |
The last version of the update. Either the latest version of the game available ("Latest version"), or the version before the first version leading up to the next game update ("Final version") | {{Version|ver=0.8610|type=hotfix|date={{Date|2021|10|13}}}} |
release_version > first_version > None
|
prev_update |
The name of the previous game update | 0.84 |
|
next_update |
The name of the next game update | 0.88
|
TemplateData documentation used by VisualEditor and other tools
Infobox for Progressbar95 versions
Parameter | Description | Type | Status | |
---|---|---|---|---|
Title | title | The version string of the update
| String | suggested |
Name | name | The alternative name of the update
| String | suggested |
Magazine image | image | The filename of the "PB Magazine" issue for the update (posted by u/icoeye on r/Progressbar95), without 'File:'
| String | optional |
First version | first_version | The first version of the update (most of the time a beta version, sometimes a release)
| Unknown | suggested |
Release version | release_version | The first major RTM (release) version of the update
| Unknown | suggested |
Latest version | latest_version | The last version of the update. Either the latest version of the game available ("Latest version"), or the version before the first version leading up to the next game update ("Final version")
| Unknown | suggested |
Previous Update | prev_update | The name of the previous game update
| String | suggested |
Next Update | next_update | The name of the next game update
| String | suggested |