Template:InheritOcpNameType: Difference between revisions

From railML 2 Wiki
Jump to navigation Jump to search
[unchecked revision][checked revision]
m (Wiki syntax debugged)
No edit summary
Line 1: Line 1:
<ul>
<includeonly><ul>
<li>{{Attr|type}}: This is the meaning of the name. Possible values are:
<li>{{Attr|type}}: This is the meaning of the name. Possible values are:
* {{Enum|operationalName}} the {{IS:Doc|ocp}}s name under operational aspects
* {{Enum|operationalName}} the {{IS:Doc|ocp}}s name under operational aspects
Line 8: Line 8:
|notes_de =
|notes_de =
}}
}}
{{AddAnn|{{{type|}}}|{{{type_de|}}} }}</li></ul><noinclude>[[Category:AttributeTemplate]]</noinclude>
{{AddAnn|{{{type|}}}|{{{type_de|}}} }}</li></ul></includeonly><noinclude>
==Usage==
This template displays an attribute ''type'' and its possible values ''operationalName'', ''trafficName'', ''localName'' and, as a wildcard, ''other:anything''. It allows for optional comments in English and German.
===Arguments===
The template has two optional arguments:
*type: an English comment on ''type''.
*type_de: a German comment on ''type''.
===Dependencies===
The template depends on [[Template:Attr]], [[Template:Enum]], [[Template:IS:Doc]], [[Template:OtherEnum]] and [[Template:AddAnn]]. There are no other templates building on it.
==Examples==
<nowiki>{{InheritOcpNameType}}</nowiki>
 
delivers (in a box)
 
{|border="1"
|<ul>
<li>{{Attr|type}}: This is the meaning of the name. Possible values are:
* {{Enum|operationalName}} the {{IS:Doc|ocp}}s name under operational aspects
* {{Enum|trafficName}} the {{IS:Doc|ocp}}s name under traffic aspects
* {{Enum|localName}} an name in the local language
* {{OtherEnum
|notes_en =
|notes_de =
}}
{{AddAnn|| }}</li></ul>
|}
 
<nowiki>{{InheritOcpNameType
|type=An English comment.
|type_de=Ein deutscher Kommentar.
}}</nowiki>
 
delivers (in a box)
 
{|border="1"
|{{InheritOcpNameType
|type=An English comment.
|type_de=Ein deutscher Kommentar.
}}
|}
 
The template is employed e.g. by [[IS:ocp]].
 
[[Category:AttributeTemplate]]</noinclude>

Revision as of 19:03, 15 February 2016

Usage

This template displays an attribute type and its possible values operationalName, trafficName, localName and, as a wildcard, other:anything. It allows for optional comments in English and German.

Arguments

The template has two optional arguments:

  • type: an English comment on type.
  • type_de: a German comment on type.

Dependencies

The template depends on Template:Attr, Template:Enum, Template:IS:Doc, Template:OtherEnum and Template:AddAnn. There are no other templates building on it.

Examples

{{InheritOcpNameType}}

delivers (in a box)

  • type: This is the meaning of the name. Possible values are:
    • operationalName the ocps name under operational aspects
    • trafficName the ocps name under traffic aspects
    • localName an name in the local language
    • other:anything: Any value that does not fit any value from the previous enumeration list, fulfilling the constraint: at minimum two characters, whitespace is not allowed. Please, apply Dev:usingAny accordingly.

{{InheritOcpNameType |type=An English comment. |type_de=Ein deutscher Kommentar. }}

delivers (in a box)

  • type: This is the meaning of the name. Possible values are:
    • operationalName the ocps name under operational aspects
    • trafficName the ocps name under traffic aspects
    • localName an name in the local language
    • other:anything: Any value that does not fit any value from the previous enumeration list, fulfilling the constraint: at minimum two characters, whitespace is not allowed. Please, apply Dev:usingAny accordingly.

    An English comment.
    Ein deutscher Kommentar.

The template is employed e.g. by IS:ocp.