Template:@: Difference between revisions
Jump to navigation
Jump to search
[checked revision] | [checked revision] |
(syntax) |
No edit summary |
||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>[[#{{{1}}}|@{{ | <includeonly>{{#if:{{{3|}}}|[[:{{{3}}}:{{{2|}}}#{{{1}}}|<tt>'''@{{{1}}}'''</tt>]]|[[{{{2|}}}#{{{1}}}|<tt>'''@{{{1}}}'''</tt>]]}}</includeonly><noinclude> | ||
==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''. | |||
==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]]: | |||
<pre>{{attr|example}}</pre> | |||
delivers | |||
{{attr|example}} | |||
Call the attribute: | |||
<pre>{{@|example}}</pre> | |||
delivers | |||
{{@|example}} | |||
<pre>{{@|maxSpeed|IS:linePerformance|wiki3}}</pre>delivers: | |||
{{@|maxSpeed|IS:linePerformance|wiki3}} | |||
<pre>{{@|id|IS:infrastructure|wiki2}}</pre>delivers: | |||
{{@|id|IS:infrastructure|wiki2}} | |||
[[category:LinkTemplate]] | |||
{{interwiki}} | |||
</noinclude> |
Latest revision as of 13:45, 13 March 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:CO:Tag and analogous with argument attr.
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|IS:linePerformance|wiki3}}
delivers:
{{@|id|IS:infrastructure|wiki2}}
delivers: