Template:GameText/doc

This template is used to retrieve in-game text, based on the game text database which is taken from the source code.

Note: this template is relatively slow, so please use other database templates first, if possible.

Usage
Index key for text. Same as in-game language JSON files. See examples below.
 * Unnamed Parameter 1

Language code. Currently we have 9 languages (as in-game): en/es/it/de/fr/zh/pl/pt/ru. All other lang codes will use en database.
 * lang (optional)

Replacement for placeholder. There are 2 types of placeholder in the game text:  and , indexed by   and  , respectively. See examples below.
 * all  and   parameters

By default, link breaks (\n) in gameText will be replaced with &lt;br/&gt;. If  is set, it will output raw text.
 * nl2br

Data Store
de:Vorlage:GameText fr:Modèle:GameText