Template:Module cat/documentation

From The Languages of David J. Peterson
Revision as of 12:16, 21 September 2023 by Juelos (talk | contribs) (Created page with "{{documentation subpage}} {{uses lua|Module:module categorization}} This module can automatically categorize modules that are named in predictable ways: with language code, a...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Documentation for Template:Module cat. [edit]
This page contains usage information, categories, interwiki links and other content describing the template.

This module can automatically categorize modules that are named in predictable ways: with language code, a hyphen, and a word explaining what the module is. For example, it recognizes the title uk-pronunciation and adds the categories Ukrainian modules and Pronunciation modules. The list of correspondences between the last part of the module name and the category are found in Module:module categorization, which generates the content for this template. The module adds the appropriate sortkeys.

This template is used by {{translit module documentation}} to add categories for all languages that list the transliteration module in their data tables. For instance, Module:sa-translit has the language code for Sanskrit (sa) in its title, but it is currently used for languages besides Sanskrit.

Simply place {{module cat}} at the bottom of the module documentation page, where you would normally put the categories. It need not be inside the <includeonly></includeonly> tags, as the module will not add categories on documentation pages.