Cambios

Saltar a: navegación, buscar

Plantilla:Block/doc

5731 bytes añadidos, 00:32 12 abr 2014
Página creada con «{{doc/start}} {{lua|Infobox}} {{Protected|template|talkpage=Template talk:Block}} {{Block}} This template provides a uniform design for block pages. <pre width="30px"> {{B...»
{{doc/start}}
{{lua|Infobox}}
{{Protected|template|talkpage=Template talk:Block}}
{{Block}}

This template provides a uniform design for block pages.
<pre width="30px">
{{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=
}}</pre>

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

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

== See also ==
{{Infobox see also}}
{{doc/end}}<noinclude>
[[fr:Modèle:Bloc/doc]]
[[nl:Sjabloon:Blok/doc]]
</noinclude>
2712
ediciones

Menú de navegación