Template:InheritId: Difference between revisions
Jump to navigation
Jump to search
[checked revision] | [checked revision] |
No edit summary |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>* {{Attr|id}} {{ | <includeonly>* {{Attr|id}}: {{{intro|}}}XML-file-wide unique, machine-interpretable identity, required for later referencing that element internally. For a detailed explanation see [[Dev:identities]].<br>{{deu|XML-Datei-weit eindeutige, maschineninterpretierbare Identität, die für die spätere interne Referenzierung dieses Elements erforderlich ist. Für eine detaillierte Erklärung siehe [[Dev:identities]].}} {{AddAnn|{{{id|}}}|{{{id_de|}}} }}</includeonly><noinclude> | ||
==Usage== | ==Usage== | ||
This template displays an attribute ''id'' with a standard comment. It allows for a variable comment in English and German. | This template displays an attribute ''id'' with a standard comment. It allows for a variable comment in English and German. | ||
Line 6: | Line 6: | ||
* id: an English comment | * id: an English comment | ||
* id_de: a German comment | * id_de: a German comment | ||
* intro: Place for [[Template:Intro]] and/or [[Template:Depr]] | |||
===Dependencies=== | ===Dependencies=== | ||
This template depends on [[Template:Attr]] and [[Template:AddAnn]]. It is hardly used directly, but mostly via a dozen of templates depending on it, e.g. [[Template:InheritIdName]] | This template depends on [[Template:Attr]] and [[Template:AddAnn]]. It is hardly used directly, but mostly via a dozen of templates depending on it, e.g. [[Template:InheritIdName]] | ||
Line 13: | Line 14: | ||
delivers | delivers | ||
{{InheritId}} | |||
<nowiki>{{InheritId | <nowiki>{{InheritId | ||
Line 20: | Line 21: | ||
}}</nowiki> | }}</nowiki> | ||
delivers | delivers | ||
{ | {{InheritId | ||
|id=An English comment | |||
|id_de=A German comment | |||
}} | |||
[[Category:AttributeTemplate]]</noinclude> | [[Category:AttributeTemplate]]</noinclude> |
Latest revision as of 15:23, 13 March 2022
Usage
This template displays an attribute id with a standard comment. It allows for a variable comment in English and German.
Arguments
This template has two optional arguments:
- id: an English comment
- id_de: a German comment
- intro: Place for Template:Intro and/or Template:Depr
Dependencies
This template depends on Template:Attr and Template:AddAnn. It is hardly used directly, but mostly via a dozen of templates depending on it, e.g. Template:InheritIdName
Example
{{InheritId}}
delivers
- id: XML-file-wide unique, machine-interpretable identity, required for later referencing that element internally. For a detailed explanation see Dev:identities.
XML-Datei-weit eindeutige, maschineninterpretierbare Identität, die für die spätere interne Referenzierung dieses Elements erforderlich ist. Für eine detaillierte Erklärung siehe Dev:identities.
{{InheritId |id=An English comment |id_de=A German comment }}
delivers
- id: XML-file-wide unique, machine-interpretable identity, required for later referencing that element internally. For a detailed explanation see Dev:identities.
XML-Datei-weit eindeutige, maschineninterpretierbare Identität, die für die spätere interne Referenzierung dieses Elements erforderlich ist. Für eine detaillierte Erklärung siehe Dev:identities.
An English comment
A German comment