Template:InheritNationalSystemType: Difference between revisions
Jump to navigation
Jump to search
[checked revision] | [checked revision] |
(Liste gelöscht — Werte werden in TrainProtectionSystems.xml gepflegt) |
(Improved description and formatting) |
||
(22 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>* {{Attr|type}}: This specifies the | |||
{{AddAnn|{{{type|}}}|{{{type_de|}}} }}</includeonly><noinclude> | <includeonly>* {{Attr|type}}: {{Intro|2.1}} This specifies the <tt>code</tt> of the {{external|https://en.wikipedia.org/wiki/Train_protection_system|train protection system}}. The list of accepted systems is given in <tt><trainProtectionSystemsOnVehicle></tt> in the [[Dev:TrainProtectionSystems|TrainProtectionSystems]] [[dev:Codelists|codelist]]. <br/> {{Deu|Hier wird der <tt>code</tt> des verwendeten {{external|https://de.wikipedia.org/wiki/Zugbeeinflussung|Zugbeeinflussungssystems|lang=de|inlang=de}} spezifiziert. Die Liste der verfügbaren Systeme wird in <tt><trainProtectionSystemsOnVehicle></tt> der [[dev:Codelists|Codelist]] [[Dev:TrainProtectionSystems|TrainProtectionSystems]] bereitgestellt.}}{{#if:{{{type|}}}|{{AddAnn|{{{type|}}}|{{{type_de|}}}}}|{{#if:{{{type_de}}}|{{AddAnn|{{{type|}}}|{{{type_de|}}}}}}}}}</includeonly><noinclude> | ||
==Usage== | ==Usage== | ||
This template displays an attribute ''type'' (of train protection system) plus a long list of possible values, including the wildcard ''other:anything''. It allows for optional comments on the last value in English and German. | This template displays an attribute ''type'' (of train protection system) plus a long list of possible values, including the wildcard ''other:anything''. It allows for optional comments on the last value in English and German. | ||
Line 10: | Line 10: | ||
The template depends on [[Template:Attr]], [[Template:Intro]], [[Template:Deu]], [[Template:Enum]], [[Template:OtherEnum}} and [[Template:AddAnn]]. No other templates build on it. | The template depends on [[Template:Attr]], [[Template:Intro]], [[Template:Deu]], [[Template:Enum]], [[Template:OtherEnum}} and [[Template:AddAnn]]. No other templates build on it. | ||
==Examples== | ==Examples== | ||
< | <pre>{{InheritNationalSystemType}}</pre> | ||
delivers (in a box) | delivers (in a box) | ||
Line 16: | Line 16: | ||
{|border="1" | {|border="1" | ||
| | | | ||
{{InheritNationalSystemType}} | |||
|} | |} | ||
< | <pre>{{InheritNationalSystemType | ||
|type=An English comment. | |type=An English comment. | ||
|type_de=Ein deutscher Kommentar. | |type_de=Ein deutscher Kommentar. | ||
}}</ | }}</pre> | ||
delivers (in a box) | delivers (in a box) | ||
Line 82: | Line 28: | ||
{|border="1" | {|border="1" | ||
| | | | ||
{{InheritNationalSystemType | |||
|type=An English comment. | |||
|type_de=Ein deutscher Kommentar. | |||
}} | |||
|} | |} | ||
Latest revision as of 15:35, 16 November 2022
Usage
This template displays an attribute type (of train protection system) plus a long list of possible values, including the wildcard other:anything. It allows for optional comments on the last value in English and German.
Arguments
The template has two optional arguments:
- notes_en: an english comment
- notes_de: a German comment
Dependencies
The template depends on Template:Attr, Template:Intro, Template:Deu, Template:Enum, [[Template:OtherEnum}} and Template:AddAnn. No other templates build on it.
Examples
{{InheritNationalSystemType}}
delivers (in a box)
|
{{InheritNationalSystemType |type=An English comment. |type_de=Ein deutscher Kommentar. }}
delivers (in a box)
|
The template is employed by RS:nationalSystem and TT:equipment.