Template:Version hg: Difference between revisions
[checked revision] | [checked revision] |
(Cleanup) |
No edit summary |
||
(13 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>|bgcolor={{#switch:{{{1}}}|{{current}}="green"|#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> | <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 {{ | This template works in the background to support [[Template:Version]] and [[Template:UseCase]]. It displays a table field, explaining, for which {{rml}} 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 {{current}}]]<!--{{current}} hier nicht expandieren!-->. | 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!-->. | ||
Line 12: | Line 12: | ||
As this template should work under the hood only, it can be illustrated with [[Template:Version#Example]] 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]]. | ||
[[Category: | {{interwiki}} | ||
[[Category:ContentTemplate]] | |||
</noinclude> |
Latest revision as of 17:52, 16 January 2023
Application
This template works in the background to support Template:Version and Template:UseCase. It displays a table field, explaining, for which railML® 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.