Template:Version: Difference between revisions

From railML 2 Wiki
Jump to navigation Jump to search
[checked revision][checked revision]
Line 8: Line 8:
|#default=unknown}}</includeonly><noinclude>
|#default=unknown}}</includeonly><noinclude>
==Application==
==Application==
This template displays, for which version of {{rml}} a page was written. It compares that string with the current version number deposed in [[Template:Current]] and reports, whether the content can be considered to be up to date or not.
This template maps, whether a certain version number exists and whether it is current, upcoming or outdated.
===Arguments===
The only, unnamed and default argument of this template is the version number to be checked.


As to support the maintanance of this wiki, the template categorizes pages, in which it is included, according to the version number for which they have been written. Thus pages that are up to date can be found in  [[category:Pages written for version {{current}}]]<!--{{current}} hier nicht expandieren!-->.
This template is intenden to be included at the top of a page. Please, consider, that [[Template:Current]] has to be adapted by hand whenever a new version of {{rml}} is published.
===Arguments===
The only, unnamed and default argument of this template is the version number for which a page has been written.
===Dependencies===
This template employs [[Template:Current]]; there are no other templates using it.
==Example==
==Example==
<nowiki>{{version|{{current}}}}</nowiki>
<nowiki>{{version|{{current}}}}</nowiki>

Revision as of 11:50, 6 May 2019

Application

This template maps, whether a certain version number exists and whether it is current, upcoming or outdated.

Arguments

The only, unnamed and default argument of this template is the version number to be checked.

Example

{{version|{{current}}}}

delivers (as an illustrative example; Template:Current should never be employed within this template in practice; always write the version number explicitely)

unknown

{{version|0.80}}

delivers

unknown