Template:Translit module documentation: Difference between revisions
m (Replaced Wiktionary: links with Project: links) |
(Replaced content with "<includeonly>{{#invoke:documentation/translit|documentation_template}}</includeonly><noinclude>{{documentation}}</noinclude>") Tag: Replaced |
||
Line 1: | Line 1: | ||
<includeonly>{{#invoke:documentation/translit|documentation_template}}</includeonly><noinclude>{{documentation}}</noinclude> | |||
Latest revision as of 11:37, 4 May 2024
- The following documentation is located at Template:Translit module documentation/documentation. [edit]
- Useful links: subpage list • transclusions • redirects • sandbox
This template generates documentation pages for transliteration modules. It requires a single parameter: the language or script code. The second parameter provides optional text to be displayed after "This module will transliterate x language text".
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.