Template:InheritVersion: Difference between revisions

From railML 2 Wiki
Jump to navigation Jump to search
[unchecked revision][unchecked revision]
(Updated using new template (Vorlage:AddAnn))
(Documentation)
Line 1: Line 1:
* {{Attr|version}}: This is the version number of the RailML release the current XML file conforms to. It is ''not'' any internal numbering from a version control system for the data version. {{AddAnn|{{{version|}}}|{{{version_de|}}} }}<noinclude>[[Category:AttributeTemplate]]</noinclude>
<includeonly>* {{Attr|version}}: This is the version number of the RailML release the current XML file conforms to. It is ''not'' any internal numbering from a version control system for the data version. {{AddAnn|{{{version|}}}|{{{version_de|}}} }}</includeonly><noinclude>
==Usage==
This template displays the attribute ''version'' and a standard comment. It allows for comments both in English and German.
===Arguments===
The template allows for two optional arguments:
*version: English comment
*version_de: German comment
===Dependencies===
The template depends on [[Template:Attr]] and [[Template:AddAnn]]. No other templates build on it.
==Examples==
<pre>{{InheritVersion}}</pre>
 
delivers
 
{|border="1"
|
* {{Attr|version}}: This is the version number of the RailML release the current XML file conforms to. It is ''not'' any internal numbering from a version control system for the data version. {{AddAnn|| }}
|}
 
<pre>{{InheritVersion
|version=English comment
|version_de=Deutscher Kommentar
}}</pre>
 
delivers
 
{|border="1"
|
* {{Attr|version}}: This is the version number of the RailML release the current XML file conforms to. It is ''not'' any internal numbering from a version control system for the data version. {{AddAnn|English comment|Deutscher Kommentar }}
|}
 
[[Category:AttributeTemplate]]</noinclude>

Revision as of 18:22, 25 February 2016

Usage

This template displays the attribute version and a standard comment. It allows for comments both in English and German.

Arguments

The template allows for two optional arguments:

  • version: English comment
  • version_de: German comment

Dependencies

The template depends on Template:Attr and Template:AddAnn. No other templates build on it.

Examples

{{InheritVersion}}

delivers

  • version: This is the version number of the RailML release the current XML file conforms to. It is not any internal numbering from a version control system for the data version.
{{InheritVersion
|version=English comment
|version_de=Deutscher Kommentar
}}

delivers

  • version: This is the version number of the RailML release the current XML file conforms to. It is not any internal numbering from a version control system for the data version.
    English comment
    Deutscher Kommentar