Jump to content
Discussions
in:

Undertale Wiki:Templates

From Undertale Wiki

Templates are pieces of wikitext that allow reusing functionality and design across different wiki pages, making for a consistent user and editor experience.

Documentation

Every template should contain brief documentation on how to use it, along with some samples and full documentation of its parameters. Documentation should be on a separate page in the template namespace, suffixed with /doc, so if the original template was located on Template:A its documentation would be located on Template:A/doc page.

When on the documentation page, you can use the "Edit template data" button to edit template data of that template. Template data serves as the main introduction to the template together with its parameter and formatting documentation, and is also used by the visual editor and the "Insert a template" button in the source editor.

To display the template in action, add a Sample output section with demonstration on how the template works using {{Samples}}. If the template has other dependencies and related pages that give more context on how the template is used, add them into a See also section.

Categorization

All templates are categorized in the templates category or one of its subcategories. Template documentation pages are categorized under the template documentation category. When a sufficient amount of templates share similarities between each other, they should be grouped together into a new template category.

To categorize templates, use {{Template category}} on the template documentation page. This categorizes both the template and its documentation appropriately.