模板:Translit module documentation/doc

此模板为转译模组生成文档页面。模板生成需要一个语言或文字的代码作为参数。第二个参数为可选,提供在“此模块将音译x语言文本”之后显示其他文字。

If the second parameter is not provided, the languages that use the module will be listed, if they can be detected. In all cases, a category will be added for every language, and the category Transliteration modules will be added, with the canonical name corresponding to the code in the module name as sortkey (for example, Module:sa-translit[[Category:Transliteration modules|Sanskrit]]).

Module:languages/byTranslitModule finds the languages that use the module, and the translitModuleLangList function in Module:documentation lists them, and the categorize function in Module:module categorization adds categories for each one. This will only work if the transliteration module is listed in the language's data file or in the language's entry in Module:translit-redirect/data.