Template:InheritRefAny: Difference between revisions

From railML 2 Wiki
Jump to navigation Jump to search
[unchecked revision][checked revision]
No edit summary
(Undo revision 5794 by Ferri Leberl (talk))
Tag: Undo
 
(2 intermediate revisions by the same user not shown)
Line 20: Line 20:
===Dependencies===
===Dependencies===
The template depends on [[Template:InheritRef]] and [[Template:InheritAnyAttribute]]. [[Trmplate:InheritTrackRef]] builds on it.
The template depends on [[Template:InheritRef]] and [[Template:InheritAnyAttribute]]. [[Trmplate:InheritTrackRef]] builds on it.
==Examples==
== Examples ==
<pre>{{InheritRefAny}}</pre>
<pre>{{InheritRefAny}}</pre>



Latest revision as of 11:52, 12 August 2020

Usage

This template combines Template:InheritRef and Template:InheritAnyAttribute: It displays the Attributes ref and anyAttribute and allows for comments on both of them in English and in German.

Arguments

The template allows for four optional arguments:

  • ref: English comment on re
  • ref_de: German comment on ref
  • anyAttribute: English comment on anyAttribute
  • anyAttribute_de: German comment on anyAttribute

Dependencies

The template depends on Template:InheritRef and Template:InheritAnyAttribute. Trmplate:InheritTrackRef builds on it.

Examples

{{InheritRefAny}}

delivers

  • ref: This refers to the id attribute of the associated FIXME element.
  • xs:anyAttribute: This provides an extension point for non-railML® attributes in a foreign namespace. How to use it?
{{InheritRefAny
|ref=English comment on re
|ref_de=German comment on ref
|anyAttribute=English comment on anyAttribute
|anyAttribute_de=German comment on anyAttribute
}}

delivers

  • ref: This refers to the id attribute of the associated FIXME element.
    English comment on re
    German comment on ref
  • xs:anyAttribute: This provides an extension point for non-railML® attributes in a foreign namespace. How to use it?
    English comment on anyAttribute
    German comment on anyAttribute

This template is employed by about two dozens of articles, e.g. TT:trainRef.