แม่แบบ:Native name list
หน้าตา
ข้อผิดพลาด {{native name list}}: รายการว่างเปล่า (ช่วยเหลือ)
This template creates a correctly formatted list of native names. Typical uses would be the |native name=
parameter common to many infoboxen.
การใช้งาน
[แก้]Unlike {{native name}}
, this template takes only enumerated parameter names. These parameters are:
ชื่อพารามิเตอร์ | คำอธิบายและตัวอย่าง | จำเป็น |
---|---|---|
|tagn=
|
The IETF language tag code for the native language. French, for instance, is "fr"; Spanish is "es"; Arabic is "ar"; etc. | ใช่ |
|namen=
|
The native name, in the native language (with accents, etc.). | ใช่ |
|italicsn= (or |italicn= )
|
Set to "off" or "no" to disable displaying the native name in italics.
Example: |
ไม่ |
|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: |
ไม่ |
|nbspn=
|
Set to "omit" or "no" to suppress the addition of a second space between the native name and the native language's name in brackets. Generally works in tandem with the italics or italic and/or paren or icon switches, as the automatic addition of the second space prevents the native name in italics from appearing to lean into the following bracket. Example: |
ไม่ |
|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: |
ไม่ |
|nolinkn=
|
Set to anything (e.g. "on") to suppress the appearance of the native language's name as a link. | ไม่ |
|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 | ไม่ |
ตัวอย่าง
[แก้]โค้ด | ผลลัพธ์ |
---|---|
{{native name list
|tag1=de |name1=Etsch |italics1=no
|tag2=it |name2=Adige |nbsp2=omit
|tag3=vec |name3=Àdexe |parensize3=90%
|tag4=rm |name4=Adisch |paren4=omit
|tag5=lld |name5=Adesc |nolink5=yes}}
|
|
html | |
'"`UNIQ--templatestyles-00000004-QINU`"'<div class="plainlist"><ul><li><span title="ข้อความภาษาเยอรมัน"><span lang="de" style="font-style: normal;">Etsch</span></span> <span class="languageicon" style="font-size:100%; font-weight:normal">([[ภาษาเยอรมัน|เยอรมัน]])</span></li><li><span title="ข้อความภาษาอิตาลี"><i lang="it">Adige</i></span> <span class="languageicon" style="font-size:100%; font-weight:normal">([[ภาษาอิตาลี|อิตาลี]])</span></li><li><span title="ข้อความภาษาเวเนโต"><i lang="vec">Àdexe</i></span> <span class="languageicon" style="font-size:90%; font-weight:normal">([[ภาษาเวเนโต|เวเนโต]])</span></li><li><span title="ข้อความภาษารูมันช์"><i lang="rm">Adisch</i></span></li><li><span title="ข้อความภาษาลาดิน"><i lang="lld">Adesc</i></span> <span class="languageicon" style="font-size:100%; font-weight:normal">(ลาดิน)</span></li></ul></div>
| |
{{native name list
|tag1=es|name1=Senda del Moro
|tag2=mis|name2=Cuesta de Mr. Bourne
|paren2=omit|postfix2= ([[Llanito]])}}
|