Template:Data template/doc

This template is used on data templates to provide a very basic, standardized documentation of their purpose. It also automatically categorizes the template accordingly.

This aims at addressing the common misunderstanding of especially newer editors considering a page with no visible output unnecessary and unused.

Usage
The template will automatically detect the template it is used on and display a predefined documentation that is stored in the localization database under the key named after the template page's root page name (the base subpage level). For instance, data template on Template:Achievement/db will try to display the text with the l10n key of achievement. Use the first unnamed parameter to override this behavior and force an l10n key that the template should use.

For unregistered l10n keys (regardless of whether passed via parameter or root page name), the template will display a vague default text. It is preferable to define a documentation for every template that it is used on, because this default documentation is not very helpful.

Note that every documentation is preceded by the following sentence: ""

The template recognizes localization subtemplates, on which it will always display the same documentation, regardless of root page name. It will furthermore categorize the template in Category:Localization subtemplates instead of Category:Data templates.