Bladerikwr (talk | contribs) m (Fix unintended new line being created) |
Bladerikwr (talk | contribs) (Changed to fixed height) |
||
Line 2: | Line 2: | ||
|bmats |
|bmats |
||
|Bmats |
|Bmats |
||
− | |BMats = {{Nowrap|{{{1}}} [[File:Basic Materials.png| |
+ | |BMats = {{Nowrap|{{{1}}} [[File:Basic Materials.png|x20px|link=Basic Materials]]}} |
|rmats |
|rmats |
||
|Rmats |
|Rmats |
||
− | |RMats = {{Nowrap|{{{1}}} [[File:Refined Materials.png| |
+ | |RMats = {{Nowrap|{{{1}}} [[File:Refined Materials.png|x20px|link=Refined Materials]]}} |
|emats |
|emats |
||
|Emats |
|Emats |
||
− | |EMats = {{Nowrap|{{{1}}} [[File:Explosive Materials.png| |
+ | |EMats = {{Nowrap|{{{1}}} [[File:Explosive Materials.png|x20px|link=Explosive Materials]]}} |
|hemats |
|hemats |
||
|Hemats |
|Hemats |
||
− | |HEmats = {{Nowrap|{{{1}}} [[File:HeavyExplosiveMaterialIcon.png| |
+ | |HEmats = {{Nowrap|{{{1}}} [[File:HeavyExplosiveMaterialIcon.png|x20px|link=Heavy Explosive Materials]]}} |
|smats |
|smats |
||
|Smats |
|Smats |
||
− | |SMats = {{Nowrap|{{{1}}} [[File:Strong Materials Icon.png| |
+ | |SMats = {{Nowrap|{{{1}}} [[File:Strong Materials Icon.png|x20px|link=Strong Materials]]}} |
|diesel |
|diesel |
||
− | |Diesel = {{Nowrap|{{{1}}} [[File:Diesel.png| |
+ | |Diesel = {{Nowrap|{{{1}}} [[File:Diesel.png|x20px|link=Diesel]]}} |
|petrol |
|petrol |
||
− | |Petrol = {{Nowrap|{{{1}}} [[File:Petrol.png| |
+ | |Petrol = {{Nowrap|{{{1}}} [[File:Petrol.png|x20px|link=Petrol]]}} |
}}<noinclude> |
}}<noinclude> |
||
{{Doc}} |
{{Doc}} |
Revision as of 18:50, 3 July 2019
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:
Crude Oil:
Components:
Sulfur:
Aluminium:
Iron:
Copper:
Shovel:
Sandbags:
Metal Beams:
Barbed Wire:
|
The above documentation is transcluded from Template:ResourceDisp/doc. (edit | history)