Template:Version

From railML 2 Wiki
Revision as of 17:33, 16 June 2016 by RailML Coord Documentation (talk | contribs) (Template taken from http://en.wiki.railvivid.railml.org/index.php?title=Template:Version)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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|2.5}}

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

This page refers to version 2.5 of railML®.
Therefore the content is up to date.

{{version|0.80}}

delivers

This page refers to version 0.80 of railML®.
Therefore the content is possibly outdated.
The current version is 2.5.

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.