Template:Resource

From Reus
Revision as of 11:15, 27 April 2014 by Moshka (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
[view] [edit] [history] [purge] Documentation icon Template documentation

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 Technology
  • {{Resource|name=Technology|value=150}} – Results in: 150 Technology

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 Technologie
  • {{Resource|name=Technology|value=150|lang=de}} – Results in: 150 Technologie
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox