Diferencia entre revisiones de «Plantilla:Comida»

De WikiMinecraft
Saltar a: navegación, buscar
Línea 1: Línea 1:
<includeonly>{{#invoke:infobox|infobox
+
<table class="infobox" cellpadding="4" style="width: 22em; font-size: 90%; float:right; border: 1px solid #AAAAAA; margin-left:0.5em">
| rows =
+
 
{{infobox row|label=Type|field={{ #if: {{{type|}}} | {{{type}}} | ? }} }}
+
<tr>
{{infobox row|label=[[Food|Restores]]|field={{ #if: {{{heals|}}} | {{{heals}}} | ? }} }}
+
 
{{infobox row|label=Cookable|field={{ #if: {{{cookable|}}} | {{{cookable}}} | ? }} }}
+
<td align="center" colspan=2 bgcolor="#CCCCCC" style="font-size:120%; font-weight: bold;">{{{name|{{BASEPAGENAME}}}}}</td>
{{infobox row|label=Stackable|field={{ #if: {{{stackable|}}} | {{{stackable}}} | ? }} }}
+
 
{{#if: {{{light|}}} | {{infobox row|label=[[Light|Luminance]]|field={{{light}}}}} }}
+
</tr>
{{#if: {{{multiplevers|}}}
+
 
| {{infobox row|label=First appearances|field={{{multiplevers}}} }}
+
<tr valign="top">
| {{#if: {{{firstver|}}} | {{infobox row|label=First appearance|field={{version link|{{{firstver}}}}} {{
+
 
    #if: {{{firstdev|}}} | ({{version link|{{{firstdev}}}}})
+
<td align="center" colspan="2">[[File:{{{image|No block image.png}}}|150px|center]]</td>
    }}}}
+
 
  }}
+
</tr>
}}
+
 
{{#if: {{{multipledata|}}}
+
{{#if:{{{image2|}}}|<tr valign="top"><td align="center" colspan="2">[[File:{{{image2}}}|150px|center]]</td></tr>}}
  | {{infobox row|label=[[Data values]]|field={{{multipledata}}} }}
+
 
  | {{infobox row|label=[[Data values|Data value]]|field={{data value|{{{data|}}}}} }}
+
{{#if:{{{invimage|}}}|<tr valign="top"><td align="center" colspan="2">[[File:{{{invimage}}}|36px|center]]</td></tr>}}
}}
+
 
{{#if: {{NAMESPACE}}
+
{{#if:{{{invimage2|}}}|<tr valign="top"><td align="center" colspan="2">[[File:{{{invimage2}}}|36px|center]]</td></tr>}}
|
+
 
| {{#ifeq: {{lc: {{{nameid}}} }} | none
+
{{Block/row2|label=Tipo|field={{{tipo|?}}}}}
  |
+
 
  | {{infobox row|label=[[Data values|Name]]|field={{
+
{{Block/row2|label=Restaura|field={{{restaura|?}}}}}
    #if: {{{nameid|}}}
+
 
    | {{{nameid}}}
+
{{Block/row|label=Cocinable|field={{{cocinable|?}}}}}
    | {{lc: {{#replace: {{#if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }} || _ }} }}
+
 
    }}}}
+
{{Block/row|label=Apilable|field={{{apilable|?}}}}}
  }}
+
 
}}
+
{{Block/row2|label=[[Código|Código]]{{#if:{{{data1|}}}|s|}}|field={{{data|{{#if:{{{datadec|}}}|<!--
}}{{#if:{{NAMESPACE}}||[[Category:Food]]}}</includeonly><noinclude>
+
 
{{/doc}}
+
 
</noinclude>
+
---->|{{#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>

Revisión del 19:24 11 abr 2014

Comida
No block image.png
Tipo ?
Restaura ?
Cocinable ?
Apilable ?
Código dec: 00 hex: 0