Mô đun:Lang/tài liệu
| Tập tin:Edit-copy green.svg | Bản mẫu:Strong dành cho Bản mẫu:Terminate sentence Nó gồm có các thông tin hướng dẫn sử dụng, thể loại và các nội dung khác không thuộc về phần trang mô đun gốc. |
| Chú ý | Mô đun Lua này được sử dụng ở khoảng 101.000 trang. Để tránh gây lỗi trên quy mô lớn và tải máy chủ không cần thiết, tất cả thay đổi cần được thử nghiệm ở trang con /sandbox, /testcases của mô đun, hoặc ở chỗ thử mô đun. Các thay đổi đã được thử nghiệm có thể thêm vào mô đun bằng một sửa đổi duy nhất. Xin hãy thảo luận các thay đổi tại trang thảo luận trước khi áp dụng sửa đổi. |
| Bản mẫu ngôn ngữ |
|---|
| Tên ngôn ngữ (ISO 639) |
|
| Liên kết liên wiki |
| Văn bản tiếng nước ngoài |
|
| Khác |
|
Lỗi Lua trong Mô_đun:Lua_banner tại dòng 113: attempt to index field 'edit' (a nil value).
This module exists primarily to provide correct HTML markup for non–English language text where that text is used in the English Wikipedia. It has a secondary purpose of providing correct visual rendering for this non-English text. The module was developed to consolidate processing for {{lang}}, {{langx}}, and {{transliteration}} templates into a single source and to use a clearly defined data set extracted from international standards. It provides error checking and reporting to ensure that the HTML rendered is correct for browsers and screen readers.
Other templates that get language name support from this module are:
{{native name}}
Data set
The data set is specified in Module:Lang/data and its included data modules:
- language tag-and-name data
- language script data
- Module:Lang/data/iana scripts – from IANA language-subtag-registry file
- language region data
- Module:Lang/data/iana regions – from IANA language-subtag-registry file
- language variant data
- Module:Lang/data/iana variants – from IANA language-subtag-registry file
- suppressed-script data
- Module:Lang/data/iana suppressed scripts – from IANA language-subtag-registry file
The data set also includes supplementary data modules:
- override and other non-standard data
- Module:Lang/ISO 639 synonyms – maps three character ISO 639-2, -2T, -3 codes to two character ISO 639-1 codes – from Codes for the Representation of Names of Languages
- Module:Lang/tag from name – reversed language tag-and-name data so that the language name is the key and the language tag is the value
Testcases
- Module:Lang/testcases (run)
- category_from_tag()
- Module:Lang/testcases/ISO 639-1 category from tag (run)
- Module:Lang/testcases/ISO 639-3-1 category from tag (A–H) (run)
- Module:Lang/testcases/ISO 639-3-2 category from tag (I–N) (run)
- Module:Lang/testcases/ISO 639-3-3 category from tag (O–Z) (run)
- Module:Lang/testcases/ISO 639 deprecated and override category from tag (run)
- name_from_tag()
- Module:Lang/testcases/ISO 639-1 name from tag (run)
- Module:Lang/testcases/ISO 639-3-1 name from tag (A–H) (run)
- Module:Lang/testcases/ISO 639-3-2 name from tag (I–N) (run)
- Module:Lang/testcases/ISO 639-3-3 name from tag (O–Z) (run)
- Module:Lang/testcases/ISO 639 deprecated and override name from tag (run)
- tag_from_name()
- Module:Lang/testcases/ISO 639-1 tag from name (run)
- Module:Lang/testcases/ISO 639-3-1 tag from name (A–H) (run)
- Module:Lang/testcases/ISO 639-3-2 tag from name (I–N) (run)
- Module:Lang/testcases/ISO 639-3-3 tag from name (O–Z) (run)
- Module:Lang/testcases/ISO 639 deprecated and override tag from name (run)
Tracking categories
- Thể loại:Lỗi bản mẫu lang và lang-xx (2)
- Thể loại:Lỗi bản mẫu transliteration (0)
- Thể loại:Mã lang và lang-xx được nâng cấp thành ISO 639-1 (2)
- Thể loại:Lang và lang-xx sử dụng mã ISO 639 lỗi thời (0)
See also
MoS on foreign words: