Template:@: Difference between revisions
Jump to navigation
Jump to search
[checked revision] | [checked revision] |
Ferri Leberl (talk | contribs) (new template) |
Ferri Leberl (talk | contribs) (→Usage) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#if:{{{3|}}}|[[:{{{3}}}:{{{2|}}}#{{{1}}}|<tt>'''@{{{1}}}'''</tt>]]|[[{{{2|}}}#{{{1}}}|<tt>'''@{{{1}}}'''</tt>]]}}</includeonly><noinclude> | <includeonly>{{#if:{{{3|}}}|[[:{{{3}}}:{{{2|}}}#{{{1}}}|<tt>'''@{{{1}}}'''</tt>]]|[[{{{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 | Calls an attribute anchor within the pages. Attribute anchors are set automatically with [[template:attr]]. To call an attribute from another page, use [[Template:Tag]] with argument ''attr'' or ''@''. | ||
==Attributes== | ==Attributes== | ||
*1: The attribute name (required) | *1: The attribute name (required) | ||
Line 19: | Line 20: | ||
{{@|example}} | {{@|example}} | ||
<pre>{{@|maxSpeed|IS:linePerformance}}</pre>delivers: | <pre>{{@|maxSpeed|wiki3:IS:linePerformance}}</pre>delivers: | ||
{{@|maxSpeed|IS:linePerformance}} | {{@|maxSpeed|wiki3:IS:linePerformance}} | ||
<pre>{{@|id|IS:infrastructure|wiki2}}</pre>delivers: | <pre>{{@|id|IS:infrastructure|wiki2}}</pre>delivers: | ||
Latest revision as of 18:40, 23 September 2024
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:Tag with argument attr or @.
Attributes
- 1: The attribute name (required)
- 2: The element name (optional); on default, the argument is linked on the current page
- 3: The wiki. wiki2 or wiki3. optional.
Example
Set an anchor with Template:Attr:
{{attr|example}}
delivers
example
Call the attribute:
{{@|example}}
delivers
{{@|maxSpeed|wiki3:IS:linePerformance}}
delivers:
{{@|id|IS:infrastructure|wiki2}}
delivers: