Template:Current version: Difference between revisions

From PZwiki
(added switch statement for different versions)
(added date. Probably still needs some work for different date formats in different languages.)
Line 1: Line 1:
<includeonly>{{#switch:{{{1}}}
<includeonly>{{#switch:{{{1}}}
| IWBUMS| iwbums = 39.67.5
| date | Date = 28/07/2018
| IWBUMS | iwbums = 39.67.5
| test    = 40.3
| test    = 40.3
| #default = 39.67.5
| #default = 39.67.5
Line 6: Line 7:


==Usage==
==Usage==
===Date===
This is to identify the last time this was updated.
<code><nowiki>{{Current version|date}}</nowiki></code>
'''Will display:''' {{Current version|date}}


===Stable===
===Stable===

Revision as of 11:02, 28 July 2018

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

This is to identify the last time this was updated.

{{Current version|date}}

Will display: 28/07/2018

Stable

{{Current version}}

Will display: 39.67.5

IWBUMS

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

Will display: 39.67.5

Test

{{Current version|test}}

Will display: 40.3