Template:OtherEnum: Difference between revisions
[unchecked revision] | [unchecked revision] |
Line 13: | Line 13: | ||
delivers | delivers | ||
<tt>'''other:anything'''</tt> Any value that does not fit any value from the previous enumeration list, fulfilling the constraint: at minimum two characters, whitespace is not allowed. {{#if: | <br/> | <tt>'''other:anything'''</tt> Any value that does not fit any value from the previous enumeration list, fulfilling the constraint: at minimum two characters, whitespace is not allowed. {{#if: | <br/> '' '' | }} {{#if: | <br/> <span style="color:#0000FF"> '' '' </span> | }} | ||
<nowiki>{{OtherEnum|notes_en=An English comment.|notes_de=Ein deutscher Kommentar.}}</nowiki> | <nowiki>{{OtherEnum|notes_en=An English comment.|notes_de=Ein deutscher Kommentar.}}</nowiki> | ||
Line 19: | Line 19: | ||
delivers | delivers | ||
<tt>'''other:anything'''</tt> Any value that does not fit any value from the previous enumeration list, fulfilling the constraint: at minimum two characters, whitespace is not allowed. {{#if: An English comment. | <br/> | <tt>'''other:anything'''</tt> Any value that does not fit any value from the previous enumeration list, fulfilling the constraint: at minimum two characters, whitespace is not allowed. {{#if: An English comment. | <br/> '' An English comment. '' | }} {{#if: Ein deutscher Kommentar. | <br/> <span style="color:#0000FF"> '' Ein deutscher Kommentar. '' </span> | }} | ||
[[Category:ContentTemplate]]</noinclude> | [[Category:ContentTemplate]]</noinclude> |
Revision as of 19:33, 10 February 2016
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.
Usage
This template provides a standardized display of the value other in lists of possible values of attributes. As many attributes allow for the value other to keep railML® adjustable to different needs, the template is often employed. It is related to and based on Template:Enum.
Options
The template has two optional arguments:
- notes_en allows for an English comment.
- notes_de allows for a German comment.
dependencies
The template is based on Template:Enum and Template:AddAnn
Examples
{{OtherEnum}}
delivers
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.
{{OtherEnum|notes_en=An English comment.|notes_de=Ein deutscher Kommentar.}}
delivers
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.
An English comment.
Ein deutscher Kommentar.