Template:ISO 639 name
Language abbreviation not recognized by template!
An inline formatting template, based on {{lang}} and {{ISO 639 name}}, for indicating the language in which a native name has been given. By default, the native name is displayed in italics, followed by the language's name in parentheses in a smaller font size. For example:
Usage[edit source]Syntax[edit source]
Template:((native name|ISO 639 language code|the native nameTemplate:)) So, the code for the example at the start of this documentation would be:
Parameters[edit source]Required parameters shown in bold italics.
Code and result for the same name "Deutschland" above but with italics and nbsp switched off, nolink switched on and a fontsize of 80%:
Retaining no italics but suppressing the parentheses:
This result is the same as if the {{lang}} template had been used. Other examples[edit source]
Annotated code[edit source]width 80 characters -------------------------------------------------------------------------------- {{lang2 |{{{1}}} <!--[a]--> |<!---->{{#switch:{{{italics|{{{italic|}}}}}}|no|off=|''}}<!-- -->{{{2}}}<!-- <!--[b]--> -->{{#switch:{{{italics|{{{italic|}}}}}}|no|off=|''}} }}<!-- -->{{#switch:{{{paren|{{{icon|}}}}}}|no|off= <!--[c]--> |#default= <!-- -->{{#switch:{{{italics|{{{italic|}}}}}}|no|off= <!--[d]--> |{{#ifeq:{{{nbsp|}}}|no | <!--[e]--> | }}<!-- -->}}<!-- --><span class="languageicon" style="font-size:{{{fontsize|85%}}};font-weight:normal;"><!-- -->{{#if:{{{nolink|}}} |({{ISO 639 name|{{{1}}}}}) <!--[f]--> |{{#ifexist:Template:ISO 639 name {{{1}}} <!--[g]--> |([[{{ISO 639 name|{{{1}}}}} language|{{ISO 639 name|{{{1}}}}}]]) |(language?)<!-- <!--[h]--> -->}}<!-- -->}}<!-- --></span><!-- -->}} -------------------------------------------------------------------------------- Legend [a] {{{1}}} = ISO 639 language code. [b] {{{2}}} = the foreign-language placename. Displayed in italics unless italics (or italic) = off (or no). [c] If paren (or icon) = off (or no), omit linked language name (in brackets). [d] If placename in italics, [e] then, unless nbsp=no, add an extra space after it (to stop italics leaning into the parenthesis that follows). [f] If nolink set, display unlinked language name, [g] else if a link for this language name exists, display it as "[[(name) language|(name)]]" (e.g. "([[French language|French]])"), [h] else return the error query "(language?)".
|