Template:Native name
| Warning | This template is used on approximately 37,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
| File:Lua-Logo.svg | This template uses Lua: |
Lua error in Module:Navbar at line 58: Invalid title {{#if: |{{{templatename}}} |Language templates }}.
| File:Information icon4.svg | For {{native name}} error messages appearing in various infoboxes, see Wikipedia talk:WikiProject Infoboxes/Archive 11#native name parameters. |
An inline formatting template, based on {{Lang}}, for indicating the official/defacto/dominant name (first language - the main language that people use in a region or country) other than English. By default, the native name is displayed in italics, followed by the language's name in parentheses.
The template's defaults can be overridden and the parenthesis excluded, in which case there may be no visible changes to the text where it's used. An HTML {{#switch:o
|c|close =
|e|empty|s|single|v|void
|o|open
|p|pair = <{{#if:|[[HTML element#span|span]]|span}}{{#if:| {{{attribs}}}}}
}}{{#switch:o
|c|close =
|e|empty|s|single|v|void = />
|o|open = >
|p|pair = {{#ifeq:span|!--||>}}...
}}{{#switch:o
|e|empty|s|single|v|void
|o|open =
|c|close
|p|pair = {{#ifeq:span|!--|-->|</span>}}
}}, however, still identifies the native name as a linguistic element, meaning that web browsers and screen readers can select a particular font, formatting, pronunciation, etc., for it.
For multiple native names, use {{native name list}}
Syntax
{{Native name|<IETF language tag>|<the native name>}}
Parameters
| Parameter name | Description and examples | Required | |
|---|---|---|---|
| [first unnamed] | The IETF language tag code for the native language. French, for instance, is "fr"; Spanish is "es"; Arabic is "ar"; etc. | yes | |
| [second unnamed] | The native name, in the native language (with accents, etc.). | yes | |
| <syntaxhighlight lang="text" class="" style="" inline="1">italics</syntaxhighlight> (or <syntaxhighlight lang="text" class="" style="" inline="1">italic</syntaxhighlight>){{SAFESUBST:#if:(or <syntaxhighlight lang="text" class="" style="" inline="1">italic</syntaxhighlight>) |
}} | Set to "off" or "no" to disable displaying the native name in italics.
Example: |
no |
| <syntaxhighlight lang="text" class="" style="" inline="1">paren</syntaxhighlight> (or <syntaxhighlight lang="text" class="" style="" inline="1">icon</syntaxhighlight>){{SAFESUBST:#if:(or <syntaxhighlight lang="text" class="" style="" inline="1">icon</syntaxhighlight>) |
}} | Set to "omit", "off" or "no" to suppress the appearance of the native language's name in a parenthesis after the native name.
Example: |
no |
| <syntaxhighlight lang="text" class="" style="" inline="1">parensize</syntaxhighlight> (previously <syntaxhighlight lang="text" class="" style="" inline="1">fontsize</syntaxhighlight>){{SAFESUBST:#if:(previously <syntaxhighlight lang="text" class="" style="" inline="1">fontsize</syntaxhighlight>) |
}} | Use to specify a font-size for the parenthesis. Per MOS:FONTSIZE, do not make this text smaller in infoboxes, since the text is already at 88% of normal.
Example: |
no |
| <syntaxhighlight lang="text" class="" style="" inline="1">nolink</syntaxhighlight> | Set to anything (e.g. "on") to suppress the appearance of the native language's name as a link. | no | |
| <syntaxhighlight lang="text" class="" style="" inline="1">script</syntaxhighlight> (deprecated) | when needed, include ISO 15924 in {{{1}}} IETF language tag; e.g. 'sr-Cyrl' |
no |
Examples
- Common usage:
{{Native name|de|Deutschland}}–> Deutschland (German)
- Code and result for the same name "Deutschland" above but with italics switched off, nolink switched on and a parensize of 90%:
{{Native name|de|Deutschland|italics=off|nolink=on|parensize=90%}}–> Deutschland (German)
- Retaining no italics but suppressing the parenthesis which produces the same as if the {{lang}} template had been used:
{{Native name|de|Deutschland|italics=off|paren=omit}}–> Deutschland
- Language does not have an ISO code
{{Native name|mis|Banib|paren=omit}} ([[Boonwurrung language]])–> Banib (Boonwurrung language)
- Language is not known
{{Native name|und|Bakoma|paren=omit}}–> Bakoma
Other examples
| Code | Result | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{Infobox settlement
| name = The Hague
| native_name = {{Native name|nl|Den Haag}}
}}
|
{{safesubst:#switch: {{safesubst:#if:
|
{{{demospace}}} | main | other
}} }} |
main = Script error: No such module "Settlement short description". | other | #default =
}}
{{#if:
|
{{{demospace}}} | Template | template | other
}} }} |
Infobox | Infobox|}}}} | other | #default =
}}{{#if: |
}}{{safesubst:#switch: {{safesubst:#if:
|
{{{demospace}}} | main | other
}} }} |
main = {{#if: | }}{{#if: | }}{{#if:|{{#if: | }}}}{{#if: | }}{{#if:|}} | other | #default =
}}{{#ifexpr:0 >2 |{{safesubst:#switch: {{safesubst:#if:
|
{{{demospace}}} | main | other
}} }} |
main = | other | #default =
}}}} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{Infobox country
| conventional_long_name = French Republic
| native_name = {{Native name|fr|République française|paren=omit}}
}}
|
{{#if: |
{{#if: |
{{#if: |
{{#if: |
{{#if: |
{{#if: |
{{#if: |
{{#if: |
{{#if: |
{{#if: |
{{#if: |
{{#if: |
{{#if: |
{{#if: |
{{#if: |
{{#if: |
{{#if: |
{{#if: |
{{#if: |
{{#if: |
{{#if: |
}} |} }} | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{#if:
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{#if:
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| {{#if:| {{{footnotes}}}{{#if:| }}{{{footnotes2}}}}} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{safesubst:#if:
| {{{demospace}}}
| {{safesubst:#ifeq:Template|
| main
| other
}}
}}
| main = {{#if:{{SAFESUBST:#if:|{{SAFESUBST:#if:|1}}}}| }}{{#if:{{SAFESUBST:#if:|{{SAFESUBST:#if:|1}}}}| }}{{#if:{{SAFESUBST:#if:|{{SAFESUBST:#if:|1}}}}| }}{{#if:{{SAFESUBST:#if:|{{SAFESUBST:#if:|1}}}}| }}{{#if:{{SAFESUBST:#if:|{{SAFESUBST:#if:|1}}}}| }}{{#if:{{SAFESUBST:#if:|{{SAFESUBST:#if:|1}}}}| }}{{#if:{{SAFESUBST:#if:|{{SAFESUBST:#if:|1}}}}| }}{{#if:{{SAFESUBST:#if:|{{SAFESUBST:#if:|1}}}}| }}{{#if:{{SAFESUBST:#if:|{{SAFESUBST:#if:|1}}}}{{SAFESUBST:#if:|{{SAFESUBST:#if:|1}}}}| }}{{#if:||{{#if:|}} }}{{#if:{{SAFESUBST:#if:|{{SAFESUBST:#if:|1}}}}{{SAFESUBST:#if:|{{SAFESUBST:#if:|1}}}}{{SAFESUBST:#if:|{{SAFESUBST:#if:|1}}}}| }}{{#if:{{SAFESUBST:#if:|{{SAFESUBST:#if:|1}}}}| }}{{#if:||{{#if:|}} }}{{#if:{{SAFESUBST:#if:|{{SAFESUBST:#if: |1}}}}| }}{{#if:|{{#if:||}} }}{{#if:|{{#if:||}} }}{{#if:| }}{{#if:| }}{{#if:| }}{{#if:| }} | other | #default = }}{{#if:|{{#ifeq:|Colony|{{safesubst:#switch:
{{safesubst:#if:
| {{{demospace}}}
| {{safesubst:#ifeq:Template|
| main
| other
}}
}}
| main = | other | #default = }}|{{#ifeq:|Exile|{{safesubst:#switch:
{{safesubst:#if:
| {{{demospace}}}
| {{safesubst:#ifeq:Template|
| main
| other
}}
}}
| main = | other | #default = }}}}}} }} |}
Tracking category
{{#if:|{{{name}}}|Category:Native name template errors}} (0)
TemplateData
|=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template=%7B%7B%23if%3ANative+name%7CNative+name%7CNative+name%7D%7D {{#ifeq:{{safesubst:#switch: {{{lc}}} |no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|no|S|s}}ee a monthly parameter usage report] for {{#if:Native name|Template:Native name|this template}} in articles{{#ifeq:{{safesubst:#switch: y
|no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|yes| based on {{#if:Native name|its|this}} TemplateData}}.
|None|none=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template=%7B%7B%23if%3ANative+name%7CNative+name%7CNative+name%7D%7D {{#ifeq:{{safesubst:#switch: {{{lc}}} |no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|no|P|p}}arameter usage report]{{#ifeq:{{safesubst:#switch: y
|no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|yes| based on {{#if:Native name|its|this}} TemplateData}}
|for|For=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template=%7B%7B%23if%3ANative+name%7CNative+name%7CNative+name%7D%7D {{#ifeq:{{safesubst:#switch: {{{lc}}} |no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|no|P|p}}arameter usage report] for {{#if:Native name|Template:Native name|Template:Native name}}{{#ifeq:{{safesubst:#switch: y
|no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|yes| based on {{#if:Native name|its|this}} TemplateData}}.
|#default=[1]{{#ifeq:{{safesubst:#switch: y |no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|yes| based on {{#if:Native name|its|this}} TemplateData}} }}|This is the {{#if:|TemplateData|TemplateData}} for this template used by TemplateWizard, VisualEditor and other tools. {{#switch:
|=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template=%7B%7B%23if%3ANative+name%7CNative+name%7CNative+name%7D%7D {{#ifeq:{{safesubst:#switch: {{{lc}}} |no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|no|S|s}}ee a monthly parameter usage report] for {{#if:Native name|Template:Native name|this template}} in articles{{#ifeq:{{safesubst:#switch: y
|no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|yes| based on {{#if:Native name|its|this}} TemplateData}}.
|None|none=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template=%7B%7B%23if%3ANative+name%7CNative+name%7CNative+name%7D%7D {{#ifeq:{{safesubst:#switch: {{{lc}}} |no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|no|P|p}}arameter usage report]{{#ifeq:{{safesubst:#switch: y
|no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|yes| based on {{#if:Native name|its|this}} TemplateData}}
|for|For=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template=%7B%7B%23if%3ANative+name%7CNative+name%7CNative+name%7D%7D {{#ifeq:{{safesubst:#switch: {{{lc}}} |no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|no|P|p}}arameter usage report] for {{#if:Native name|Template:Native name|Template:Native name}}{{#ifeq:{{safesubst:#switch: y
|no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|yes| based on {{#if:Native name|its|this}} TemplateData}}.
|#default=[2]{{#ifeq:{{safesubst:#switch: y |no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|yes| based on {{#if:Native name|its|this}} TemplateData}} }}}}
TemplateData for Native name
{{#if:
| {{{demospace}}}
| {{#ifeq:Template|Template
| template
| other
}}
}}
| template = {{safesubst:#if:{{safesubst:#ifeq:Native |sandbox|1}}{{safesubst:#ifeq:Native name|doc|1}}||
}} | other | #default = }} <templatedata> { "params": { "tag": { "label": "language", "description": "language code", "example": "el, de", "type": "string", "required": true }, "name": { "label": "name", "description": "Name in foreign language (use ISO 639 language codes)", "example": "ευρώ, herzlich willkommen", "type": "string", "required": true }, "italic": { "aliases": [ "italics" ], "label": "italics", "description": "\"off\" will prevent italicising the name", "type": "boolean", "default": "on" }, "paren": { "label": "language name", "description": "Language name in parenthesis", "type": "boolean", "default": "on" }, "parensize": { "label": "language fontsize", "description": "font-size of the language (parenthesised)", "example": "90%", "type": "number" } }, "description": "Foreign language name formatting" } </templatedata>
See also
{{safesubst:#if:{{safesubst:#ifeq:Native |sandbox|1}}{{safesubst:#ifeq:Native name|doc|1}}|| }}
- Pages with script errors
- Pages with non-numeric formatnum arguments
- Pages with broken file links
- Lua-based templates
- Pages using small with an empty input parameter
- Errors reported by Module String
- Infobox templates
- Pages using infobox settlement with the wikidata parameter
- Pages using infobox settlement with missing country
- Pages using infobox settlement with no map
- Pages using infobox settlement with image map1 but not image map
- Pages using infobox settlement with no coordinates
- Pages using infobox settlement with embed
- Pages using infobox settlement with potentially too many maps
- Former country articles requiring maintenance
- Imperial abbeys
- Country articles requiring maintenance
- Pages using infobox country with syntax problems
- Pages using infobox country or infobox former country with the flag caption or type parameters
- Pages using infobox country or infobox former country with the symbol caption or type parameters
- Former country articles using status text with Colony or Exile
- Templates using TemplateData
- Wikipedia formatting templates
- Name templates
- Language templates