Template:Current version: Difference between revisions

From PZwiki
m (fixed category being transcluded)
(added switch statement for different versions)
Line 1: Line 1:
<includeonly>39.67.5</includeonly><noinclude>A simple template that displays the current version so articles can be updated on a single page (here) rather than updating each page individually.==Usuage==
<includeonly>{{#switch:{{{1}}}
'''Simply paste this code into your article:'''
| IWBUMS| iwbums = 39.67.5
| test    = 40.3
| #default = 39.67.5
}}</includeonly><noinclude>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==
 
===Stable===


<code><nowiki>{{Current version}}</nowiki></code>
<code><nowiki>{{Current version}}</nowiki></code>


:'''Will display:'''
'''Will display:''' {{Current version}}
 
===IWBUMS===
 
<code><nowiki>{{Current version|IWBUMS}}</nowiki></code>
'''or'''
<code><nowiki>{{Current version|iwbums}}</nowiki></code>
 
'''Will display:''' {{Current version}}
 
===Test===
 
<code><nowiki>{{Current version|test}}</nowiki></code>


{{Current version}}
'''Will display:''' {{Current version|test}}


[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Revision as of 10:47, 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

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