Template:InheritOcpRef: Difference between revisions
Jump to navigation
Jump to search
[checked revision] | [unchecked revision] |
(Undo revision 6782 by Ferri Leberl (talk)) |
(Updated examples to match last revision of template) |
||
(One intermediate revision by one other user not shown) | |||
Line 2: | Line 2: | ||
|attributeName = ocpStationRef | |attributeName = ocpStationRef | ||
|contextLink = {{IS:Tag|ocp}} | |contextLink = {{IS:Tag|ocp}} | ||
|notes_en = {{Intro|2.1}} | |notes_en = {{Intro|2.1}} {{#if:{{{ocpStationRef|}}}|<br/>{{{ocpStationRef}}}|}} | ||
|notes_de = {{#if:{{{ocpStationRef_de|}}}|{{Deu|{{{ocpStationRef_de}}}}}|}} | |notes_de = {{#if:{{{ocpStationRef_de|}}}|{{Deu|{{{ocpStationRef_de}}}}}|}} | ||
}} | }} | ||
Line 32: | Line 32: | ||
|attributeName = ocpStationRef | |attributeName = ocpStationRef | ||
|contextLink = {{IS:Tag|ocp}} | |contextLink = {{IS:Tag|ocp}} | ||
|notes_en = {{Intro|2.1}} | |notes_en = {{Intro|2.1}} {{#if:|<br/>{{{ocpStationRef}}}|}} | ||
|notes_de = {{#if:|{{Deu|{{{ocpStationRef_de}}}}}|}} | |notes_de = {{#if:|{{Deu|{{{ocpStationRef_de}}}}}|}} | ||
}} | }} | ||
Line 57: | Line 57: | ||
|attributeName = ocpStationRef | |attributeName = ocpStationRef | ||
|contextLink = {{IS:Tag|ocp}} | |contextLink = {{IS:Tag|ocp}} | ||
|notes_en = {{Intro|2.1}} | |notes_en = {{Intro|2.1}} {{#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}}|}} | ||
}} | }} |
Revision as of 16:51, 20 December 2018
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
|
{{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
|
The template is employed e.g. by IS:signal.