Template:InheritOcpRef: Difference between revisions

From railML 2 Wiki
Jump to navigation Jump to search
[checked revision][checked revision]
(intro- und depri-Tags vor 2.2 entfernt)
(Undo revision 6782 by Ferri Leberl (talk))
Line 2: Line 2:
|attributeName = ocpStationRef
|attributeName = ocpStationRef
|contextLink = {{IS:Tag|ocp}}
|contextLink = {{IS:Tag|ocp}}
|notes_en =it refers to an {{IS:Doc|ocp}} whose {{Attr|operationalType}} equal '{{Enum|station}}'. {{#if:{{{ocpStationRef|}}}|<br/>{{{ocpStationRef}}}|}}
|notes_en = {{Intro|2.1}}, it refers to an {{IS:Doc|ocp}} whose {{Attr|operationalType}} equal '{{Enum|station}}'. {{#if:{{{ocpStationRef|}}}|<br/>{{{ocpStationRef}}}|}}
|notes_de = {{#if:{{{ocpStationRef_de|}}}|{{Deu|{{{ocpStationRef_de}}}}}|}}
|notes_de = {{#if:{{{ocpStationRef_de|}}}|{{Deu|{{{ocpStationRef_de}}}}}|}}
}}
}}
Line 9: Line 9:
|attributeName = controllerRef
|attributeName = controllerRef
|contextLink = {{IS:Tag|controller}}
|contextLink = {{IS:Tag|controller}}
|notes_en ={{#if:{{{controllerRef|}}}|<br/>{{{controllerRef}}}|}}
|notes_en = {{Intro|2.1}} {{#if:{{{controllerRef|}}}|<br/>{{{controllerRef}}}|}}
|notes_de = {{#if:{{{controllerRef_de|}}}|{{Deu|{{{controllerRef_de}}}}}|}}
|notes_de = {{#if:{{{controllerRef_de|}}}|{{Deu|{{{controllerRef_de}}}}}|}}
}}</includeonly><noinclude>
}}</includeonly><noinclude>
Line 32: Line 32:
|attributeName = ocpStationRef
|attributeName = ocpStationRef
|contextLink = {{IS:Tag|ocp}}
|contextLink = {{IS:Tag|ocp}}
|notes_en =it refers to an {{IS:Doc|ocp}} whose {{Attr|operationalType}} equal '{{Enum|station}}'. {{#if:|<br/>{{{ocpStationRef}}}|}}
|notes_en = {{Intro|2.1}}, it refers to an {{IS:Doc|ocp}} whose {{Attr|operationalType}} equal '{{Enum|station}}'. {{#if:|<br/>{{{ocpStationRef}}}|}}
|notes_de = {{#if:|{{Deu|{{{ocpStationRef_de}}}}}|}}
|notes_de = {{#if:|{{Deu|{{{ocpStationRef_de}}}}}|}}
}}
}}
Line 39: Line 39:
|attributeName = controllerRef
|attributeName = controllerRef
|contextLink = {{IS:Tag|controller}}
|contextLink = {{IS:Tag|controller}}
|notes_en ={{#if:|<br/>{{{controllerRef}}}|}}
|notes_en = {{Intro|2.1}} {{#if:|<br/>{{{controllerRef}}}|}}
|notes_de = {{#if:|{{Deu|{{{controllerRef_de}}}}}|}}
|notes_de = {{#if:|{{Deu|{{{controllerRef_de}}}}}|}}
}}
}}
Line 57: Line 57:
|attributeName = ocpStationRef
|attributeName = ocpStationRef
|contextLink = {{IS:Tag|ocp}}
|contextLink = {{IS:Tag|ocp}}
|notes_en =it refers to an {{IS:Doc|ocp}} whose {{Attr|operationalType}} equal '{{Enum|station}}'. {{#if:An English comment on ocpStationRef|<br/>An English comment on ocpStationRef|}}
|notes_en = {{Intro|2.1}}, it refers to an {{IS:Doc|ocp}} whose {{Attr|operationalType}} equal '{{Enum|station}}'. {{#if:An English comment on ocpStationRef|<br/>An English comment on ocpStationRef|}}
|notes_de = {{#if:Ein deutscher Kommentar zu ocpStationRef|{{Deu|Ein deutscher Kommentar zu ocpStationRef}}|}}
|notes_de = {{#if:Ein deutscher Kommentar zu ocpStationRef|{{Deu|Ein deutscher Kommentar zu ocpStationRef}}|}}
}}
}}
Line 64: Line 64:
|attributeName = controllerRef
|attributeName = controllerRef
|contextLink = {{IS:Tag|controller}}
|contextLink = {{IS:Tag|controller}}
|notes_en ={{#if:An English comment on controllerRef|<br/>An English comment on controllerRef|}}
|notes_en = {{Intro|2.1}} {{#if:An English comment on controllerRef|<br/>An English comment on controllerRef|}}
|notes_de = {{#if:Ein deutscher Kommentar zu controllerRef|{{Deu|Ein deutscher Kommentar zu controllerRef}}|}}
|notes_de = {{#if:Ein deutscher Kommentar zu controllerRef|{{Deu|Ein deutscher Kommentar zu controllerRef}}|}}
}}
}}

Revision as of 12:39, 11 August 2017

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, Template:Intro, Template:IS:Tag, Template:IS:Doc, Template:Attr, Template:Enum and Template:AddAnn. Template:InheritSwitchCrossing builds on it.

Example

{{InheritOcpRef}}

delivers

  • ocpStationRef: This refers to the id attribute of the associated <ocp> element.
    (introduced with version 2.1), it refers to an ocp whose operationalType equal 'station'.
  • controllerRef: This refers to the id attribute of the associated <controller> element.
    (introduced with version 2.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 }}

delivers

  • ocpStationRef: This refers to the id attribute of the associated <ocp> element.
    (introduced with version 2.1), it refers to an ocp whose operationalType equal 'station'.
    An English comment on ocpStationRef

    Ein deutscher Kommentar zu ocpStationRef
  • controllerRef: This refers to the id attribute of the associated <controller> element.
    (introduced with version 2.1)
    An English comment on controllerRef

    Ein deutscher Kommentar zu controllerRef

The template is employed e.g. by IS:signal.