Template:Resource/doc
Jump to navigation
Jump to search
A far more simplified template for inserting resource icons into articles. No need to include the icon file name or target link page anymore, simply invoke the template and the required resource. For example
{{Resource|Steel}}
Results in: Steel
These icons can even be used in-line, for example we can write about Steel like this, or say that an experimental new part needs 10,000 Hyper-Coils to construct.
List of Available Resources
The following is a list of current available icons:
- Credits (text is added here manually, since it is omitted by default)
- Command Points (text is added here manually, since it is omitted by default)
- Carbon
- Copper
- Gold
- Hyperium
- Iron
- Sulfur
- Tritanium
- Uranium
- Coils
- Diamond
- Enriched Uranium
- Hyper-Coils
- Processor
- Steel
- Tri-Steel
- Ammo
- EMP Missile Parts
- HE Missile Parts
- Mine Parts
- Nuclear Missile Parts
- Battery
Using Named Resource Parameter
{{Resource|resource=Tri-Steel}}
Result: Tri-Steel
Using "omit label" Parameter
By default, only a few resources have their labels omitted. If this option is present in any way (enabled/disabled), it overrides the default behaviour.
To see what resource labels are omitted by default check out the parameter description.
Examples:
{{Resource|resource=Tri-Steel|omit label=0}}
→ Tri-Steel - no effect, label is present by default.{{Resource|resource=Tri-Steel|omit label=1}}
→ - label is omitted.{{Resource|resource=Credits|omit label=0}}
→ Credits - label is displayed instead of being omitted by default.{{Resource|resource=Credits|omit label=1}}
→ - no effect, label is omitted by default.