Difference between revisions of "Template:Blocks"
Jump to navigation
Jump to search
If you find a typo, inconsistency, or error, please sign up and help out the wiki! We can't do it without your help! :D Thank you!
m (→Syntax) |
|||
(20 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{| class="wikitable navbox mw-collapsible {{#switch: {{{1}}} | {| class="wikitable navbox mw-collapsible {{#switch: {{{1}}} | ||
− | | | + | | Building |
− | | | + | | Decorations |
− | | | + | | Food |
− | | | + | | Redstone |
− | | | + | | Transportation |
− | | | + | | Brewing |
− | | | + | | Misc = |
| #default = mw-collapsed}}" id="blocks-nav" | | #default = mw-collapsed}}" id="blocks-nav" | ||
! Blocks | ! Blocks | ||
|- | |- | ||
| | | | ||
− | {| class="wikitable navbox mw-collapsible {{#ifeq: {{{1}}}| | + | {| class="wikitable navbox mw-collapsible {{#ifeq: {{{1}}}|Building||mw-collapsed}}" |
− | ! colspan="2"| Building blocks | + | ! colspan="2"| {{I|Wooden Planks|}} Building blocks |
|- | |- | ||
! Building blocks | ! Building blocks | ||
| | | | ||
− | * {{ | + | * {{Icon link|Stone}} |
− | * {{ | + | * {{Icon link|Cobblestone}} |
− | * {{ | + | * {{Icon link|Stone Brick}} |
− | * {{ | + | * {{Icon link|Moss Stone}} |
− | * {{ | + | * {{Icon link|Obsidian}} |
− | * {{ | + | * {{Icon link|Bedrock}} |
− | * {{ | + | * {{Icon link|Dirt}} |
− | * {{ | + | * {{Icon link|Grass}} |
− | * {{ | + | * {{Icon link|Coarse Dirt}} |
− | * {{ | + | * {{Icon link|Farmland}} |
− | * {{ | + | * {{Icon link|Mycelium}} |
− | * {{ | + | * {{Icon link|Gold Soil}} |
− | * {{ | + | * {{Icon link|Wood}} ({{Icon link|Wood|Wood#Trees|Tree Wood}}) |
− | * {{ | + | * {{Icon link|Wooden Planks}} |
− | * {{ | + | * {{Icon link|Barrier}} |
− | * {{ | + | * {{Icon link|Coal Ore}} |
− | * {{ | + | * {{Icon link|Iron Ore}} |
− | * {{ | + | * {{Icon link|Gold Ore}} |
− | * {{ | + | * {{Icon link|Diamond Ore}} |
− | * {{ | + | * {{Icon link|Redstone Ore}} |
− | * {{ | + | * {{Icon link|Odd Rock Ore}} |
− | * {{ | + | * {{Icon link|Lapis Lazuli Ore}} |
− | * {{ | + | * {{Icon link|Topaz Ore}} |
− | * {{ | + | * {{Icon link|Ender Gem Ore}} |
− | * {{ | + | * {{Icon link|Block of Topaz}} |
− | * {{ | + | * {{Icon link|Iron Block}} |
− | * {{ | + | * {{Icon link|Gold Block}} |
− | * {{ | + | * {{Icon link|Diamond Block}} |
− | * {{ | + | * {{Icon link|Lapis Lazuli Block}} |
− | * {{ | + | * {{Icon link|Coal Block}} |
− | * {{ | + | * {{Icon link|Sand}} |
− | * {{ | + | * {{Icon link|Sandstone}} |
− | * {{ | + | * {{Icon link|Clay Block}} |
− | * {{ | + | * {{Icon link|Bricks}} |
− | + | * {{Icon link|Snow Block}} | |
− | * {{ | + | * {{Icon link|Ice}} |
− | * {{ | + | * {{Icon link|Frosted Ice}} |
− | * {{ | + | * {{Icon link|Gravel}} |
− | * {{ | + | * {{Icon link|Bookshelf}} |
− | * {{ | + | * {{Icon link|Stairs}} |
− | * {{ | + | * {{Icon link|Slabs}} |
− | * {{ | + | * {{Icon link|Wool}} |
− | + | * {{Icon link|Glass}} | |
− | + | * {{Icon link|Portal Stone}} | |
− | + | * {{Icon link|Netherrack}} | |
− | + | * {{Icon link|Nether Bricks}} | |
− | + | * {{Icon link|Red Nether Bricks}} | |
− | + | * {{Icon link|Glowstone}} | |
− | + | * {{Icon link|Magma Block}} | |
− | + | * {{Icon link|Nether Wart Block}} | |
− | + | * {{Icon link|Soul Sand}} | |
− | + | * {{Icon link|Bone Block}} | |
− | + | * {{Icon link|Enderstone}} | |
− | + | * {{Icon link|Portal Frame}} | |
− | + | * {{Icon link|Dragon Scale Block}} | |
− | + | * {{Icon link|Healing Crystal}} | |
− | + | * {{Icon link|Bamboo Block}} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | * {{ | ||
− | * {{ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | * {{ | ||
− | * {{ | ||
− | * {{ | ||
− | * {{ | ||
− | * {{ | ||
− | * {{ | ||
− | * {{ | ||
− | * {{ | ||
− | * {{ | ||
− | * {{ | ||
− | * {{ | ||
− | * {{ | ||
− | * {{ | ||
− | * {{ | ||
|} | |} | ||
− | {| class="wikitable navbox mw-collapsible {{#ifeq: {{{1}}}| | + | {| class="wikitable navbox mw-collapsible {{#ifeq: {{{1}}}|Decorations||mw-collapsed}}" |
− | ! colspan="2"| Decorations | + | ! colspan="2"| {{I|Shrub|}} Decorations |
|- | |- | ||
! Decorations | ! Decorations | ||
| | | | ||
− | * {{ | + | * {{Icon link|Crafting Table}} |
− | * {{ | + | * {{Icon link|Furnace}} |
− | * {{ | + | * {{Icon link|Chest}} |
− | * {{ | + | * {{Icon link|Ender Chest}} |
− | * {{ | + | * {{Icon link|Enchantment Table}} |
− | * {{ | + | * {{Icon link|Anvil}} |
− | * {{ | + | * {{Icon link|Bed}} |
− | + | * {{Icon link|Doors|Door|Door}} | |
− | * {{ | + | * {{Icon link|Trap Door}} |
− | + | * {{Icon link|Sign}} | |
− | + | * {{Icon link|Sapling}} | |
− | * {{ | + | * {{Icon link|Leaves}} |
− | * {{ | + | * ({{Icon link|Apple in Leaves|Leaves}} |
− | * {{ | + | * {{Icon link|Orange in Leaves|Leaves}} |
− | * {{ | + | * {{Icon link|Golden Apple in Leaves|Leaves}} |
− | * {{ | + | * {{Icon link|Lemon in Leaves|Leaves}}) |
− | * {{ | + | * {{Icon link|Ladder}} |
− | * {{ | + | * {{Icon link|Wooden Fence|Fence|Fence}} |
− | * {{ | + | * {{Icon link|Wooden Fence Gate|Fence Gate|Fence Gate}} |
− | + | * {{Icon link|Iron Bars}} | |
− | * {{ | + | * {{Icon link|Torch}} |
− | * {{ | + | * {{Icon link|Ender Dragon Egg}} |
− | * {{ | + | * {{Icon link|Long Grass}} |
− | + | * {{Icon link|Shrub}} | |
− | + | * {{Icon link|Desert Shrub}} | |
− | * {{ | + | * {{Icon link|Red Flower|Flowers|Flowers}} |
− | * {{ | + | * {{Icon link|Red Mushroom|Mushrooms|Mushrooms}} |
− | * {{ | + | * {{Icon link|Red Mushroom Cap|Mushroom Cap|Mushroom Cap}} |
− | * {{ | + | * {{Icon link|Red Mushroom Stem|Mushroom Stem|Mushroom Stem}} |
− | * {{ | + | * {{Icon link|Bamboo}} |
− | * {{ | + | * {{Icon link|Cactus}} |
− | * {{ | + | * {{Icon link|Seaweed}} |
− | * {{ | + | * {{Icon link|Lily Pad}} |
− | * {{ | + | * {{Icon link|Coral}} |
− | + | * {{Icon link|Coral Lantern}} | |
− | + | * {{Icon link|Cobweb}} | |
− | * {{ | + | * {{Icon link|Rope}} |
− | + | * {{Icon link|Monster Spawner}} | |
− | + | * {{Icon link|Odd Torch}} | |
− | * {{ | + | * {{Icon link|Carpets|Carpet|Carpets}} |
− | * {{ | + | * {{Icon link|Backdrops}} |
− | * {{ | ||
− | * {{ | ||
− | * {{ | ||
− | * {{ | ||
− | * {{ | ||
− | |||
− | |||
− | |||
− | |||
− | * {{ | ||
− | * {{ | ||
− | * {{ | ||
− | |||
− | * {{ | ||
− | |||
− | |||
− | * {{ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|} | |} | ||
− | {| class="wikitable navbox mw-collapsible {{#ifeq: {{{1}}}| | + | {| class="wikitable navbox mw-collapsible {{#ifeq: {{{1}}}|Food||mw-collapsed}}" |
− | ! colspan="2"| Food and Crops | + | ! colspan="2"| {{I|Bread|}} Food and Crops |
|- | |- | ||
! Food and Crops | ! Food and Crops | ||
| | | | ||
− | * {{ | + | * {{Icon link|Lemon Block}} |
− | * {{ | + | * {{Icon link|Sugarcane}} |
− | * {{ | + | * {{Icon link|Cake}} |
− | * {{ | + | * {{Icon link|Cactus Cake}} |
− | * {{ | + | * {{Icon link|Melon Block}} |
− | * {{ | + | * {{Icon link|Pumpkin}} |
+ | * {{Icon link|Jack-o'-Lantern}} | ||
|} | |} | ||
− | {| class="wikitable navbox mw-collapsible {{#ifeq: {{{1}}}| | + | {| class="wikitable navbox mw-collapsible {{#ifeq: {{{1}}}|Redstone||mw-collapsed}}" |
− | ! colspan="2"| Redstone | + | ! colspan="2"| {{I|Redstone Dust|}}Redstone |
|- | |- | ||
! Redstone | ! Redstone | ||
| | | | ||
− | * {{ | + | * {{Icon link|Redstone Torch}} |
− | + | * {{Icon link|Button}} | |
− | * {{ | + | * {{Icon link|Pressure Plate}} |
− | * {{ | + | * {{Icon link|Lever}} |
− | + | * {{Icon link|Piston}} | |
− | * {{ | + | * {{Icon link|Sticky Piston}} |
− | * {{ | + | * {{Icon link|Dispenser}} |
− | * {{ | + | * {{Icon link|Dropper}} |
− | * {{ | + | * {{Icon link|Redstone Lamp}} |
− | * {{ | + | * {{Icon link|Note Block}} |
− | * {{ | + | * {{Icon link|TNT}} |
− | * {{ | ||
− | * {{ | ||
|} | |} | ||
− | {| class="wikitable navbox mw-collapsible {{#ifeq: {{{1}}}| | + | {| class="wikitable navbox mw-collapsible {{#ifeq: {{{1}}}|Transportation||mw-collapsed}}" |
− | ! colspan="2"| Transportation | + | ! colspan="2"| {{I|Powered Minecart Rail|}} Transportation |
|- | |- | ||
! Transportation | ! Transportation | ||
| | | | ||
− | * {{ | + | * {{Icon link|Raft}} |
− | * {{ | + | * {{Icon link|Minecart}} ({{Icon link|TNT Minecart|TNT Minecart|TNT}} |
− | + | * {{Icon link|Furnace Minecart|Furnace Minecart|Furnace}} | |
− | * {{ | + | * {{Icon link|Chest Minecart|Chest Minecart|Chest}}) |
− | * {{ | + | * {{Icon link|Minecart Rail}} ({{Icon link|Activator Minecart Rail|Activator Minecart Rail|Activator}} |
− | * {{ | + | * {{Icon link|Detector Minecart Rail|Detector Minecart Rail|Detector}} |
− | + | * {{Icon link|Powered Minecart Rail|Powered Minecart Rail|Powered}}) | |
− | * {{ | ||
− | * {{ | ||
− | |||
|} | |} | ||
− | {| class="wikitable navbox mw-collapsible {{#ifeq: {{{1}}}| | + | {| class="wikitable navbox mw-collapsible {{#ifeq: {{{1}}}|Brewing||mw-collapsed}}" |
− | ! colspan="2"| Brewing | + | ! colspan="2"| {{I|Healing Potion|}} Brewing |
|- | |- | ||
! Brewing | ! Brewing | ||
| | | | ||
− | * {{ | + | * {{Icon link|Brewing Stand}} |
− | * {{ | + | * {{Icon link|Cauldron}} |
|} | |} | ||
− | {| class="wikitable navbox mw-collapsible {{#ifeq: {{{1}}}| | + | {| class="wikitable navbox mw-collapsible {{#ifeq: {{{1}}}|Misc||mw-collapsed}}" |
− | ! colspan="2"| Miscellaneous Items | + | ! colspan="2"| {{I|Chicken Egg|}} Miscellaneous Items |
|- | |- | ||
− | ! | + | ! Heads |
| | | | ||
− | * {{ | + | * {{Icon link|Slime Block}} |
− | * {{ | + | * {{Icon link|Mob Head}} |
− | + | * {{Icon link|J}} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | * {{ | ||
|} | |} | ||
|}<includeonly>[[Category:Blocks]]</includeonly><noinclude> | |}<includeonly>[[Category:Blocks]]</includeonly><noinclude> | ||
Line 305: | Line 186: | ||
== Syntax == | == Syntax == | ||
− | To use this template, add <code><nowiki>{{Blocks}}</nowiki></code> at the bottom of the article. By default, the whole navbox is closed, but generally, it is recommended to have open by default the same category of blocks that the | + | To use this template, add <code><nowiki>{{Blocks}}</nowiki></code> at the bottom of the article. By default, the whole navbox is closed, but generally, it is recommended to have open by default the same category of blocks that the article is; that way readers can quickly see related blocks. The syntax to open each category is the following: |
− | <code><nowiki>{{Blocks|< | + | <code><nowiki>{{Blocks|<Building/Decorations/Food/Redstone/Transportation/Brewing/Misc>}}</nowiki></code> |
− | That way, <code><nowiki>{{Blocks| | + | That way, <code><nowiki>{{Blocks|Building}}</nowiki></code> will result in the navbox with the "building blocks" section opened by default: |
− | {{Blocks| | + | {{Blocks|Building}} |
− | Or, for example, the "miscellaneous items" secton (<code><nowiki>{{Blocks| | + | Or, for example, the "miscellaneous items" secton (<code><nowiki>{{Blocks|Misc}}</nowiki></code>) results in: |
− | {{Blocks| | + | {{Blocks|Misc}} |
</noinclude> | </noinclude> |
Latest revision as of 13:40, 29 July 2022
About
This template displays a navigation box with all the in-game blocks being listed. For the items, refer to Template:Items.
Syntax
To use this template, add {{Blocks}}
at the bottom of the article. By default, the whole navbox is closed, but generally, it is recommended to have open by default the same category of blocks that the article is; that way readers can quickly see related blocks. The syntax to open each category is the following:
{{Blocks|<Building/Decorations/Food/Redstone/Transportation/Brewing/Misc>}}
That way, {{Blocks|Building}}
will result in the navbox with the "building blocks" section opened by default:
Blocks | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Or, for example, the "miscellaneous items" secton ({{Blocks|Misc}}
) results in:
Blocks | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|