Template:InheritElectrification: Difference between revisions
[unchecked revision] | [checked revision] |
(Updated using new template (Vorlage:AddAnn)) |
No edit summary |
||
Line 1: | Line 1: | ||
* {{Attr|type}} Possible values are: | <includeonly>* {{Attr|type}} Possible values are: | ||
:* {{Enum|none}} | :* {{Enum|none}} | ||
:* {{Enum|overhead}} | :* {{Enum|overhead}} | ||
Line 11: | Line 11: | ||
* {{Attr|voltage}} {{AddAnn|{{{voltage|}}}|{{{voltage_de|}}} }} | * {{Attr|voltage}} {{AddAnn|{{{voltage|}}}|{{{voltage_de|}}} }} | ||
* {{Attr|frequency}} {{AddAnn|{{{frequency|}}}|{{{frequency_de|}}} }}<noinclude>[[Category:AttributeTemplate]]</noinclude> | * {{Attr|frequency}} {{AddAnn|{{{frequency|}}}|{{{frequency_de|}}} }}</includeonly><noinclude> | ||
==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== | |||
<nowiki>{{InheritElectrification}}</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|| }} | |||
* {{Attr|voltage}} {{AddAnn|| }} | |||
* {{Attr|frequency}} {{AddAnn|| }} | |||
|} | |||
<nowiki>{{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 | |||
}}</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]]. | |||
[[Category:AttributeTemplate]]</noinclude> |
Revision as of 11:40, 15 February 2016
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 (in a box)
|
{{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 (in a box)
|
The template is employed by IS:electrification and IS:electrificationChange.