Template:Data template

From Terraria Wiki
Jump to navigation Jump to search
This template is i18n-ready, which means it is easy to localize for different languages. Please see I18n & l10n for templates to learn more.
See Template:Data template/l10n for the localization of this template.
Template-info.svg Documentation The documentation below is transcluded from Template:Data template/doc. (edit | history)

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

{{ data template | <alteration of automatic doc text> }}

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: "This template is a data template."

See also