Template:Stdblock/doc

From StarMade Wiki

Revision as of 07:41, 21 May 2015 by DukeofRealms (talk | contribs) (1 version)

This template produces a standard Block Data section for a game block.

Usage

{{stdblock}}

Data Source

This is a data-driven template which pulls its data from the content of the including-page's /blockdata subpage, which must conform to the following format:

{{{ppp | p={{{1}}}
| type= <name> 
| hp = <hitpoints> 
| armor = <armor> 
| light = <light> 
| dv = <block id> 
| craftType = <type of crafting, either factory or refinery> 
| craftBlock = <block used in crafting>
| craftIT1 = <input block type 1> 
| craftIC1 = <input block count 1> 
| craftIT2 through craftIT4 and craftIC2 through craftIC4 for additional inputs
| craftOT1 through craftOT4 and craftOC1 through craftOC4 for outputs 
| usedin = <list of block types separated by {{!}} in which this block is used for crafting 
}}

All values must be present - missing values will show up as unresolved template expansions if they are referenced. The /blockdata subpage is intended to be populated by an automation script pulling data directly from the game XML files. It is not intended to be maintained by humans.