Diferencia entre revisiones de «Plantilla:Block»
(Página blanqueada) |
|||
| Línea 1: | Línea 1: | ||
| + | <table class="infobox" cellpadding="4" style="width: 22em; font-size: 90%; float:right; border: 1px solid #AAAAAA; margin-left:0.5em"> | ||
| + | <tr> | ||
| + | |||
| + | <td align="center" colspan=2 bgcolor="#CCCCCC" style="font-size:120%; font-weight: bold;">{{{name|{{BASEPAGENAME}}}}}</td> | ||
| + | |||
| + | </tr> | ||
| + | |||
| + | <tr valign="top"> | ||
| + | |||
| + | <td align="center" colspan="2">[[File:{{{image|No block image.png}}}|150px|center]]</td> | ||
| + | |||
| + | </tr> | ||
| + | |||
| + | {{#if:{{{image2|}}}|<tr valign="top"><td align="center" colspan="2">[[File:{{{image2}}}|150px|center]]</td></tr>}} | ||
| + | |||
| + | {{#if:{{{invimage|}}}|<tr valign="top"><td align="center" colspan="2">[[File:{{{invimage}}}|36px|center]]</td></tr>}} | ||
| + | |||
| + | {{#if:{{{invimage2|}}}|<tr valign="top"><td align="center" colspan="2">[[File:{{{invimage2}}}|36px|center]]</td></tr>}} | ||
| + | |||
| + | {{Block/row2|label=Tipo|field={{{tipo|?}}}}} | ||
| + | |||
| + | {{#switch:{{lc:{{{tipo}}}}}|Bloque Sólido|Sólido|Bloque|Herramienta = | ||
| + | |||
| + | {{Block/row|label=Física|field={{#switch:{{lc:{{{tierra}}}}}|Sí=Luz y tierra|no=Ninguna|sand=Sol y arena|#default={{{tierra|?}}}}}}}}} | ||
| + | |||
| + | {{Block/row2|label=Gravedad|field={{{gravedad|?}}}}} | ||
| + | |||
| + | {{Block/row|label=Transparente|field={{{transparente|?}}}}} | ||
| + | |||
| + | {{Block/row2|label=Incandescente|field={{{incandescente|?}}}}} | ||
| + | |||
| + | {{Block/row|label=[[TNT#Resistencia a explosiones|Resistencia al TNT]]|field={{{tntres|? blocks}}}}} | ||
| + | |||
| + | {{Block/row2|label=Herramienta{{#if:{{{tool2|}}}|s}}|field={{#switch:{{lc:{{{herramienta|{{{herramienta}}}}}}}}<!-- | ||
| + | |||
| + | -->|pico|pickaxe=[[File:Use-pickaxe.png|32px|link=objetos#Pickaxe|Pickaxe]]<!-- | ||
| + | |||
| + | -->|pala|shovel=[[File:Use-spade.png|32px|link=objetos#Shovel|Shovel]]<!-- | ||
| + | |||
| + | -->|hacha|axe=[[File:Use-axe.png|32px|link=objetos#Axe|Axe]]<!-- | ||
| + | |||
| + | -->|azada|hoe=[[File:Use-hoe.png|32px|link=objetos#Hoe|Hoe]]<!-- | ||
| + | |||
| + | -->|bucket|cubo=[[File:Use-bucket.png|32px|link=objetos#Bucket|Bucket]]<!-- | ||
| + | |||
| + | -->|espada|sword=[[File:Use-sword.png|32px|link=objetos#Sword|Sword]]<!-- | ||
| + | |||
| + | -->|nada|n/a|none=Ninguna<!-- | ||
| + | |||
| + | -->|all|alltools|any|anytool=Any tool<!-- | ||
| + | |||
| + | -->|#default=?}}<!-- | ||
| + | |||
| + | -->{{#if:{{{tool2|}}}|{{#switch:{{lc:{{{tool2}}}}}<!-- | ||
| + | |||
| + | -->|pico|pickaxe=[[File:Use-pickaxe.png|32px|link=objetos#Pickaxe|Pickaxe]]<!-- | ||
| + | |||
| + | -->|spade|shovel=[[File:Use-spade.png|32px|link=objetos#Shovel|Shovel]]<!-- | ||
| + | |||
| + | -->|hacha=[[File:Use-axe.png|32px|link=objetos#Axe|Axe]]<!-- | ||
| + | |||
| + | -->|azada=[[File:Use-hoe.png|32px|link=objetos#Hoe|Hoe]]}}}}}} | ||
| + | |||
| + | {{Block/row|label=Apilable|field={{{apilable|?}}}}} | ||
| + | |||
| + | {{#switch:{{lc:{{{tipo}}}}}|fluido = | ||
| + | |||
| + | {{Block/row2|label=Velocidad del fluido|field={{{velfluido|?}}}}} | ||
| + | |||
| + | {{Block/row|label=Velocidad en el fluido|field={{{velmovi|?}}}}}}} | ||
| + | |||
| + | {{Block/row2|label=[[Código|Código]]{{#if:{{{data1|}}}|s|}}|field={{{data|{{#if:{{{datadec|}}}|<!-- | ||
| + | |||
| + | |||
| + | ---->|{{#if:{{{data1name|}}}|'''{{{data1name|}}}'''<br />| }}<!-- | ||
| + | |||
| + | ----><sub>dec:</sub> {{{data1|00}}} <sub>hex:</sub> {{dec-hex|{{{data1|00}}} }}<br /><!-- | ||
| + | |||
| + | |||
| + | The optional second data value. | ||
| + | |||
| + | |||
| + | ---->{{#if:{{{data2|}}}|<!-- | ||
| + | |||
| + | ------>{{#if:{{{data2name|}}}|'''{{{data2name|}}}'''<br />| }}<!-- | ||
| + | |||
| + | ------><sub>dec:</sub> {{{data2}}} <sub>hex:</sub> {{dec-hex|{{{data2}}} }}<!-- | ||
| + | |||
| + | ---->|}}<!-- | ||
| + | |||
| + | -->}} }}} }} | ||
| + | |||
| + | </table><noinclude><!--- | ||
| + | |||
| + | ---> | ||
| + | |||
| + | ==Información== | ||
| + | |||
| + | Esta plantilla provee un uniforme diseño para paginas de bloques. | ||
| + | |||
| + | <pre> | ||
| + | |||
| + | {{Block | ||
| + | |image= Grid_Note_Block.png | ||
| + | |image2= | ||
| + | |invimage= | ||
| + | |invimage2= | ||
| + | |tipo= Bloque | ||
| + | |gravedad= | ||
| + | |física= | ||
| + | |transparente= | ||
| + | |incandescente= | ||
| + | |tntres= | ||
| + | |herramienta= Espada | ||
| + | |apilable=Sí, 64 | ||
| + | |data1name= | ||
| + | |data1= | ||
| + | |data2name= | ||
| + | |data2= | ||
| + | |velfluido= | ||
| + | |velmovi= | ||
| + | }}</pre> | ||
| + | |||
| + | |||
| + | {| class=grid | ||
| + | |||
| + | ! Parámetros | ||
| + | |||
| + | ! Funciones | ||
| + | |||
| + | ! Valor por default | ||
| + | |||
| + | |- | ||
| + | | <code>image</code> || Imagen del bloque (un tamaño aprox. de 150x150px) || [[Archivo:Grid_Note_Block.png]] | ||
| + | |- | ||
| + | | <code>image2</code> || Segunda imagen del segundo estado del bloque (tamaño aprox. de 150x150px) || ''None'' | ||
| + | |- | ||
| + | | <code>invimage</code> || Imagen del objeto en el inventario (tamaño aprox. de 36x36px) || ''None'' | ||
| + | |- | ||
| + | | <code>invimage2</code> || Segunda imagen del segundo estado del objeto en el inventario (tamaño aprox. de 36x36px) || ''None'' | ||
| + | |- | ||
| + | | <code>tipo</code> || tipo de bloque (bloque solido, solido, bloque, o fluido) || ? | ||
| + | |- | ||
| + | | <code>gravedad</code> || ¿Es afectado por la gravedad? || ? | ||
| + | |- | ||
| + | | <code>física</code> || ¿Requiere la presencia de luz/tierra para ser usado? || ? | ||
| + | |- | ||
| + | | <code>transparente</code> || ¿La luz pasa a través de él? || ? | ||
| + | |- | ||
| + | | <code>incandescente</code> || ¿Emite luz? || ? | ||
| + | |- | ||
| + | | <code>tntres</code> || ¿Cuantos bloques en cualquier dirección pasaría la explosión de TNT? || ? | ||
| + | |- | ||
| + | | <code>herramienta</code> || Herramienta que se usa || ? | ||
| + | |- | ||
| + | | <code>apilable</code> || ¿Apilable? ¿Cuantos? || ? | ||
| + | |- | ||
| + | | <code>data1name</code> || Si se usan múltiples códigos, nombralos || ''None'' | ||
| + | |- | ||
| + | | <code>data1</code> || Primer código || 00 | ||
| + | |- | ||
| + | | <code>data2name</code> || Nombre del segundo código || ''None'' | ||
| + | |- | ||
| + | | <code>data2</code> || Segundo código || ''None'' | ||
| + | |} | ||
| + | |||
| + | [[Categoría:Plantillas#B]]</noinclude> | ||
| + | |||
| + | <includeonly>{{#ifeq:{{NAMESPACE}}|{{ns:0}}|{{#ifeq:{{lc:{{{type|}}}}}|item|[[Category:Objetos]]|[[Category:Bloques]]}}}}</includeonly> | ||
Revisión del 00:18 9 abr 2014
| Block | |
| Tipo | ? |
| Gravedad | ? |
| Transparente | ? |
| Incandescente | ? |
| Resistencia al TNT | ? blocks |
| Herramienta | ? |
| Apilable | ? |
| Código | dec: 00 hex: 0 |
Información
Esta plantilla provee un uniforme diseño para paginas de bloques.
{{Block
|image= Grid_Note_Block.png
|image2=
|invimage=
|invimage2=
|tipo= Bloque
|gravedad=
|física=
|transparente=
|incandescente=
|tntres=
|herramienta= Espada
|apilable=Sí, 64
|data1name=
|data1=
|data2name=
|data2=
|velfluido=
|velmovi=
}}
| Parámetros | Funciones | Valor por default |
|---|---|---|
image |
Imagen del bloque (un tamaño aprox. de 150x150px) | Archivo:Grid Note Block.png |
image2 |
Segunda imagen del segundo estado del bloque (tamaño aprox. de 150x150px) | None |
invimage |
Imagen del objeto en el inventario (tamaño aprox. de 36x36px) | None |
invimage2 |
Segunda imagen del segundo estado del objeto en el inventario (tamaño aprox. de 36x36px) | None |
tipo |
tipo de bloque (bloque solido, solido, bloque, o fluido) | ? |
gravedad |
¿Es afectado por la gravedad? | ? |
física |
¿Requiere la presencia de luz/tierra para ser usado? | ? |
transparente |
¿La luz pasa a través de él? | ? |
incandescente |
¿Emite luz? | ? |
tntres |
¿Cuantos bloques en cualquier dirección pasaría la explosión de TNT? | ? |
herramienta |
Herramienta que se usa | ? |
apilable |
¿Apilable? ¿Cuantos? | ? |
data1name |
Si se usan múltiples códigos, nombralos | None |
data1 |
Primer código | 00 |
data2name |
Nombre del segundo código | None |
data2 |
Segundo código | None |
