Template:InheritRef: Difference between revisions
Jump to navigation
Jump to search
[unchecked revision] | [unchecked revision] |
(Updated using new template (Vorlage:AddAnn)) |
(Documentation) |
||
Line 1: | Line 1: | ||
* {{Attr| {{{attributeName|FIXME}}}}}: This refers to the {{Attr|id}} attribute of the associated {{{contextLink|FIXME}}} element. {{AddAnn|{{{notes_en|}}}|{{{notes_de|}}} }}<noinclude>[[Category:AttributeTemplate]]</noinclude> | <includeonly>* {{Attr| {{{attributeName|FIXME}}}}}: This refers to the {{Attr|id}} attribute of the associated {{{contextLink|FIXME}}} element. {{AddAnn|{{{notes_en|}}}|{{{notes_de|}}} }}</includeonly><noinclude> | ||
==Usage== | |||
This template displays an attribute with variable name and a standard comment. Optionally an English and a German comment can be added. | |||
===Arguments=== | |||
The template has two obligatory and two optional arguments: | |||
*obligatory: | |||
**attributeName: An attribute | |||
**contextLink: An Element | |||
*optional: | |||
**notes_en: An English comment | |||
**notes_de: A German comment | |||
===Dependencies=== | |||
The template depends on [[Template:Attr]] and [[Template:AddAnn]]. | |||
==Examples== | |||
<pre>{{InheritRef | |||
|attributeName=Some Attribute Name | |||
|contextLink=Some Name | |||
}}</pre> | |||
delivers | |||
{|border="1" | |||
| | |||
* {{Attr| Some Attribute Name}}: This refers to the {{Attr|id}} attribute of the associated Some Name element. {{AddAnn|| }} | |||
|} | |||
<pre>{{InheritRef | |||
|attributeName=Some Attribute Name | |||
|contextLink=Some Name | |||
|notes_en=An English comment | |||
|notes_de=Ein deutscher Kommentar | |||
}}</pre> | |||
delivers | |||
{|border="1" | |||
| | |||
* {{Attr| Some Attribute Name}}: This refers to the {{Attr|id}} attribute of the associated Some Name element. {{AddAnn|An English comment|Ein deutscher Kommentar }} | |||
|} | |||
[[Category:AttributeTemplate]]</noinclude> |
Revision as of 17:45, 24 February 2016
Usage
This template displays an attribute with variable name and a standard comment. Optionally an English and a German comment can be added.
Arguments
The template has two obligatory and two optional arguments:
- obligatory:
- attributeName: An attribute
- contextLink: An Element
- optional:
- notes_en: An English comment
- notes_de: A German comment
Dependencies
The template depends on Template:Attr and Template:AddAnn.
Examples
{{InheritRef |attributeName=Some Attribute Name |contextLink=Some Name }}
delivers
|
{{InheritRef |attributeName=Some Attribute Name |contextLink=Some Name |notes_en=An English comment |notes_de=Ein deutscher Kommentar }}
delivers
|