Bản mẫu:Tên bản ngữ

Bách khoa toàn thư mở Wikipedia
Tài liệu bản mẫu[xem] [sửa] [lịch sử] [làm mới]

An inline formatting template, based on {{Lang}}, for indicating the official/defacto name in a language 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 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}}

Cú pháp[sửa mã nguồn]

Thông số[sửa mã nguồn]

Tên thông số Miêu tả và ví dụ Cần hay không
[thông số đầu] The IETF language tag code for the native language. French, for instance, is "fr"; Spanish is "es"; Arabic is "ar"; etc.
[second unnamed] The native name, in the native language (with accents, etc.).
italics
(hoặc italic)
Đặt "off" hoặc "no" để không làm nghiêng.

Ví dụ: |italics=off

không
paren
(or icon)
Set to "omit", "off" or "no" to suppress the appearance of the native language's name in a parenthesis after the native name.

Ví dụ: |paren=omit

không
parensize
(previously fontsize)
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.

Ví dụ: |parensize=90%

không
nolink Set to anything (e.g. "on") to suppress the appearance of the native language's name as a link. không
script (deprecated) when needed, include ISO 15924 in {{{1}}} IETF language tag; e.g. 'sr-Cyrl' Specifies the ISO 15924 script. E.g. "Cyrl", "Arab", "Hans"... không

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

  • Code and result for the same name "Deutschland" above but with italics switched off, nolink switched on and a parensize of 90%:
    • {{Tên bản ngữ|de|Deutschland|italics=off|nolink=on|parensize=90%}} –> Deutschland(Đức)
  • Retaining no italics but suppressing the parenthesis which produces the same as if the {{lang}} template had been used:

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

Xuất
{{Infobox settlement
| name = The Hague
| native_name = {{Native name|nl|Den Haag}}
}}
The Hague
Den Haag (tiếng Hà Lan)
{{Infobox country
| conventional_long_name = French Republic
| native_name = {{Native name|fr|République française|paren=omit}}
}}
French Republic

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

Thể loại:Native name template errors (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 Tên bản ngữ


Foreign language name formatting

Tham số bản mẫu[Quản lý Dữ liệu bản mẫu]

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

language code

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

Name in foreign language

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

"off" will prevent italicising the name

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

Language name in parenthesis

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

font-size of the language (parenthesised)

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