Jump to: navigation, search

Template:Block: Difference between revisions

No edit summary
No edit summary
Line 24: Line 24:
}}
}}


  {{
{{#ifeq: {{lc: {{{invimage}}} }} | none | | {{#if: {{{invimage|}}} | <div style="padding-top: 1em; margin: 0 auto">{{Grid|{{{invimage}}}|link=none}} | {{#ifexist: File:Grid {{#if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }}.png |<div style="padding-top: 1em; margin: 0 auto">{{Grid|{{#if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }}|link=none}} }} }}
  #ifeq: {{lc: {{{invimage}}} }} | none | | {{#if: {{{invimage|}}} | <div style="padding-top: 1em; margin: 0 auto">{{Grid|{{{invimage}}}|link=none}} | {{#ifexist: File:Grid {{#if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }}.png | <div style="padding-top: 1em; margin: 0 auto">{{Grid|{{#if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }}|link=none}} }} }}
   }}{{
   }}{{
   #if: {{{invimage2|}}} | {{Grid|{{{invimage2}}}|link=none}}
   #if: {{{invimage2|}}} | {{Grid|{{{invimage2}}}|link=none}}
Line 32: Line 31:
   }}{{
   }}{{
   #if: {{{invimage4|}}} | {{Grid|{{{invimage4}}}|link=none}}
   #if: {{{invimage4|}}} | {{Grid|{{{invimage4}}}|link=none}}
   }}
   }}{{
  {{
   #if: {{{invimage5|}}} | {{Grid|{{{invimage5}}}|link=none}}
   #if: {{{invimage5|}}} | {{Grid|{{{invimage5}}}|link=none}}
   }}{{
   }}{{
Line 41: Line 39:
   }}{{
   }}{{
   #if: {{{invimage8|}}} | {{Grid|{{{invimage8}}}|link=none}}
   #if: {{{invimage8|}}} | {{Grid|{{{invimage8}}}|link=none}}
   }}
   }}{{
  {{
   #if: {{{invimage9|}}} | {{Grid|{{{invimage9}}}|link=none}}
   #if: {{{invimage9|}}} | {{Grid|{{{invimage9}}}|link=none}}
   }}{{
   }}{{
Line 50: Line 47:
   }}{{
   }}{{
   #if: {{{invimage12|}}} | {{Grid|{{{invimage12}}}|link=none}}
   #if: {{{invimage12|}}} | {{Grid|{{{invimage12}}}|link=none}}
   }}
   }}{{
  {{
   #if: {{{invimage13|}}} | {{Grid|{{{invimage13}}}|link=none}}
   #if: {{{invimage13|}}} | {{Grid|{{{invimage13}}}|link=none}}
   }}{{
   }}{{
Line 59: Line 55:
   }}{{
   }}{{
   #if: {{{invimage16|}}} | {{Grid|{{{invimage16}}}|link=none}}
   #if: {{{invimage16|}}} | {{Grid|{{{invimage16}}}|link=none}}
   }}
   }}{{#ifeq: {{lc: {{{invimage}}} }} | none | | {{#if: {{{invimage|}}} | </div> | {{#ifexist: File:Grid {{#if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }}.png | </div> }} }} }}
  {{#ifeq: {{lc: {{{invimage}}} }} | none | | {{#if: {{{invimage|}}} | </div> | {{#ifexist: File:Grid {{#if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }}.png | </div> }} }} }}
 
| rows =
| rows =
{{infobox row|label=Type|field={{ #if: {{{type|}}} | {{{type}}} | ? }} }}
{{infobox row|label=Type|field={{ #if: {{{type|}}} | {{{type}}} | ? }} }}
Line 144: Line 140:
}}</includeonly>
}}</includeonly>
<noinclude>
<noinclude>
{{Block
|image=White Insulated Alloy Wire_256.png
|invimage=White Insulated Wire
|invimage2=Orange Insulated Wire
|invimage3=Magenta Insulated Wire
|invimage4=Light Blue Insulated Wire
|invimage5=Yellow Insulated Wire
|invimage6=Lime Insulated Wire
|invimage7=Pink Insulated Wire
|invimage8=Grey Insulated Wire
|invimage9=Light Grey Insulated Wire
|invimage10=Cyan Insulated Wire
|invimage11=Purple Insulated Wire
|invimage12=Blue Insulated Wire
|invimage13=Brown Insulated Wire
|invimage14=Green Insulated Wire
|invimage15=Red Insulated Wire
|invimage16=Black Insulated Wire
|type=Multipart block
|gravity=No
|dirt=Support block
|transparent=Yes
|light=No
|tool=all
|renewable=Yes
|stackable=Yes (64)
|firstver=v4.0.0
|availability=Survival
|drops=Self
|nameid=insulated_wire
}}
{{/doc}}
{{/doc}}
[[Category:Infobox templates]]
[[Category:Infobox templates]]
</noinclude>
</noinclude>

Revision as of 18:53, 5 January 2014


Block
White Insulated Alloy Wire 256.png
White Insulated WireOrange Insulated WireMagenta Insulated WireLight Blue Insulated WireYellow Insulated WireLime Insulated WirePink Insulated WireGrey Insulated WireLight Grey Insulated WireCyan Insulated WirePurple Insulated WireBlue Insulated WireBrown Insulated WireGreen Insulated WireRed Insulated WireBlack Insulated Wire
Type

Multipart block

Physics

No

Transparency

Yes

Luminance

No

Blast resistance

?

Tool

Any tool

Renewable

Yes

Stackable

Yes (64)

Flammable

No

Availability

Survival

First appearance

v4.0.0

Drops

Self

Template-info.png Documentation
Lua logo.svg
This template uses Module:Infobox, a script written in the Lua programming language. Please see wp:Lua and mw:Extension:Scribunto to learn more about Lua.
Block
No block image.png
Type

?

Requirements

?

Physics

?

Transparency

?

Luminance

?

Blast resistance

?

Tool

?

Renewable

?

Stackable

N/A

Flammable

No

Availability

?

Drops

Itself


This template provides a uniform design for block pages.

{{Block
|title=
|image=
|image2=
|image3=
|invimage=
|invimage2=
|invimage3=
|invimage4=
|invimage5=
|invimage6=
|invimage7=
|invimage8=
|invimage9=
|invimage10=
|invimage11=
|invimage12=
|invimage13=
|invimage14=
|invimage15=
|invimage16=
|type=
|gravity=
|dirt=
|transparent=
|light=
|tntres=
|tool=
|renewable=
|stackable=
|flammable=
|availability=
|experience=
|drops=
|data=
|nameid=
|fluidspeed=
|movespeed=
|firstver=
|firstdev=
|notes=
}}

Note that if the item has multiple data values, use |multipledata= instead of |data=. See below:

Parameter Function Default value
title Only needed to change the title from the page name {{BASEPAGENAME}}
image Image of the block (should be approx. 150x150px) {{{title}}}.png if it exists, otherwise No block image.png (linking to the page where to upload the missing image)
image2 Second image for two-state blocks (also approx. 150x150px) None
image3 Third image for three-state blocks (also approx. 150x150px) None
invimage Image for object in inventory. Can use None to force no invimage. Uses Template:Grid. Grid {{{title}}}.png if it exists, otherwise None
invimage2 Second image for two-state objects in inventory. Uses Template:Grid. None
invimage3 Third image for three-state objects in inventory. Uses Template:Grid. None
invimage4 Fourth image for four-state objects in inventory. Uses Template:Grid. None
invimage5 Fifth image for five-state objects in inventory. Uses Template:Grid. None
invimage6 Sixth image for six-state objects in inventory. Uses Template:Grid. None
invimage7 Seventh image for seven-state objects in inventory. Uses Template:Grid. None
invimage8 Eighth image for eight-state objects in inventory. Uses Template:Grid. None
invimage9 Ninth image for nine-state objects in inventory. Uses Template:Grid. None
invimage10 Tenth image for ten-state objects in inventory. Uses Template:Grid. None
invimage11 Eleventh image for eleven-state objects in inventory. Uses Template:Grid. None
invimage12 Twelfth image for twelve-state objects in inventory. Uses Template:Grid. None
invimage13 Thirteenth image for thirteen-state objects in inventory. Uses Template:Grid. None
invimage14 Fourteenth image for fourteen-state objects in inventory. Uses Template:Grid. None
invimage15 Fifteenth image for fifteen-state objects in inventory. Uses Template:Grid. None
invimage16 Sixteenth image for sixteen-state objects in inventory. Uses Template:Grid. None
type Type (solid block, solid, block, or fluid) ?
gravity Affected by gravity? ?
dirt Requires sunlight/dirt? None
transparent Can you see through some part of this block? Not as obvious as it seems, see Opacity. ?
light Emits Light? If "Yes," add the light value like this: "Yes, 9" ?
tntres Block's resistance to explosions. The value comes from the code; there aren't any units for it. ?
tool Tool to use. Picture means, the block can only be broken with this tool (this quality or better). Outline means, the block can be broken with any tool, but this tool is the quickest. "Any tool" means that every tool is equally effective (or the block can be instantly broken with anything). "None" means the block cannot be broken. ?
renewable Whether the block is renewable ?
stackable Stackable N/A
flammable Whether the block is flammable or not No
availability The availability of an item ?
experience The amount of experience dropped when mined or smelted None
drops The item entities dropped when destroyed Itself
data Single decimal data value None
multipledata Multiple decimal data values, use {{dv}} None
multipartid The block's Multipart Type ID None
nameid The block's named identifier. Can use None to force no name ID. title or {{BASEPAGENAME}}
fluidspeed Speed of fluid movement None
movespeed Speed of walking through None
firstver First version that it was seen in (e.g. Alpha 1.0.17, classic 0.0.23a). None
firstdev First development snapshot it was seen in, requires firstver. None
notes Adds a centred column spanning across both rows at the bottom of the box None

See also



Cookies help us deliver our services. By using our services, you agree to our use of cookies.