Template:Resource/doc
From Reus
Variables
name (english name of resource)
value (count of resource, e.g. +5, 10; can be unset)
lang (ISO language identifier; can be unset)
icon (path to resource icon; can be unset: #default="File:icon_" + lower(name) + ".png")
Use icon's names as icon_technology.png, icon_nature.png and so on.
name translations must be setted in Template:Dictionary[LanguageName] (e.g. Template:DictionaryGerman)
Usage
In English:
- {{Resource|name=Technology}} – Results in: Technology
- {{Resource|name=Technology|value=150}} – Results in: 150
To use in articles in another language, add a second variable with the desired language ISO code. This will not only change the display language, but will also change the link to the apropriated article. For example:
- {{Resource|name=Technology|lang=de}} – Results in: Technologie
- {{Resource|name=Technology|value=150|lang=de}} – Results in: 150