Şablon:BlockGrid/doc

Minecraft Wiki sitesinden
Şuraya atla: kullan, ara
This is the documentation page, it should be transcluded into the main template page. See Template:Documentation for more information
Lua logo.svg
This template uses Module:BlockGrid, a script written in Lua.
Please see wp:Lua and mw:Extension:Scribunto to learn more.

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

Icons can be rotated by adding -rot<number> on the end of the sprite ID (e.g. Red Glazed Terracotta-rot90 for a red glazed terracotta rotated 90 degrees).

{{{spacing}}} sets the pixels of spacing between each cell, 0 by default.

Example[kaynağı değiştir]

{{BlockGrid
|g=Grass Block|s=stone|S=sand|m=magenta-glazed-terracotta|M=magenta-glazed-terracotta-rot90
|s g
|gSa
|mMm
}}
produces








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

See also[kaynağı değiştir]