Template:InheritOcpRef: Difference between revisions

From railML 2 Wiki
Jump to navigation Jump to search
[unchecked revision][unchecked revision]
(Updated using new template (Vorlage:AddAnn))
No edit summary
Line 1: Line 1:
{{InheritRef
<includeonly>{{InheritRef
|attributeName = ocpStationRef
|attributeName = ocpStationRef
|contextLink = {{IS:Tag|ocp}}
|contextLink = {{IS:Tag|ocp}}
|notes_en = {{Intro|2.1}}, it refers to an {{IS:Doc|ocp}} whose {{Attr|operationalType}} equal '{{Enum|station}}'. {{AddAnn|{{{ocpStationRef|}}}| }}
|notes_en = {{Intro|2.1}}, it refers to an {{IS:Doc|ocp}} whose {{Attr|operationalType}} equal '{{Enum|station}}'. {{#if:{{{ocpStationRef|}}}|<br/>{{Ann|{{{ocpStationRef}}}}}|}}
|notes_de = {{AddAnn| |{{{ocpStationRef_de|}}} }}
|notes_de = {{#if:{{{ocpStationRef_de|}}}|<br/>{{Deu|{{Ann|{{{ocpStationRef_de}}}}}}}|}}
}}
}}


Line 11: Line 11:
|notes_en = {{Intro|2.1}} {{AddAnn|{{{controllerRef|}}}| }}
|notes_en = {{Intro|2.1}} {{AddAnn|{{{controllerRef|}}}| }}
|notes_de = {{AddAnn| |{{{controllerRef_de|}}} }}
|notes_de = {{AddAnn| |{{{controllerRef_de|}}} }}
}}<noinclude>[[Category:AttributeTemplate]]</noinclude>
}}</includeonly><noinclude>
==Usage==
This template lists the commented attributes ''ocpStationRef'' and ''controllerRef''. It allows for optional comments for both attributes both in Englishg and German.
===Arguments===
The template has four optional arguments:
*ocpStationRef: English comment on ocpStationRef
*ocpStationRef_de: German Comment on ocpSttationRef
*controllerRef: English comment on controllerRef
*controllerRef_de: German comment on controllerRef
===Dependencies===
The template depends on [[Template:InheritRef]], [[Templat:Intro]], [[Template:IS:Tag]], [[Template:IS:Doc]], [[Template:Attr]], [[Template:Enum]] and [[Template:AddAnn]]. [[Template:InheritSwitchCrossing]] builds on it.
==Example==
<!--
<nowiki>{{InheritOcpRef}}</nowiki>
 
delivers
 
{|border="1"
|{{inheritOcpRef}}
|}
 
<nowiki>{{inheritOcpRef
|ocpStationRef=An English comment on ocpStationRef
|ocpStationRef_de=Ein deutscher Kommentar zu ocpStationRef
|controllerRef=An English comment on controllerRef
|controllerRef_de=Ein deutscher Kommentar zu controllerRef
}}</nowiki>
 
delivers
 
{|border="1"
|{{inheritOcpRef
|ocpStationRef=An English comment on ocpStationRef
|ocpStationRef_de=Ein deutscher Kommentar zu ocpStationRef
|controllerRef=An English comment on controllerRef
|controllerRef_de=Ein deutscher Kommentar zu controllerRef
}}
|}
 
The template is employed e.g. by [[IS:signal]].
-->
[[Category:AttributeTemplate]]</noinclude>

Revision as of 19:43, 21 February 2016

Usage

This template lists the commented attributes ocpStationRef and controllerRef. It allows for optional comments for both attributes both in Englishg and German.

Arguments

The template has four optional arguments:

  • ocpStationRef: English comment on ocpStationRef
  • ocpStationRef_de: German Comment on ocpSttationRef
  • controllerRef: English comment on controllerRef
  • controllerRef_de: German comment on controllerRef

Dependencies

The template depends on Template:InheritRef, Templat:Intro, Template:IS:Tag, Template:IS:Doc, Template:Attr, Template:Enum and Template:AddAnn. Template:InheritSwitchCrossing builds on it.

Example