Template:Category

From Terraria Wiki
Jump to: navigation, 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.
Template-info.svg Documentation The documentation below is transcluded from Template:Category/doc. (edit | history)

This template is roughly an i18n-ready version of [[Category:]]

Usage

{{category|<catetext (english)>|<key (optional)>|lang=<langcode (optional)>}}

catetext will be localized, and key won't.

This template will try to localize catetext by following steps:

  1. If it is a language within main wiki (e.g. it, es, ...), catetext will be appended language suffix, e.g,: Biomes -> Biomes/es.
  2. If it is a language with its own wiki:
    1. catetext will be translated according to the glossary defined in the Template:category/db-<lang>.
    2. If there is no definition in the glossary, it will be translated via {{tr}}.