模組:Language/doc
此頁面為 Module:Language 的說明文件
此模組文件已評為beta版,可廣泛使用。因其新近完成,請謹慎使用,以確保輸出結果符合預期。 |
使用
該模塊受到Wiktionary上的模板 {{m}}和 {{l}}及其關聯模塊的調控。它具有維基詞典鏈接功能,鏈接到維基詞典的正確部分,並應用正確的語言格式和斜體。語言格式化函數完成{{{2}}}所做的大部分工作,以及將字體修改成適當的斜體。
它最終應該能夠在許多{{lang-xx}}模板中直接生成文本,例如{{lang-fr}}(甚者,它將可以為某些語言生成自動音譯和IPA,以供在像{{lang-rus}}這樣的模板中使用)。
舉例
* {{#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|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|فارسی}}
錯誤
* {{#invoke:Language|wikt|en-Latin|language}}
- language [
Latin
is not a valid script code.]
Subpages
「Language」前綴的頁面在「Module」和「Module talk」命名空間:
Module:
Language |
- Language/data/ISO 639-1
- Language/data/ISO 639-2
- Language/data/ISO 639-2B
- 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-3/sandbox
- Language/data/ISO 639-5
- Language/data/ISO 639 deprecated
- Language/data/ISO 639 override
- Language/data/iana languages
- Language/data/iana languages/doc
- Language/data/iana languages/make
- Language/data/iana languages/sandbox
- Language/data/iana regions
- Language/data/iana scripts
- Language/data/iana suppressed scripts
- Language/data/iana variants
- Language/data/iso 15924
- Language/data/iso 3166-1
- Language/data/iso 3166-1/doc
- Language/data/names
- Language/data/sandbox
- Language/data/un m.49
- Language/data/un m.49/doc
- Language/data/wp languages
- Language/data/wp languages/doc
- Language/doc
- Language/external links
- Language/external links/doc
- Language/name
- Language/name/data
- Language/name/data/ISO 639 synonym extraction tool
- Language/name/data/doc
- Language/name/data/iana data extraction tool
- Language/name/data/iana data extraction tool/doc
- Language/name/doc
- Language/sandbox
- Language/scripts
- Language/scripts/codepoints
- Language/scripts/codepoints/doc
- Language/scripts/codepoints adjacent merged
- Language/scripts/codepoints verbatim
- Language/scripts/data
- Language/scripts/data/doc
- Language/scripts/doc
- Language/scripts/testcases
- Language/testcases
- Language/text
- Language/text/doc