Template:InheritId: Difference between revisions

From railML 2 Wiki
Jump to navigation Jump to search
[unchecked revision][checked revision]
m (Link to FAQ page (CO:identities) added)
No edit summary
Line 1: Line 1:
* {{Attr|id}} {{Intro|2.0}}: This is the unique identifier which is used to refer to the current element. It is used for XML file internal unambiguous references. [[CO:identities|How to handle it?]] {{AddAnn|{{{id|}}}|{{{id_de|}}} }}<noinclude>[[Category:AttributeTemplate]]</noinclude>
<includeonly>* {{Attr|id}} {{Intro|2.0}}: This is the unique identifier which is used to refer to the current element. It is used for XML file internal unambiguous references. [[CO:identities|How to handle it?]] {{AddAnn|{{{id|}}}|{{{id_de|}}} }}</includeonly><noinclude>
==Usage==
This template displays an attribute ''id'' with a standard comment. It allows for a variable comment in English and German.
===Arguments===
This template has two optional arguments:
* id: an English comment
* id_de: a German comment
===Dependencies===
This template depends on [[Template:Attr]] and [[Template:AddAnn]]. It is hardly used directly, but mostly via a dozen of templates depending on it, e.g. [[Template:InheritIdName]]
==Example==
<nowiki>{{InheritId}}</nowiki>
 
delivers
 
* {{Attr|id}} {{Intro|2.0}}: This is the unique identifier which is used to refer to the current element. It is used for XML file internal unambiguous references. [[CO:identities|How to handle it?]] {{AddAnn|| }}
 
<nowiki>{{InheritId
|id=An English comment
|id_de=A German comment
}}</nowiki>
 
delivers (in a box)
 
{|border="1"
|
* {{Attr|id}} {{Intro|2.0}}: This is the unique identifier which is used to refer to the current element. It is used for XML file internal unambiguous references. [[CO:identities|How to handle it?]] {{AddAnn|An English comment|A German comment }}
|}
 
[[Category:AttributeTemplate]]</noinclude>

Revision as of 16:58, 15 February 2016

Usage

This template displays an attribute id with a standard comment. It allows for a variable comment in English and German.

Arguments

This template has two optional arguments:

  • id: an English comment
  • id_de: a German comment

Dependencies

This template depends on Template:Attr and Template:AddAnn. It is hardly used directly, but mostly via a dozen of templates depending on it, e.g. Template:InheritIdName

Example

{{InheritId}}

delivers

  • id (introduced with version 2.0): This is the unique identifier which is used to refer to the current element. It is used for XML file internal unambiguous references. How to handle it?

{{InheritId |id=An English comment |id_de=A German comment }}

delivers (in a box)

  • id (introduced with version 2.0): This is the unique identifier which is used to refer to the current element. It is used for XML file internal unambiguous references. How to handle it?
    An English comment
    A German comment