Template:Native name list/doc
This is a documentation subpage for Template:Native name list. It may contain usage information, categories and other content that is not part of the original template page. |
This template uses Lua: |
This template creates a correctly formatted list of native names. Typical uses would be the |native name=
parameter common to many infoboxes.
Usage
Like {{native name}}
, but this template takes only enumerated parameter names.
|tagn=
and |namen=
are required, in pairs. Do not skip suffix numbers (|tag1=.. |tag3=..=
).
These parameters are:
{{native name list
|tag1 =
|name1 =
|italics1 =
|paren1 =
|parensize1=
|nolink1 =
|postfix1 =
|tag2 =
|name2 =
|italics2 =
|paren2 =
|parensize2=
|nolink2 =
|postfix2 =
}}
Parameter name | Description and examples | Required |
---|---|---|
|tagn=
|
The IETF language tag code for the native language. French, for instance, is "fr"; Spanish is "es"; Arabic is "ar"; etc. | yes |
|namen=
|
The native name, in the native language (with accents, etc.). | yes |
|italicsn= (or |italicn= )
|
Set to "off" or "no" to disable displaying the native name in italics.
Example: |
no |
|parenn= (or |iconn= )
|
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 |
|parensizen= (or |fontsizen= )
|
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 |
|nolinkn=
|
Set to anything (e.g. "on") to suppress the appearance of the native language's name as a link. | no |
|postfixn=
|
adds additional wikitext to list-itemn; typical use might be references or for wikilinked 'language' name for those languages that do not have an IETF language tag; see examples | no |
examples
Code | Result |
---|---|
{{native name list
|tag1=de |name1=Etsch |italics1=no
|tag2=it |name2=Adige
|tag3=vec |name3=Àdexe |parensize3=90%
|tag4=rm |name4=Adisch |paren4=omit
|tag5=lld |name5=Adesc |nolink5=yes}} |
|
html | |
| |
{{native name list
|tag1=es|name1=Senda del Moro
|tag2=mis|name2=Cuesta de Mr. Bourne
|paren2=omit|postfix2= ([[w:Llanito|Llanito]])}} |
Tracking category
Category:Native name list template errors (0)
Template data
TemplateData for Native name list
<templatedata>
{
"params": {
"tag1": {
"label": "language",
"description": "language code",
"example": "el, de",
"type": "string",
"required": true
},
"name1": {
"label": "name",
"description": "Name in foreign language",
"example": "ευρώ, herzlich willkommen",
"type": "string",
"required": true
},
"italic1": {
"aliases": [
"italics1"
],
"label": "italics",
"description": "\"off\" will prevent italicising the name",
"type": "boolean",
"default": "on"
},
"paren1": {
"label": "language name",
"description": "Language name in parenthesis",
"type": "boolean",
"default": "on"
},
"parensize1": {
"label": "language fontsize",
"description": "font-size of the language (parenthesised)",
"example": "90%",
"type": "number"
},
"tag2": {
"label": "language",
"description": "language code",
"type": "string"
},
"name2": {
"label": "name",
"description": "Name in foreign language",
"type": "string"
},
"italic2": {
"aliases": [
"italics2"
],
"label": "italics",
"type": "boolean",
"default": "on"
},
"paren2": {
"label": "language name",
"type": "boolean",
"default": "on"
},
"parensize2": {
"label": "language fontsize",
"type": "number"
}
},
"description": "As Error {{native name}}: an IETF language tag as parameter {{{1}}} is required (help), but with multiple name-language options"
}
</templatedata>