Template:Native name/doc

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:

The template's defaults can be overridden and the parentheses even excluded, in which case there may be no visible changes to the text where it's used. It still, however, identifies the native name as a linguistic element using the HTML span tag, which web browsers and screen readers can use to select an appropriate font, pronunciation, etc.

Syntax
{{native name|ISO 639 language code|the native name}}
 * Common

So, the code for the example at the start of this documentation would be:

Parameters
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%:
 * More complex examples

Retaining no italics but suppressing the parentheses:

This result is the same as if the lang template had been used.

Annotated code
 width 80 characters

Legend [a] = ISO 639 language code. [b] = 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)" (e.g. "(Valois)"), [h] else return the error query "(language?)".