Template:OtherEnum: Difference between revisions

From railML 2 Wiki
Jump to navigation Jump to search
[unchecked revision][checked revision]
No edit summary
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Enum|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. {{AddAnn|{{{notes_en|}}}|{{{notes_de|}}} }}<noinclude>
{{Enum|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. {{AddAnn|{{{notes_en|}}}|{{{notes_de|}}} }}<noinclude>
==Usage==
==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<sup>®</sup> adjustable to different needs, the template is often employed. It is related to and based on [[Template:Enum]].
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<sup>®</sup> adjustable to different needs, the template is often employed. It is related to and based on [[Template:Enum]].
Line 9: Line 9:
The template is based on [[Template:Enum]] and [[Template:AddAnn]]
The template is based on [[Template:Enum]] and [[Template:AddAnn]]
==Examples==
==Examples==
<nowiki>{{OtherEnum}}</nowiki>
<pre>{{OtherEnum}}</pre>delivers


delivers
{{OtherEnum}}


<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/> {{Ann| }} | }} {{#if:  | <br/> {{Deu| {{Ann|  }} }} | }}
<pre>{{OtherEnum|notes_en=An English comment.|notes_de=Ein deutscher Kommentar.}}</pre>delivers


<nowiki>{{OtherEnum|notes_en=An English comment.|notes_de=Ein deutscher Kommentar.}}</nowiki>
{{OtherEnum|notes_en=An English comment.|notes_de=Ein deutscher Kommentar.}}
 
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/> {{Ann| An English comment. }} | }} {{#if: Ein deutscher Kommentar.  | <br/> {{Deu| {{Ann| Ein deutscher Kommentar.  }} }} | }}


[[Category:ContentTemplate]]</noinclude>
[[Category:ContentTemplate]]</noinclude>

Revision as of 17:56, 25 November 2021

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.

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. Please, apply Dev:usingAny accordingly.

{{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. Please, apply Dev:usingAny accordingly.
An English comment.
Ein deutscher Kommentar.