Template:BlockGrid/doc

From TerraFirmaCraft Plus Wiki
Revision as of 04:56, 25 April 2012 by SpAnser (talk | contribs) (1 revision)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This Template is used to draw simple 2D-Blockgraphics.

It uses the terms from BlockSprite to define single-character-abbrevations for blocks, which can be used in a Table-like fashion

Example

{{BlockGrid
|g=grass-block|s=stone|S=sand| =air
|s g
|gSa
}}
produces
{{#fornumargs: rownum | tablerow | {{#loop: column | 0 | 0 | }} }}

Note that undefined prefixes or prefixes assigned to block names unknown to the BlockSprite template are replaced by .

Also, the space character (“ ”) can be used as key, but will be removed at the beginning and end of rows.