Template:Infobox item: Difference between revisions
Jump to navigation
Jump to search
dammit |
Wow, this template has been neglected. |
||
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"> | |||
<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 image.png}}}|150px|center]]</td> | |||
| {{{type|?}}} | </tr> | ||
| | {{#if:{{{invimage|}}}|<tr valign="top"><td align="center" colspan="2">[[File:{{{invimage}}}|36px|center]]</td></tr>}} | ||
| | {{Block/row2|label=Type|field={{{type|?}}}}} | ||
| {{{ | {{Block/row|label=Restores|field={{{hearts|None}}}}} | ||
| | {{Block/row2|label=Durability|field={{{durability|None}}}}} | ||
| | |||
| {{{ | {{Block/row|label=[[Data_Values|Data value]]{{#if:{{{data2|}}}|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> | |||
==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.<pre> | This template provides a uniform design for useable item pages.<pre> | ||
{{Useable Items | {{Useable Items | ||
| | |image= | ||
| | |invimage= | ||
|type= | |hearts= | ||
|durability= | |type= | ||
| | |durability= | ||
| | |data1name= | ||
|data1= | |||
|data2name= | |||
|data2= | |||
}}</pre> | |||
{| class=grid | |||
! Parameter | |||
! Function | |||
! Default value | |||
|- | |||
| <code>name</code> || Only needed to change the name from the page name || <code><nowiki>{{BASEPAGENAME}}</nowiki></code> | |||
|- | |||
| <code>image</code> || Image of the item (Should be 150x150px) || [[:File:No image.png|No image.png]] | |||
|- | |||
| <code>invimage</code> || Image for object in inventory (Should be 36x36px) || ''None'' | |||
|- | |||
| <code>hearts</code> || How many hearts it restores || None | |||
|- | |||
| <code>type</code> || Type (Weapon, Ranged Weapon, Craftable Item, Tool, etc. ) || ? | |||
|- | |||
| <code>durability</code> || How durable the item is || None | |||
|- | |||
| <code>data1name</code> || If using multiple data values, specify a name || ''None'' | |||
|- | |||
| <code>data1</code> || Decimal Data Value 1 || 00 | |||
|- | |||
| <code>data2name</code> || Data 2's name || ''None'' | |||
|- | |||
| <code>data2</code> || Decimal Data Value 2 || ''None'' | |||
|} | |||
[[Category:Templates]]</noinclude> |
Revision as of 02:48, 25 October 2010
Template:Block/row2Template:Block/rowTemplate:Block/row2Template:Block/row
Infobox item | |
Usage
These usage notes will not be included in articles bearing this template.
This template provides a uniform design for useable item pages.
{{Useable Items |image= |invimage= |hearts= |type= |durability= |data1name= |data1= |data2name= |data2= }}
Parameter | Function | Default value |
---|---|---|
name |
Only needed to change the name from the page name | {{BASEPAGENAME}}
|
image |
Image of the item (Should be 150x150px) | No image.png |
invimage |
Image for object in inventory (Should be 36x36px) | None |
hearts |
How many hearts it restores | None |
type |
Type (Weapon, Ranged Weapon, Craftable Item, Tool, etc. ) | ? |
durability |
How durable the item is | None |
data1name |
If using multiple data values, specify a name | None |
data1 |
Decimal Data Value 1 | 00 |
data2name |
Data 2's name | None |
data2 |
Decimal Data Value 2 | None |