Template:Shape
Appearance
Draws the cells an item takes in a grid as a block, the way the game's grids show it. The item infobox's SIZE and the item tables use it, and any page can.
Write a shape as its rows from the top, separated by /, with X for a cell the item fills and . for one it leaves empty, up to 8 cells a side. A shape is always drawn lying flat: one taller than it is wide is turned on its side, so X/X/X draws as XXX. The text beside it counts the cells, such as 3 CELLS or 1 CELL.
| You write | You get | For |
|---|---|---|
{{Shape|X}} |
1 CELL | One cell. |
{{Shape|XXX}} |
3 CELLS | Three in a row. |
{{Shape|XX/XX}} |
4 CELLS | A square of four. |
{{Shape|X./XX}} |
3 CELLS | The game's L piece. |
{{Shape|XXX/.X.}} |
4 CELLS | The game's T piece. |
{{Shape|XX./.XX}} |
4 CELLS | Any other shape. |
{{Shape|XXX/.X.|cell=24}} |
4 CELLS | cell sets a cell's size in pixels, from 4 to 40. The default is 14.
|
{{Shape|XXX/XXX|label=no}} |
label=no leaves out the text beside the block.
|
Module:Shape reads and draws the shape, and Template:Shape/styles.css styles it.