Template:InheritRef: Difference between revisions
Jump to navigation
Jump to search
[unchecked revision] | [checked revision] |
No edit summary |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>* {{Attr| {{{attributeName| | <includeonly>* {{Attr|{{{attributeName|ref}}}}}: This refers to the {{Attr|id}} attribute of the associated {{{contextLink|FIXME}}} element. {{AddAnn|{{{notes_en|}}}|{{{notes_de|}}} }}</includeonly><noinclude> | ||
==Usage== | ==Usage== | ||
This template displays an attribute with variable name and a standard comment. Optionally an English and a German comment can be added. | This template displays an attribute with variable name and a standard comment. Optionally an English and a German comment can be added. | ||
Line 11: | Line 11: | ||
**notes_de: A German comment | **notes_de: A German comment | ||
===Dependencies=== | ===Dependencies=== | ||
The template depends on [[Template:Attr]] and [[Template:AddAnn]]. About halve a dozen of other templates build on it | The template depends on [[Template:Attr]] and [[Template:AddAnn]]. About halve a dozen of other templates build on it. | ||
==Examples== | ==Examples== |
Latest revision as of 16:31, 3 April 2022
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. About halve a dozen of other templates build on it.
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
|
The template is employed e.g. by IS:signal.