Template:@: Difference between revisions

From railML 2 Wiki
Jump to navigation Jump to search
[checked revision][checked revision]
No edit summary
Line 1: Line 1:
<includeonly>[[#{{{1}}}|<tt>'''@{{{1}}}'''</tt>]]</includeonly><noinclude>
<includeonly>[[{{{2|}}}#{{{1}}}|<tt>'''@{{{1}}}'''</tt>]]</includeonly><noinclude>
==Usage==
==Usage==
Calls an attribute anchor within the pages. Attribute anchors are set automatically with [[template:attr]]. To call an attribute from another page, use [[Template:CO:Tag]] and analogous with argument ''attr''.
Calls an attribute anchor within the pages. Attribute anchors are set automatically with [[template:attr]]. To call an attribute from another page, use '''2'''.
==Arguments==
*1: the attribute (required)
*2: the target element (optional)
==Example==
==Example==
Set an anchor with [[Template:Attr]]:
Set an anchor with [[Template:Attr]]:
Line 14: Line 17:


{{@|example}}
{{@|example}}
<pre>{{@|offset|IS:levelCrossing levelCrossings}}</pre>delivers
{{@|offset|IS:levelCrossing levelCrossings}}


[[category:LinkTemplate]]
[[category:LinkTemplate]]
</noinclude>
</noinclude>

Revision as of 13:50, 21 September 2020

Usage

Calls an attribute anchor within the pages. Attribute anchors are set automatically with template:attr. To call an attribute from another page, use 2.

Arguments

  • 1: the attribute (required)
  • 2: the target element (optional)

Example

Set an anchor with Template:Attr:

{{attr|example}}

delivers

example

Call the attribute:

{{@|example}}

delivers

@example

{{@|offset|IS:levelCrossing levelCrossings}}

delivers

@offset