Template:Version hg: Difference between revisions

From railML 2 Wiki
Jump to navigation Jump to search
[checked revision][checked revision]
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>|bgcolor={{#if:{{{1|}}}|{{#switch:{{{1}}}|{{current}}="green"|#default="#F0CA00"}}|"red"}}|This page refers to {{#if:{{{1|}}}|version {{{1}}}|'''no specified version'''}} of {{rml}}.<br>{{#if:{{{1|}}}|Therefore the content is {{#switch:{{{1}}}|{{current}}=up to date.|{{upcoming|{{{1}}}}}=not yet finalized.<br>The current version is {{current}}.|#default=possibly outdated.<br>The current version is {{current}}.}}|'''Please, add the applicable version!'''<br>The current version is {{current}}.}}{{#switch: {{{1}}}|0|1.0|1.1|2.0|2.2|2.3|3.0=[[category:Pages written for version {{{1}}}]]|#default=[[category:Pages written for a nonexistant version]]}}</includeonly><noinclude>
<includeonly>|bgcolor={{#if:{{{1|}}}|{{#switch:{{{1}}}|{{current|{{{1}}}}}="green"|#default="#F0CA00"}}|"red"}}|This page refers to {{#if:{{{1|}}}|version {{{1}}}|'''no specified version'''}} of {{rml}}.<br>{{#if:{{{1|}}}|Therefore the content is {{#switch:{{{1}}}|{{current|{{{1}}}}}=up to date.|{{upcoming|{{{1}}}}}=not yet finalized.<br>The current version is {{current}} or {{current|3.1}}.|#default=possibly outdated.<br>The current version is {{current}} or {{current|3.1}}.}}|'''Please, add the applicable version!'''<br>The current version is {{current}} or {{current|3.1}}.}}{{#switch: {{{1}}}|0|1.0|1.1|2.0|2.2|2.3|3.0=[[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 10:42, 2 April 2019

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.