Template:ResourceDisp
Usage
This template can be used to display a resource icon in line with text. Due to {{Nowrap}}
constraints, you must enter the word/number that comes before the resource icon, into the template as a parameter; more on that below.
In the rare circumstance that you only want to display the resource icon, leave the first parameter blank like so: {{ResourceDisp||resource}}
Example
Let's say that we're using {{Vehicle Infobox}}
and want to say that a vehicle costs 120 Basic Materials. Under the cost
parameter you would put {{ResourceDisp|120|BMats}}
which produces:
Let's pretend you're writing an article and want to display the Petrol icon right after saying the word, like this: Petrol
To do this, you would have to do {{ResourceDisp|Petrol|Petrol}}
. Hopefully you understand the very second sentence of the Doc now.
Parameters
Parameter | Description |
---|---|
First | The word or number that comes before the icon. |
Second | The resource that you want to display the icon of. Acceptable spellings:
Basic Materials:
Refined Materials:
Explosive Materials:
Heavy Explosive Materials:
Concrete Materials:
Relic Materials:
Diesel:
Petrol:
Salvage:
Components:
Sulfur:
Aluminium:
Iron:
Copper:
Shovel:
Sandbags:
Metal Beams:
Barbed Wire:
Pipe:
Oil:
Heavy Oil:
Enriched Oil:
Coal:
Coke:
Water:
Gravel:
Construction Materials:
Processed Construction Materials:
Steel Construction Materials:
Assembly Materials I:
Assembly Materials II:
Assembly Materials III:
Assembly Materials IV:
Assembly Materials V:
Rare Alloys:
Rare Metal:
Thermal Shielding:
Unstable Substances:
Naval Hull Segments:
Naval Shell Plating:
Naval Turbine Components:
A0E-9 Rocket Booster:
A0E-9 Rocket Body:
A0E-9 Rocket Warhead:
|
The above documentation is transcluded from Template:ResourceDisp/doc. (edit | history)