Template:Item Infobox: Difference between revisions

From The Blockheads Wiki
>Abcboy
mNo edit summary
No edit summary
Tag: Reverted
Line 2: Line 2:
! colspan="2" style="font-size:110%; text-align:center; background-color:#d4e3e5;" | {{{Name}}}
! colspan="2" style="font-size:110%; text-align:center; background-color:#d4e3e5;" | {{{Name}}}
|-
|-
| colspan="2" style="text-align:center;" | <div style="background-color:#BCE2E7; background-image:-webkit-gradient(linear, left top, left bottom, from(#aed6e3), to(#caefec)); background-image:-webkit-linear-gradient(top, #aed6e3, #caefec); background-image:-moz-linear-gradient(top, #aed6e3, #caefec); background-image:-o-linear-gradient(top, #aed6e3, #caefec); background-image:linear-gradient(to bottom, #aed6e3, #caefec); width:160px; height:160px; margin:auto; line-height:156px">[[File:{{{Image|{{{Name|Image}}}.png}}}|160x160px|center|{{{Name|}}}]]</div>
| colspan="2" style="text-align:center;" | <div class="hover-image" style="background-color:#BCE2E7; background-image:-webkit-gradient(linear, left top, left bottom, from(#aed6e3), to(#caefec)); background-image:-webkit-linear-gradient(top, #aed6e3, #caefec); background-image:-moz-linear-gradient(top, #aed6e3, #caefec); background-image:-o-linear-gradient(top, #aed6e3, #caefec); background-image:linear-gradient(to bottom, #aed6e3, #caefec); width:160px; height:160px; margin:auto; line-height:156px">
    <img class="default" src="[[File:{{{Image|{{{Name|Image}}}.png}}}|160px|center|{{{Name|}}}]]" alt="{{{Name}}}">
    <img class="hover" src="[[File:{{{Imageicon|{{{Name|Image}}}.png}}}|160px|center|{{{Name|}}}]]" alt="{{{Name}}}">
</div>
|-
|-
| colspan="2" style="text-align:center; {{#ifeq:{{{Imageicon|}}}|None|display:none;}}"|  
| colspan="2" style="text-align:center; {{#ifeq:{{{Imageicon|}}}|None|display:none;}}"|  
Line 19: Line 22:
| {{{Stackable|Yes (99)}}}
| {{{Stackable|Yes (99)}}}
|-
|-
|}<noinclude>
|}
<noinclude>
<pre>
<pre>
{{Item Infobox
{{Item Infobox
Line 32: Line 36:
}}
}}
</pre>
</pre>
 
</noinclude>
==Parameters==
* '''Name''' - Name of item as it appears in game
* '''Image''' - Large image of item. The image is resized to 160px. ''Image.png'' is a default image when no image is available.
* '''Imageicon''' - Small icon image of item. The image is resized to 40px. ''Image.png'' is a default image when no image is available. '''Only use if filename does not follow File: {{{Name}}} Icon.png.'''
* '''Category''' - Defined category of item. (ie. Apple is categorized as Food)
* '''Use''' - Primary use of item (ie. Food, Farming, Crafting, Construction, etc.)
* '''Tool''' - Tool used to remove block.
* '''Stackable''' - Is the item stackable and if so, maximum limit (ie. No, Yes (99))
 
[[Category:Templates]]</noinclude>

Revision as of 11:10, 1 August 2024

{{{Name}}}
<img class="default" src="
" alt="{{{Name}}}"> <img class="hover" src="
" alt="{{{Name}}}">

[[File:{{{Name}}} Icon.png|40px]][[File:{{{Name}}} HD Icon.png|40px]]

Category
Use
Tool
Stackable Yes (99)
{{Item Infobox
|Name=
|Image=
|Imageicon=
|ImageiconHD=
|Category=
|Use=
|Tool=
|Stackable=
}}