Mòideal:Language/doc
This is the documentation page for Mòideal:Language
(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. |
This module is rated as beta, and is ready for widespread use. It is still new and should be used with some caution to ensure the results are as expected. |
Uses Lua: |
Language templates |
---|
Languages (ISO 639) |
|
Uicleir ceanglaichean-Uici |
|
Eile |
|
Data |
This module is used by {{Wikt-lang}} and {{Wt}}. It is inspired by the templates {{m}} and {{l}} and their associated modules on Wiktionary. It has a Wiktionary link function that links to the correct section of the Wiktionary entry, and applies correct language formatting and italics. The language-tagging function does most of what {{Lang}} does, except that italics can't be customized and categories aren't added.
The module uses Mòideal:Language/data to retrieve the language name for a language code, and to perform the necessary entry-name replacements (for instance, removing macrons from Latin entry names). These are unfortunately not automatically retrieved from Wiktionary's Language data modules. For language codes that do not have a name
value in this module, the language name is fetched with mw.language.fetchLanguage
. When mw.language.fetchLanguage
does not fetch the correct language name (or any language name at all), please add it to Mòideal:Language/data, and similarly when the correct entry name is not generated, please add the entry name replacements to the module.
Eisimpleirean - Examples
* {{#invoke:Language|wikt|en|Language}} * {{#invoke:Language|wikt|en|Language|languages}} * {{#invoke:Language|wikt|fr|bourguignon}} * {{#invoke:Language|wikt|la|homō}} * {{#invoke:Language|wikt|grc|δημοκρατίᾱ}} * {{#invoke:Language|wikt|ru|язы́к}} * {{#invoke:Language|lang|ru|язы́к}} * {{#invoke:Language|wikt|ar|العَرَبِيَّة}} * {{#invoke:Language|wikt|fa|فارسی}} * {{#invoke:Language|wikt|ine-x-proto|*h₂enǵʰ-}}
Còdan mì-dhligheach - Invalid codes
* {{#invoke:Language|wikt|EN|Language}} * {{#invoke:Language|wikt|En|Language|languages}} * {{#invoke:Language|wikt|La|homō}} * {{#invoke:Language|wikt|Grc|δημοκρατίᾱ}} * {{#invoke:Language|wikt|Ru|язы́к}} * {{#invoke:Language|lang|Ru|язы́к}} * {{#invoke:Language|wikt|Ar|العَرَبِيَّة}} * {{#invoke:Language|wikt|Fa|فارسی}}
Mearachdan - Errors
* {{#invoke:Language|wikt|en-Latin|Language}}
- Language [
Latin
is not a valid script code.]
Fo-dhuilleagan - Subpages
Pages with the prefix 'Language' in the 'Mòideal' and 'Mòideal talk' namespaces:
Language |
- Language/data
- Language/data/ISO 639-1
- Language/data/ISO 639-1/doc
- Language/data/ISO 639-1/make
- Language/data/ISO 639-1/make/doc
- Language/data/ISO 639-2
- Language/data/ISO 639-2/doc
- Language/data/ISO 639-2/make
- Language/data/ISO 639-2/make/doc
- Language/data/ISO 639-3
- Language/data/ISO 639-3/doc
- Language/data/ISO 639-3/make
- Language/data/ISO 639-3/make/doc
- Language/data/ISO 639-5
- Language/data/ISO 639-5/doc
- Language/data/ISO 639-5/make
- Language/data/ISO 639-5/make/doc
- Language/data/ISO 639 name to code
- Language/data/ISO 639 name to code/doc
- Language/data/ISO 639 name to code/make
- Language/data/ISO 639 name to code/make/doc
- Language/data/ISO 639 override
- Language/data/ISO 639 override/doc
- Language/data/doc
- Language/data/iana
- Language/data/iana/doc
- Language/data/iana/make
- Language/data/iana/make/doc
- Language/data/iana languages
- Language/data/iana languages/doc
- Language/data/iana regions
- Language/data/iana regions/doc
- Language/data/iana scripts
- Language/data/iana scripts/doc
- Language/data/iana suppressed scripts
- Language/data/iana suppressed scripts/doc
- Language/data/iana variants
- Language/data/iana variants/doc
- Language/data/wp languages
- Language/data/wp languages/doc
- Language/doc
- Language/name
- Language/name/data
- Language/name/data/doc
- Language/name/doc