Template:ID table/doc

From MC Public Wiki
Jump to navigation Jump to search

{{#vardefine: nodoc | {{{nodoc}}} }}{{#vardefine: baddoc | {{{baddoc}}} }}

Template-info.png Documentation
Icon Dec Hex Block type
00 00 Air
Stone.png 01 01 Stone
Grass.png 02 02 Grass
Dirt.png 03 03 Dirt
Wood.png 17 11 Wood D B
Leaves.png 18 12 Leaves D
Sponge.png 19 13 Sponge

This template creates a table like the one on the right.


Parameter Function Default value
align Alignment of the table (none, left, right, etc.) left
icon Title above icons Icon
dec Title above decimal IDs Dec
hex Title above hexadecimal IDs Hex
name Title above block/item names Block name
rows Rows of a table. Each row must use {{ID table row}}. empty


{{ID table
| align = right
| icon = Icon
| dec = Dec
| hex = Hex
| name = Block type
| rows =
{{ID table row | icon =            | id = 00 | idcolor = red   | name = Air}}
{{ID table row | icon = Stone.png  | id = 01 | idcolor =       | name = Stone}}
{{ID table row | icon = Grass.png  | id = 02 | idcolor = red   | name = Grass}}
{{ID table row | icon = Dirt.png   | id = 03 | idcolor =       | name = Dirt}}
{{ID table row | icon = Wood.png   | id = 17 | idcolor =       | name = Wood}} <sup>[[#Wood|D]]</sup> <sup>[[#Wood|B]]</sup>
{{ID table row | icon = Leaves.png | id = 18 | idcolor = red   | name = Leaves}} <sup>[[#Wood|D]]</sup>
{{ID table row | icon = Sponge.png | id = 19 | idcolor = green | name = Sponge}}
}}

This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.