Template:InheritLang: Difference between revisions
Jump to navigation
Jump to search
[checked revision] | [checked revision] |
(intro- und depri-Tags vor 2.2 entfernt) |
(Undo revision 6769 by Ferri Leberl (talk)) |
||
Line 1: | Line 1: | ||
<includeonly>* {{Attr|xml:lang}}: This is a unique identifier of language. It uses basically the language standard [http://tools.ietf.org/html/bcp47 IETF BCP 47] which may be different to [http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes ISO 639-1] or [http://en.wikipedia.org/wiki/List_of_ISO_639-2_codes ISO 639-2]. For mapping hints see [http://en.wikipedia.org/wiki/IETF_language_tag relation to other standards]. {{AddAnn|{{{notes_en|}}}|{{{notes_de|}}} }} | <includeonly>* {{Attr|xml:lang}} {{Intro|2.1}}: This is a unique identifier of language. It uses basically the language standard [http://tools.ietf.org/html/bcp47 IETF BCP 47] which may be different to [http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes ISO 639-1] or [http://en.wikipedia.org/wiki/List_of_ISO_639-2_codes ISO 639-2]. For mapping hints see [http://en.wikipedia.org/wiki/IETF_language_tag relation to other standards]. {{AddAnn|{{{notes_en|}}}|{{{notes_de|}}} }} | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
This template displays a commented attribute ''xml:lang'' and optionally an adjustable comment. | This template displays a commented attribute ''xml:lang'' and optionally an adjustable comment. | ||
Line 7: | Line 7: | ||
*notes_de: a German comment | *notes_de: a German comment | ||
===Dependencies=== | ===Dependencies=== | ||
This template depends on [[Template:Attr]] and [[Template | This template depends on [[Template:Attr]] and [[Template:AddAnn]]. It is employed by about two dozens of templates, e.g. [[Template:InheritIdName]]. | ||
==Examples== | ==Examples== | ||
<nowiki>{{InheritLang}}</nowiki> | <nowiki>{{InheritLang}}</nowiki> | ||
Line 13: | Line 13: | ||
delivers | delivers | ||
* {{Attr|xml:lang}}: This is a unique identifier of language. It uses basically the language standard [http://tools.ietf.org/html/bcp47 IETF BCP 47] which may be different to [http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes ISO 639-1] or [http://en.wikipedia.org/wiki/List_of_ISO_639-2_codes ISO 639-2]. For mapping hints see [http://en.wikipedia.org/wiki/IETF_language_tag relation to other standards]. {{AddAnn|| }} | * {{Attr|xml:lang}} {{Intro|2.1}}: This is a unique identifier of language. It uses basically the language standard [http://tools.ietf.org/html/bcp47 IETF BCP 47] which may be different to [http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes ISO 639-1] or [http://en.wikipedia.org/wiki/List_of_ISO_639-2_codes ISO 639-2]. For mapping hints see [http://en.wikipedia.org/wiki/IETF_language_tag relation to other standards]. {{AddAnn|| }} | ||
<nowiki>{{InheritLang | <nowiki>{{InheritLang | ||
Line 24: | Line 24: | ||
{|border="1" | {|border="1" | ||
| | | | ||
* {{Attr|xml:lang}}: This is a unique identifier of language. It uses basically the language standard [http://tools.ietf.org/html/bcp47 IETF BCP 47] which may be different to [http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes ISO 639-1] or [http://en.wikipedia.org/wiki/List_of_ISO_639-2_codes ISO 639-2]. For mapping hints see [http://en.wikipedia.org/wiki/IETF_language_tag relation to other standards]. {{AddAnn|An English comment.|Ein deutscher Kommentar. }} | * {{Attr|xml:lang}} {{Intro|2.1}}: This is a unique identifier of language. It uses basically the language standard [http://tools.ietf.org/html/bcp47 IETF BCP 47] which may be different to [http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes ISO 639-1] or [http://en.wikipedia.org/wiki/List_of_ISO_639-2_codes ISO 639-2]. For mapping hints see [http://en.wikipedia.org/wiki/IETF_language_tag relation to other standards]. {{AddAnn|An English comment.|Ein deutscher Kommentar. }} | ||
|} | |} | ||
[[Category:AttributeTemplate]]</noinclude> | [[Category:AttributeTemplate]]</noinclude> |
Revision as of 12:27, 11 August 2017
This template displays a commented attribute xml:lang and optionally an adjustable comment.
Arguments
This template has two optional arguments:
- notes_en: an English comment
- notes_de: a German comment
Dependencies
This template depends on Template:Attr and Template:AddAnn. It is employed by about two dozens of templates, e.g. Template:InheritIdName.
Examples
{{InheritLang}}
delivers
- xml:lang (introduced with version 2.1): This is a unique identifier of language. It uses basically the language standard IETF BCP 47 which may be different to ISO 639-1 or ISO 639-2. For mapping hints see relation to other standards.
{{InheritLang |notes_en=An English comment. |notes_de=Ein deutscher Kommentar. }}
delivers (in a box)
|