A template for lists of materials, e.g. build/supply requirements for units. If used in a table cell, it must be placed on its own line, as in the example below; putting it on the same line as other cells leads to broken table markup.
This template supports up to 5 pairs of arguments. Each pair consists of an amount (e.g. 10) and a good (e.g. Canned Food). The goods are presented with the amounts, icon, and name each horizontally aligned.
Example:
{| class="wikitable" ! Unit ! Build cost ! Supply cost |- | {{icon|Infantry}} Infantry | {{materials|10|Wool|10|Canned Food}} | {{materials|0.012|Small Arms|0.075|Ammunition|0.07|Canned Food}} |}
gives
Unit | Build cost | Supply cost | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Infantry |
|
|