Foxhole Wiki
Advertisement

{{#switch: {{{2}}} |bmats |Bmats |BMats = {{{1}}} Basic Materials.png

|rmats |Rmats |RMats = {{{1}}} Refined Materials.png

|emats |Emats |EMats = {{{1}}} Explosive Materials.png

|hemats |Hemats |HEmats = {{{1}}} HeavyExplosiveMaterialIcon.png

|relicmats |Relicmats = {{{1}}} RelicMaterials.png

|diesel |Diesel = {{{1}}} Diesel.png

|petrol |Petrol = {{{1}}} Petrol.png

|Scrap |scrap |Salvage |salvage = {{{1}}} SalvageIcon.png

|CrudeOil |Oil |oil |Crude Oil |Crude oil |crude oil= {{{1}}} CrudeOilIcon.png

|Components |components = {{{1}}} Components.png

|Sulfur |sulfur = {{{1}}} SulfurPlaceholder.png

|Aluminium |aluminium |Alu |alu = {{{1}}} Aluminium.PNG

|Iron |iron = {{{1}}} Iron.PNG

|AluminiumAlloy |AAlloy |AluA = {{{1}}} AluminiumAlloy.PNG

|IronAlloy |IAlloy = {{{1}}} IronAlloy.PNG

|cmat |Cmat |cmats |Cmats |Concrete |concrete = {{{1}}} Concrete Materials Icon.png

|smats |smat |shovels |Shovels |Shovel |shovel = {{{1}}} ShovelIcon.png

Template-info.png Documentation

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:

{{#switch: Bmats |bmats |Bmats |BMats = 120 Basic Materials.png

|rmats |Rmats |RMats = 120 Refined Materials.png

|emats |Emats |EMats = 120 Explosive Materials.png

|hemats |Hemats |HEmats = 120 HeavyExplosiveMaterialIcon.png

|relicmats |Relicmats = 120 RelicMaterials.png

|diesel |Diesel = 120 Diesel.png

|petrol |Petrol = 120 Petrol.png

|Scrap |scrap |Salvage |salvage = 120 SalvageIcon.png

|CrudeOil |Oil |oil |Crude Oil |Crude oil |crude oil= 120 CrudeOilIcon.png

|Components |components = 120 Components.png

|Sulfur |sulfur = 120 SulfurPlaceholder.png

|Aluminium |aluminium |Alu |alu = 120 Aluminium.PNG

|Iron |iron = 120 Iron.PNG

|AluminiumAlloy |AAlloy |AluA = 120 AluminiumAlloy.PNG

|IronAlloy |IAlloy = 120 IronAlloy.PNG

|cmat |Cmat |cmats |Cmats |Concrete |concrete = 120 Concrete Materials Icon.png

|smats |smat |shovels |Shovels |Shovel |shovel = 120 ShovelIcon.png


Let's pretend you're writing an article and want to display the Petrol icon right after saying the word, like this: {{#switch: Petrol |bmats |Bmats |BMats = Petrol Basic Materials.png

|rmats |Rmats |RMats = Petrol Refined Materials.png

|emats |Emats |EMats = Petrol Explosive Materials.png

|hemats |Hemats |HEmats = Petrol HeavyExplosiveMaterialIcon.png

|relicmats |Relicmats = Petrol RelicMaterials.png

|diesel |Diesel = Petrol Diesel.png

|petrol |Petrol = Petrol Petrol.png

|Scrap |scrap |Salvage |salvage = Petrol SalvageIcon.png

|CrudeOil |Oil |oil |Crude Oil |Crude oil |crude oil= Petrol CrudeOilIcon.png

|Components |components = Petrol Components.png

|Sulfur |sulfur = Petrol SulfurPlaceholder.png

|Aluminium |aluminium |Alu |alu = Petrol Aluminium.PNG

|Iron |iron = Petrol Iron.PNG

|AluminiumAlloy |AAlloy |AluA = Petrol AluminiumAlloy.PNG

|IronAlloy |IAlloy = Petrol IronAlloy.PNG

|cmat |Cmat |cmats |Cmats |Concrete |concrete = Petrol Concrete Materials Icon.png

|smats |smat |shovels |Shovels |Shovel |shovel = Petrol ShovelIcon.png


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:

  • bmats
  • Bmats
  • BMats

Refined Materials:

  • rmats
  • Rmats
  • RMAts

Explosive Materials:

  • emats
  • Emats
  • EMats

Heavy Explosive Materials:

  • hemats
  • Hemats
  • HEmats

Concrete Materials:

  • Cmats
  • Concrete
  • concrete

Relic Materials:

  • relicmats
  • Relicmats

Diesel:

  • diesel
  • Diesel

Petrol:

  • petrol
  • Petrol

Salvage:

  • salvage
  • Salvage
  • scrap
  • Scrap

Crude Oil:

  • CrudeOil
  • Oil
  • oil
  • Crude Oil
  • Crude oil
  • crude oil

Components:

  • components
  • Components

Sulfur:

  • sulfur
  • Sulfur

Aluminium:

  • Aluminium
  • aluminium
  • Alu
  • alu

Iron:

  • Iron
  • iron

Copper:

  • Copper
  • copper

Shovel:

  • Shovel
  • shovel

Sandbags:

  • Sandbags
  • sandbags

Metal Beams:

  • Metalbeam
  • MetalBeam
  • metalbeam

Barbed Wire:

  • BarbedWire
  • Barbedwire
  • barbedwire
Advertisement