Template:Version hg: Difference between revisions
[checked revision] | [checked revision] |
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>|bgcolor={{#switch:{{{1}}}|{{current}}="green"| | <includeonly>|bgcolor={{#switch:{{{1}}}|{{current}}="green"|="red"|#default="#F0CA00"}}|This page refers to version {{{1}}} of {{rml}}.<br>Therefore the content is {{#switch:{{{1}}}|{{current}}=up to date.|#default=possibly outdated.<br>The current version is {{current}}.}}{{#switch: {{{1}}}|0|1.0|1.1|2.0|2.2|2.3=[[category:Pages written for version {{{1}}}]]|#default=[[category:Pages written for a nonexistant version]]}}</includeonly><noinclude> | ||
==Application== | ==Application== | ||
This template works in the background to support [[Template:Version]] and [[Template:UseCase]]. It displays a table field, explaining, for which {{vivid}} version a page is 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 works in the background to support [[Template:Version]] and [[Template:UseCase]]. It displays a table field, explaining, for which {{vivid}} version a page is 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. |
Revision as of 16:40, 21 July 2016
Application
This template works in the background to support Template:Version and Template:UseCase. It displays a table field, explaining, for which railVIVID® version a page is 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 category:Pages written for version 2.5.
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; it is used by Template:Version and Template:UseCase.
Example
As this template should work under the hood only, it can be illustrated with Template:Version#Example and Template:UseCase#Example.