Template:Infobox item: Difference between revisions

m Auto alternating background colours.
Rewritten to cleaner, prettier DIV powered format
Line 1: Line 1:
<table class="infobox" cellpadding="4" style="width: 22em; font-size: 90%; float:right; border: 1px solid #AAAAAA; margin-left:0.5em">
{{infobox common
<tr>
| imagearea =
  <td align="center" colspan=2 style="font-size:120%; font-weight: bold; background-color: #729FCF">{{{name|{{BASEPAGENAME}}}}}</td>
[[File:{{{image|No image.png}}}|150px|center]]
</tr>
{{#if:{{{invimage|}}}|[[File:{{{invimage}}}|36px|center]]}}
<tr valign="top">
| rows =
  <td align="center" colspan="2">[[File:{{{image|No image.png}}}|150px|center]]</td>
{{infobox row|label=Type|field={{{type|?}}}}}
</tr>
{{infobox row|label=Durability|field={{{durability|None}}}}}
{{#if:{{{invimage|}}}|<tr  valign="top"><td align="center" colspan="2">[[File:{{{invimage}}}|36px|center]]</td></tr>}}
{{infobox row|label=Stackable|field={{{stackable|?}}}}}
{{Block/row|label=Type|field={{{type|?}}}}}
{{infobox row|label=[[Data_Values|Data value]]{{#if:{{{data2|}}}|s|}}|field={{{data|{{#if:{{{datadec|}}}|<!--
{{Block/row|label=Durability|field={{{durability|None}}}}}
{{Block/row|label=Stackable|field={{{stackable|?}}}}}
 
{{Block/row|label=[[Data_Values|Data value]]{{#if:{{{data2|}}}|s|}}|field={{{data|{{#if:{{{datadec|}}}|<!--


---->|{{#if:{{{data1name|}}}|'''{{{data1name|}}}'''<br />| }}<!--
---->|{{#if:{{{data1name|}}}|'''{{{data1name|}}}'''<br />| }}<!--
Line 23: Line 19:
---->|}}<!--
---->|}}<!--
-->}} }}} }}
-->}} }}} }}
</table><noinclude>
}}<noinclude>
==Usage==
==Usage==
'''These usage notes will not be included in articles bearing this template.'''<p></p>
'''These usage notes will not be included in articles bearing this template.'''<p></p>
This template provides a uniform design for useable item pages. When an item restores health, it is recommended to use [[Template:Food]] instead. <pre>
This template provides a uniform design for useable item pages. When an item restores health, it is recommended to use [[Template:Food]] instead. <pre>
{{Useable Items
{{Item
|image=
|image=
|invimage=
|invimage=