Mòideal:Lang/doc
This is the documentation page for Mòideal:Lang
Uses Lua: |
(deasbaireachd⧼tpt-languages-separator⧽ ⧼tpt-languages-separator⧽eachdraidh⧼tpt-languages-separator⧽ceanglaichean⧼tpt-languages-separator⧽doc⧼tpt-languages-separator⧽bogsa-gainmhich⧼tpt-languages-separator⧽cùisean deuchainn)
This module is currently protected from editing. See the protection policy and protection log for more details. Please discuss any changes on the talk page; you may submit an edit request to ask an administrator to make an edit if it is uncontroversial or supported by consensus. You may also request that this page be unprotected. |
This module is subject to page protection. It is a highly visible module in use by a very large number of pages, or is substituted very frequently. Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is protected from editing. |
Language templates |
---|
Languages (ISO 639) |
|
Uicleir ceanglaichean-Uici |
|
Eile |
|
Data |
This template is used on a very large number of pages. To avoid large-scale disruption and unnecessary server load, any changes to this template should first be tested in its /sandbox or /testcases subpages, or in your own user space. The tested changes can then be added to this page in one single edit. Please consider discussing any changes on the talk page before implementing them. |
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}}, the Roinn-seòrsa:Lang-x_templates (most), and {{Transl}} templates into a single source and to use a clearly defined data set extracted from international standards.
The module does not require the myriad {{ISO 639 name LangLang}}
templates, {{Language with name}}, {{Language with name and transliteration}}, and {{Transl}}. 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}}
- {{Link language}}
Data set
The data set is specified in Mòideal:Language/name/data and its included data modules:
- language tag-and-name data
- Mòideal:Language/data/iana languages – from IANA language-subtag-registry file
- Mòideal:Language/data/ISO 639-3 – from sil.org UTF-8 Complete Code Tables Set
- Mòideal:Language/data/wp languages – sourcing for the data in this module is unknown
- language script data
- Mòideal:Language/data/iana scripts – from IANA language-subtag-registry file
- language region data
- Mòideal:Language/data/iana regions – from IANA language-subtag-registry file
- language variant data
- Mòideal:Language/data/iana variants – from IANA language-subtag-registry file
- suppressed-script data
- Mòideal:Language/data/iana suppressed scripts – from IANA language-subtag-registry file
The data set also includes supplementary data modules:
- override and other non-standard data
- Mòideal:Lang/data – For example, when IANA disagrees with ISO 639-3 or when the standard language name is cumbersome or contains information not suitable for use in article space, the
override
table can hold that language information - Mòideal: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
- Mòideal:Lang/name to tag – reversed language tag-and-name data so that the language name is the key and the language tag is the value
Error messages and categorization
Mainspace articles that have errors are placed in appropriate error categories:
Maintenance categories:
Faic cuideachd - Also see
MOS on foreign words: