Difference between revisions of "Template:Current version"

From PZwiki
Jump to: navigation, search
m
m
Line 1: Line 1:
 
<includeonly>{{#switch:{{{1}}}
 
<includeonly>{{#switch:{{{1}}}
 
| date | Date = {{REVISIONDAY}}/{{REVISIONMONTH1}}/{{REVISIONYEAR}}
 
| date | Date = {{REVISIONDAY}}/{{REVISIONMONTH1}}/{{REVISIONYEAR}}
| IWBUMS | iwbums = [[Build 41|41.27]]
+
| IWBUMS | iwbums = [[Build 41|41.28]]
 
| test | Test = [[Build 40|40.8]]
 
| test | Test = [[Build 40|40.8]]
 
| stable | Stable = [[Build 40|40.43]]
 
| stable | Stable = [[Build 40|40.43]]
 
}}{{#switch: {{{date}}}
 
}}{{#switch: {{{date}}}
| IWBUMS | iwbums = 15/1/2020
+
| IWBUMS | iwbums = 30/1/2020
 
| test | Test = 22/08/2018
 
| test | Test = 22/08/2018
 
| stable | Stable = 20/12/2018
 
| stable | Stable = 20/12/2018
 
}}</includeonly><noinclude>{{Current version}}{{Documentation}}[[Category:Templates]]</noinclude>
 
}}</includeonly><noinclude>{{Current version}}{{Documentation}}[[Category:Templates]]</noinclude>

Revision as of 06:48, 31 January 2020

[view] [edit] [history] [purge] Template documentation
A simple template that displays the current version so articles can be updated on a single page (here) rather than updating each page individually. Depending on the variable, this template can display the current stable, IWBUMS, or test version.

Usage

Date updated

This is to identify the last time this was updated.

{{Current version|date}}

Will display: 31/1/2020


Stable

Used to display the current stable build {{Current version|stable}}

Will display: 40.43


{{Current version|date=stable}}

Will display: 20/12/2018


IWBUMS

Used to display the current iwbums build {{Current version|IWBUMS}} or {{Current version|iwbums}}

Will display: 41.32


{{Current version|date=IWBUMS}} or {{Current version|date=iwbums}}

Will display: 13/3/2020


Test

Used to display the current public test build {{Current version|test}}

Will display: 40.8


{{Current version|date=test}}

Will display: 22/08/2018

Updating

The variables within this template can be updated easily.

Version Number

Replace the old version number with the new one:
| stable | Stable = [[Build 40|40.43]]

If it's a whole new build, replace the article name - this will provide a link to the relevant changelogs:
| stable | Stable = [[Build 40|40.43]]

Date

Replace the old date with when the update was released:

| stable | Stable = 20/12/2018
Documentation transcluded from Template:Current version/doc.
Editors can experiment in this template's sandbox (create)