模組:Language/doc
此頁面為 模組:Language 的說明文件
Usage
Siŭ-gāiThis module is used by {{wikt-lang}}
and {{wt}}
. It is inspired by the templates [[wikt:Template:m|模板:((m模板:))]] and [[wikt:Template:l|模板:((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 模板:T does, except that italics can't be customized and categories aren't added.
Examples
Siŭ-gāi* {{#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ǵʰ-}}
Invalid codes
Siŭ-gāi* {{#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|فارسی}}
Errors
Siŭ-gāi* {{#invoke:Language|wikt|en-Latin|language}}
- language [
Latin
is not a valid script code.]
Subpages
Siŭ-gāiPages with the prefix 'Language' in the 'Module' and 'Module talk' namespaces:
Module:
Language |
- Language/data
- Language/data/ISO 639-3
- Language/data/ISO 639-3/make
- Language/data/ISO 639 override
- Language/data/iana
- Language/data/iana/make
- Language/data/iana languages
- Language/data/iana regions
- Language/data/iana scripts
- Language/data/iana suppressed scripts
- Language/data/iana variants
- Language/data/wp languages
- Language/doc
- Language/name
- Language/name/data
- Language/scripts
- Language/scripts/codepoints
- Language/scripts/codepoints/make
- Language/scripts/data
- Language/scripts/doc
- Language/scripts/testcases
Module talk: