Template:@: Difference between revisions

From railML 2 Wiki
Jump to navigation Jump to search
[checked revision][checked revision]
(syntax)
(New template)
Line 1: Line 1:
<includeonly>[[#{{{1}}}|@{{attr|{{{1}}}}}]]</includeonly>
<includeonly>[[#{{{1}}}|@{{attr|{{{1}}}}}]]</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''.
==Example==
Set an anchor with [[Template:Attribute]]:
<pre>{{attr|example}}</pre>
delivers
 
{{attr|example}}
 
Call the attribute:
<pre>{{@|example}}</pre>
delivers
 
{{@|example}}
 
[[category:template]]
</noinclude>

Revision as of 16:09, 17 June 2019

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.

Example

Set an anchor with Template:Attribute:

{{attr|example}}

delivers

example

Call the attribute:

{{@|example}}

delivers

@example