A Wiki in the Desert
Log in

Difference between revisions of "Template:BuildCost"

From A Wiki in the Desert
m
m
Line 4: Line 4:
  
 
{{#arraydefine:p|{{#explode:{{{3|}}}|,}}|unique,sort=desc}}
 
{{#arraydefine:p|{{#explode:{{{3|}}}|,}}|unique,sort=desc}}
 +
 +
{{#subobject:
 +
|Has building=Aaa Test Rhaom
 +
|count={{#var:count}}
 +
|item={{#var:base}}
 +
|verified={{{verified|false}}}
 +
|property={{#arrayprint:p|, }}
 +
|+sep=
 +
}}
  
 
{{#ifeq:{{{verified|}}}|true
 
{{#ifeq:{{{verified|}}}|true

Revision as of 15:27, 30 December 2025


Defines a number of items as being a build cost of the object described by the page. Supports multiple properties per item.

Template parameters

ParameterDescriptionTypeStatus
Number1

The number of this item that is required

Example
1
Numberrequired
Item2

The base item that is required.

Example
Treated Board
Unknownrequired
Properties3

A comma-separated list of properties for the required item

Example
Black, Smooth
Unknownoptional
Verifiedverified

If the requirement has been verified or not

Default
false
Example
false
Booleansuggested