Foxhole Wiki
Advertisement
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:

120 Basic Materials.png

Let's pretend you're writing an article and want to display the Petrol icon right after saying the word, like this: Petrol Petrol.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

Shovel:

  • Shovel
  • shovel

Sandbags:

  • Sandbags
  • sandbags

Metal Beams:

  • Metalbeam
  • MetalBeam
  • metalbeam

Barbed Wire:

  • BarbedWire
  • Barbedwire
  • barbedwire
Advertisement