模板:Native name list
{{native name list}}錯誤:列表為空(幫助)
![]() | 此模板使用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 |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 | |
'"`UNIQ--templatestyles-00000008-QINU`"'<div class="plainlist"><ul><li><span lang="de" style="font-style: normal;" title="德語文本">-{Etsch}-</span><span class="languageicon" style="font-size:100%; font-weight:normal">([[德語|德語]])</span></li><li><span lang="it" title="意大利語文本">-{Adige}-</span><span class="languageicon" style="font-size:100%; font-weight:normal">([[意大利語|意大利語]])</span></li><li><span lang="vec" title="威尼斯語文本">-{Àdexe}-</span><span class="languageicon" style="font-size:90%; font-weight:normal">([[威尼斯語|威尼斯語]])</span></li><li><span lang="rm" title="羅曼什語文本">-{Adisch}-</span></li><li><span lang="lld" title="Ladin文本">-{Adesc}-</span><span class="languageicon" style="font-size:100%; font-weight:normal">(Ladin)</span></li></ul></div>
| |
{{native name list
|tag1=es|name1=Senda del Moro
|tag2=mis|name2=Cuesta de Mr. Bourne
|paren2=omit|postfix2= ([[Llanito]])}}
|
Tracking category
編輯Category:Native name list template errors(0)
Template data
編輯
As {{native name}}, but with multiple name-language options
參數 | 描述 | 類型 | 狀態 | |
---|---|---|---|---|
language | tag1 | language code
| 字串 | 必填 |
name | name1 | Name in foreign language
| 字串 | 必填 |
italics | italic1 italics1 | "off" will prevent italicising the name
| 布林值 | 非必填 |
language name | paren1 | Language name in parenthesis
| 布林值 | 非必填 |
language fontsize | parensize1 | font-size of the language (parenthesised)
| 數值 | 非必填 |
language | tag2 | language code | 字串 | 非必填 |
name | name2 | Name in foreign language | 字串 | 非必填 |
italics | italic2 italics2 | 沒有描述
| 布林值 | 非必填 |
language name | paren2 | 沒有描述
| 布林值 | 非必填 |
language fontsize | parensize2 | 沒有描述 | 數值 | 非必填 |
上述文件嵌入自Template:Native name list/doc。 (編輯 | 歷史) 編者可以在本模板的沙盒 (建立 | 鏡像)和測試樣例 (建立)頁面進行實驗。 請在/doc子頁面中添加分類。本模板的子頁面。 |