Template:ID table row/doc

From MC Public Wiki
< Template:ID table row
Revision as of 17:02, 14 October 2011 by Admin (talk | contribs) (1 revision)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

Template-info.png Documentation

This is a single row of ID table. It should't be used outside of that template.


Parameter Function Default value
icon Block/item icon. If empty, icon will not be displayed empty
id Decimal ID of block/item. Leading 0's are not removed 00
idcolor If non-empty, color of IDs empty
name Name of a block/item. If such page exists, will be used as link. Can contain [[...]] empty



Examples

Regular block:

{{ID table
| align = none
| rows =
{{ID table row | icon = Stone.png | id = 01 | idcolor = | name = Stone}}
}}
Icon Dec Hex Block name
Stone.png 01 01 Stone


Block, that cannot be legitimately obtained:

{{ID table
| align = none
| rows =
{{ID table row | icon = Grass.png | id = 02 | idcolor = red | name = Grass}}
}}
Icon Dec Hex Block name
Grass.png 02 02 Grass


Removed block:

{{ID table
| align = none
| rows =
{{ID table row | icon = Sponge.png | id = 19 | idcolor = green | name = Sponge}}
}}
Icon Dec Hex Block name
Sponge.png 19 13 Sponge


Block without icon:

{{ID table
| align = none
| rows =
{{ID table row | icon = | id = 00 | idcolor = red | name = Air}}
}}
Icon Dec Hex Block name
00 00 Air


Only part of the name is a link:

{{ID table
| align = none
| rows =
{{ID table row | icon = Redstone (Torch, Active).png | id = 76 | idcolor = | name = [[Redstone Torch]] ("on" state)}}
}}
Icon Dec Hex Block name
Redstone (Torch, Active).png 76 4C Redstone Torch ("on" state)


Superscript letters after block names (e.g. D for blocks that have additional data) are not supported yet. You must manually add <sup>...</sup> after this template:

{{ID table
| align = none
| rows =
{{ID table row | icon = Leaves.png | id = 18 | idcolor = red | name = Leaves}} <sup>[[#Wood|D]]</sup>
}}
Icon Dec Hex Block name
Leaves.png 18 12 Leaves D



More complex example (note additianal spaces):

{{ID table
| align = none
| 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 = Cobblestone.png          | id = 04 | idcolor =       | name = Cobblestone}}
{{ID table row | icon = Wooden Plank.png         | id = 05 | idcolor =       | name = Wooden Plank}}
{{ID table row | icon = Sapling.png              | id = 06 | idcolor =       | name = Sapling}} <sup>[[#Saplings|D]]</sup>
{{ID table row | icon = Bedrock.png              | id = 07 | idcolor = red   | name = Bedrock}}
{{ID table row | icon = Water.png                | id = 08 | idcolor = red   | name = Water}} <sup>[[#Water and Lava|D]]</sup>
{{ID table row | icon = Water.png                | id = 09 | idcolor = red   | name = Stationary [[Water]]}} <sup>[[#Water and Lava|D]]</sup>
{{ID table row | icon = Lava.png                 | id = 10 | idcolor = red   | name = Lava}} <sup>[[#Water and Lava|D]]</sup>
{{ID table row | icon = Lava.png                 | id = 11 | idcolor = red   | name = Stationary [[Lava]]}} <sup>[[#Water and Lava|D]]</sup>
{{ID table row | icon = Sand.png                 | id = 12 | idcolor =       | name = Sand}}
{{ID table row | icon = Gravel.png               | id = 13 | idcolor =       | name = Gravel}}
{{ID table row | icon = Gold (Ore).png           | id = 14 | idcolor =       | name = Gold Ore}}
{{ID table row | icon = Iron (Ore).png           | id = 15 | idcolor =       | name = Iron Ore}}
{{ID table row | icon = Coal (Ore).png           | id = 16 | idcolor = red   | name = Coal Ore}}
{{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}}
}}
Icon Dec Hex Block type
00 00 Air
Stone.png 01 01 Stone
Grass.png 02 02 Grass
Dirt.png 03 03 Dirt
Cobblestone.png 04 04 Cobblestone
Wooden Plank.png 05 05 Wooden Plank
Sapling.png 06 06 Sapling D
Bedrock.png 07 07 Bedrock
Water.png 08 08 Water D
Water.png 09 09 Stationary Water D
Lava.png 10 0A Lava D
Lava.png 11 0B Stationary Lava D
Sand.png 12 0C Sand
Gravel.png 13 0D Gravel
Gold (Ore).png 14 0E Gold Ore
Iron (Ore).png 15 0F Iron Ore
Coal (Ore).png 16 10 Coal Ore
Wood.png 17 11 Wood D B
Leaves.png 18 12 Leaves D
Sponge.png 19 13 Sponge

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