Jump to: navigation, search

Template:BlockGrid

Documentation
Lua logo.svg
This template uses Module:BlockGrid, a script written in the Lua programming language. Please see wp:Lua and mw:Extension:Scribunto to learn more about Lua.

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

It uses the IDs 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
|s g
|gSa
}}
produces

Lua error in Module:BlockGrid at line 14: bad argument #2 to 'insert' (number expected, got string).

Note that undefined prefixes or prefixes assigned to block names unknown to the BlockSprite template are replaced by Lua error: expandTemplate: template "Translation category" does not exist..

The above documentation is transcluded from Template:BlockGrid/doc.



Cookies help us deliver our services. By using our services, you agree to our use of cookies.