Template:Resource
[[{{{resource}}}|{{{resource}}}]]
Template documentation
|
---|
View or edit this documentation. (About template documentation)
Portions of the template sample may not be visible without values provided. |
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.
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.
A template for easily embedding resource icons wherever they are needed.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Resource | resource 1 | The resource icon and the label to be shown. See the suggested values for all the valid options. Note that labels for Credits and Commands Points are hidden by default — see the "Omit label" option for more.
| Line | required |
Omit or display the label | omit label | Enable this to omit the label. Leave it disabled to display the label. Enabled by default for Credits and Command Points.
| Boolean | optional |