Template:ResourceList/doc

From Reus
Revision as of 23:39, 17 August 2013 by Madman with a box (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Description

This templates creates a list of resources with images and links based on the given parameters.

Parameter List

This template has nine named parameters. Any parameter that is not needed can be ommited.

{{ResourceList
|food         = <!-- the number of food within the list -->
|technology   = <!-- the number of food technology the list -->
|wealth       = <!-- the number of food wealth the list -->
|natura       = <!-- the number of food natura the list -->
|danger       = <!-- the number of food danger the list -->
|awe          = <!-- the number of food awe the list -->
|range        = <!-- the number of food range the list -->
|pre          = <!-- the string to add before each resource, e.g. + -->
|language     = <!-- language code for translation, en is the default -->
}}

Examples

Example Description Code to use Output
Simple list with three resource types
{{ResourceList|food=3|technology=5|awe=2}}
3 Food 5 Technology 2 Awe
Showing all resource tyes
{{ResourceList|food=3|technology=5|wealth=10|natura=7|danger=1|awe=2|range=2}}
3 Food 5 Technology 10 Wealth 7 Natura 1 Danger 2 Awe 2 Range
Showing all resource tyes with a + before each resource
{{ResourceList|food=3|technology=5|wealth=10|natura=7|danger=1|awe=2|range=2|pre=+}}
+3 Food +5 Technology +10 Wealth +7 Natura +1 Danger +2 Awe +2 Range
Simple list in different language
{{ResourceList|food=3|technology=5|awe=2|language=de}}
3 Food 5 Technology 2 Awe


Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox