Template:Attr: Difference between revisions
Jump to navigation
Jump to search
[unchecked revision] | [checked revision] |
(→Usage: How to call it) |
(+interwiki) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><tt>'''<span id={{{1}}}>{{{1}}}</span>'''</tt></includeonly><noinclude> | <includeonly><tt>'''<span id={{{1}}}>{{{1}}}</span>'''</tt></includeonly><noinclude> | ||
==Usage== | ==Usage== | ||
This template grants for a standardized depiction of element attributes in typewriter font. Moreover, an anchor is set, so the attribute can be referenced directly in links, e.g. you can call [[IS:signal#name]]. | This template grants for a standardized depiction of element attributes in typewriter font. Moreover, an anchor is set, so the attribute can be referenced directly in links, e.g. you can call [[wiki2:IS:signal#name]]. | ||
For calling an attribute within the page employ [[Template:@]]. | For calling an attribute within the page employ [[Template:@]]. | ||
Line 8: | Line 8: | ||
===Parameters=== | ===Parameters=== | ||
The template has one unnamed obligatory parameter for the depicted content. | The template has one unnamed obligatory parameter for the depicted content. | ||
==Example== | ==Example== | ||
<nowiki>{{Attr|Version}}</nowiki> | <nowiki>{{Attr|Version}}</nowiki> | ||
Line 18: | Line 15: | ||
<tt>'''Version'''</tt> | <tt>'''Version'''</tt> | ||
{{interwiki|2=all}} | |||
[[Category:MarkupTemplate]]</noinclude> | [[Category:MarkupTemplate]]</noinclude> |
Latest revision as of 18:32, 23 September 2024
Usage
This template grants for a standardized depiction of element attributes in typewriter font. Moreover, an anchor is set, so the attribute can be referenced directly in links, e.g. you can call wiki2:IS:signal#name.
For calling an attribute within the page employ Template:@.
For calling an attribute from another page employ Template:IS:Tag (and analogously) with argument attr.
Parameters
The template has one unnamed obligatory parameter for the depicted content.
Example
{{Attr|Version}}
delivers
Version