Bản mẫu:Native name list/doc

Bách khoa toàn thư mở Wikipedia

This template creates a correctly formatted list of native names. Typical uses would be the |native name= parameter common to many infoboxes.

Cách sử dụng[sửa mã nguồn]

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=..= Red XN).

These parameters are:

{{native name list
|tag1      =
|name1     =
|italics1  =
|paren1    =
|parensize1=
|nolink1   =
|postfix1  =

|tag2      =
|name2     =
|italics2  =
|paren2    =
|parensize2=
|nolink2   =
|postfix2  =
}}
Tên thông số Miêu tả và ví dụ Cần hay không
|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: |italicsn=off

không
|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: |parenn=omit

không
|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: |parensizen=90%

không
|nolinkn= Set to anything (e.g. "on") to suppress the appearance of the native language's name as a link. không
|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 không

Ví dụ[sửa mã nguồn]

Xuất
{{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}}
Lỗi Lua trong Mô_đun:Native_name tại dòng 109: attempt to call field '_lang' (a nil value).
html
<strong class="error"><span class="scribunto-error" id="mw-scribunto-error-c59b6c7f">Lỗi Lua trong Mô_đun:Native_name tại dòng 109: attempt to call field '_lang' (a nil value).</span></strong>
{{native name list
|tag1=es|name1=Senda del Moro
|tag2=mis|name2=Cuesta de Mr. Bourne
|paren2=omit|postfix2=&nbsp;([[Llanito]])}}
Lỗi Lua trong Mô_đun:Native_name tại dòng 109: attempt to call field '_lang' (a nil value).

Thể loại theo dõi[sửa mã nguồn]

Thể loại:Lỗi bản mẫu danh sách tên bản ngữ (0)

Dữ liệu bản mẫu[sửa mã nguồn]

Đây là tài liệu Dữ liệu bản mẫu cho bản mẫu này được sử dụng bởi Trình soạn thảo trực quan và các công cụ khác; xem báo cáo sử dụng tham số hàng tháng cho bản mẫu này.

Dữ liệu bản mẫu cho Native name list


As {{native name}}, but with multiple name-language options

Tham số bản mẫu

Tham sốMiêu tảKiểuTrạng thái
languagetag1

language code

Ví dụ
el, de
Chuỗi dàibắt buộc
namename1

Name in foreign language

Ví dụ
ευρώ, herzlich willkommen
Chuỗi dàibắt buộc
italicsitalic1 italics1

"off" will prevent italicising the name

Mặc định
on
Luận lýtùy chọn
language nameparen1

Language name in parenthesis

Mặc định
on
Luận lýtùy chọn
language fontsizeparensize1

font-size of the language (parenthesised)

Ví dụ
90%
Sốtùy chọn
languagetag2

language code

Chuỗi dàitùy chọn
namename2

Name in foreign language

Chuỗi dàitùy chọn
italicsitalic2 italics2

không có miêu tả

Mặc định
on
Luận lýtùy chọn
language nameparen2

không có miêu tả

Mặc định
on
Luận lýtùy chọn
language fontsizeparensize2

không có miêu tả

Sốtùy chọn