Template:Version: Difference between revisions

From railML 2 Wiki
Jump to navigation Jump to search
[checked revision][checked revision]
Line 28: Line 28:
delivers
delivers


{| class="wikitable" style="text-align:center"
{{version|0.80}}
|bgcolor={{#switch:0.80|{{current}}="green"|#default="#F0CA00"}}|This page refers to version 0.80 of {{rml}}.<br>Therefore the content is {{#switch:0.80|{{current}}=up to date.|#default=possibly outdated.<br>The current version is {{current}}.}}
|}


The depiction has been adapted in these examples:
*The automatic categorization has been suppressed
*The window is displayed within the paragraph. Normally it is displayed on the right and surrounded by the flowing text.
[[Category:Template]]</noinclude>
[[Category:Template]]</noinclude>

Revision as of 11:47, 6 May 2019

Application

This template displays, for which version of railML® 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.

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.

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 railML® 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

{{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