Template:InheritElectrification: Difference between revisions

From railML 2 Wiki
Jump to navigation Jump to search
[checked revision][checked revision]
(Undocumented enumeration items)
No edit summary
Line 2: Line 2:
{{missing information|user=[[User:Ferri Leberl|Ferri Leberl]] ([[User talk:Ferri Leberl|talk]]) 16:31, 25 April 2018 (CEST)|topic=the semantics of the enumeration items}}
{{missing information|user=[[User:Ferri Leberl|Ferri Leberl]] ([[User talk:Ferri Leberl|talk]]) 16:31, 25 April 2018 (CEST)|topic=the semantics of the enumeration items}}
:* {{Enum|none}}
:* {{Enum|none}}
:* {{Enum|overhead}}
:* {{Enum|overhead}}: This is a catenary.
:* {{Enum|3rdRail}}
:* {{Enum|3rdRail}}: {{wikipedia|Third rail}}; this is a conductor placed along or between the rails. For example, it is used by {{wikipedia|Network Rail}}.
:* {{Enum|sideRail}}
:* {{Enum|sideRail}}: This is a rail for power supply conducted by pick-up shoe. For example, it is used by {{wikipedia|Berlin S-Bahn}}.
:* {{OtherEnum
:* {{OtherEnum
|notes_en =
|notes_en =
Line 26: Line 26:
This template builds on [[Template:Attr]], [[Template:Enum]] and [[Template:AddAnn]]. No other templates depend on it.
This template builds on [[Template:Attr]], [[Template:Enum]] and [[Template:AddAnn]]. No other templates depend on it.
==Examples==
==Examples==
<nowiki>{{InheritElectrification}}</nowiki>
<pre>{{InheritElectrification}}</pre>


delivers (in a box)
delivers


{|border=1"
{{InheritElectrification}}
|
* {{Attr|type}} Possible values are:
:* {{Enum|none}}
:* {{Enum|overhead}}
:* {{Enum|3rdRail}}
:* {{Enum|sideRail}}
:* {{OtherEnum
|notes_en =
|notes_de =
}} {{AddAnn|| }}


* {{Attr|voltage}} {{AddAnn|| }}
<pre>{{InheritElectrification
|type=English Comment on value other:anything of attribute type
|type_de=German Comment on value other:anything of attribute type
|voltage=English comment on attribute voltage
|voltage_de=German comment on attribute voltage
|frequency=English comment on attribute frequency
|frequency_de=German comment on attribute frequency
}}</pre>


* {{Attr|frequency}} {{AddAnn|| }}
delivers
|}


<nowiki>{{InheritElectrification
{{InheritElectrification
|type=English Comment on value other:anything of attribute type
|type=English Comment on value other:anything of attribute type
|type_de=German Comment on value other:anything of attribute type
|type_de=German Comment on value other:anything of attribute type
Line 54: Line 50:
|frequency=English comment on attribute frequency
|frequency=English comment on attribute frequency
|frequency_de=German comment on attribute frequency
|frequency_de=German comment on attribute frequency
}}</nowiki>
}}
 
delivers (in a box)
 
{|border=1"
|
* {{Attr|type}} Possible values are:
:* {{Enum|none}}
:* {{Enum|overhead}}
:* {{Enum|3rdRail}}
:* {{Enum|sideRail}}
:* {{OtherEnum
|notes_en =
|notes_de =
}} {{AddAnn|English Comment on value other:anything of attribute type|German Comment on value other:anything of attribute type }}
 
* {{Attr|voltage}} {{AddAnn|English comment on attribute voltage|German comment on attribute voltage }}
 
* {{Attr|frequency}} {{AddAnn|English comment on attribute frequency|German comment on attribute frequency }}
|}


The template is employed by [[IS:electrification]] and [[IS:electrificationChange]].
The template is employed by [[IS:electrification]] and [[IS:electrificationChange]].


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

Revision as of 16:33, 12 September 2022

Usage

This template displayes the attributes type, voltage and frequency. For type it displayes the list of possible values, including other:anything — with a standard comment on the least, and optional comments in English and German. Moreover it allows for English and German comments on voltage and frequency.

Attributes

The template has six optional arguments:

  • type: English Comment on value other:anything of attribute type
  • type_de: German Comment on value other:anything of attribute type
  • voltage: English comment on attribute voltage
  • voltage_de: German comment on attribute voltage
  • frequency: English comment on attribute frequency
  • frequency_de: German comment on attribute frequency

Dependencies

This template builds on Template:Attr, Template:Enum and Template:AddAnn. No other templates depend on it.

Examples

{{InheritElectrification}}

delivers

  • type Possible values are:

Missinginformation.png In this article there is information missing with respect to the semantics of the enumeration items. Please help improving the railML® wiki by filling the gaps. Possibly, you will find further details on the discussion pageFerri Leberl (talk) 16:31, 25 April 2018 (CEST)
  • none
  • overhead: This is a catenary.
  • 3rdRail: Third rail (Wiki banner.png); this is a conductor placed along or between the rails. For example, it is used by Network Rail (Wiki banner.png).
  • sideRail: This is a rail for power supply conducted by pick-up shoe. For example, it is used by Berlin S-Bahn (Wiki banner.png).
  • 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.
  • voltage
  • frequency
{{InheritElectrification
|type=English Comment on value other:anything of attribute type
|type_de=German Comment on value other:anything of attribute type
|voltage=English comment on attribute voltage
|voltage_de=German comment on attribute voltage
|frequency=English comment on attribute frequency
|frequency_de=German comment on attribute frequency
}}

delivers

  • type Possible values are:

Missinginformation.png In this article there is information missing with respect to the semantics of the enumeration items. Please help improving the railML® wiki by filling the gaps. Possibly, you will find further details on the discussion pageFerri Leberl (talk) 16:31, 25 April 2018 (CEST)
  • none
  • overhead: This is a catenary.
  • 3rdRail: Third rail (Wiki banner.png); this is a conductor placed along or between the rails. For example, it is used by Network Rail (Wiki banner.png).
  • sideRail: This is a rail for power supply conducted by pick-up shoe. For example, it is used by Berlin S-Bahn (Wiki banner.png).
  • 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.
    English Comment on value other:anything of attribute type
    German Comment on value other:anything of attribute type
  • voltage
    English comment on attribute voltage
    German comment on attribute voltage
  • frequency
    English comment on attribute frequency
    German comment on attribute frequency

The template is employed by IS:electrification and IS:electrificationChange.