Template:Item Infobox: Difference between revisions

From The Blockheads Wiki
>Abcboy
m (Protected "Template:Item Infobox" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
m (Reverted edit by FloofyPlasma (talk) to last revision by [[User:>Abcboy|>Abcboy]])
Tag: Rollback
 
(25 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{| style="vertical-align:top; margin: 0 0 0.5em 1em; border:1px solid silver; float:right; text-align:left; font-size:90%; background-color:white;" cellpadding="5"
{| style="vertical-align:top; margin: 0 0 0.5em 1em; border:1px solid silver; float:right; text-align:left; font-size:90%; background-color:white; max-width:30%; padding:5px;"
! 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" align="center"| [[File:{{{Image|Image.png}}}|140px]]
| 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" align="center"| [[File:{{{Imageicon|{{{Name}}} Icon.png}}}|40px]]{{#if:{{{Imageicon2|}}}|[[File:{{{Imageicon2|Image.png}}}|40px]]}}
| colspan="2" style="text-align:center; {{#ifeq:{{{Imageicon|}}}|None|display:none;}}"|  
{{#if: {{{Category|}}}|
[[File:{{#ifeq:{{{Imageicon|}}}|None|None.png|{{{Imageicon|{{{Name}}} Icon.png}}}}}|40px]][[File:{{#ifeq:{{{ImageiconHD|}}}|None|None.png|{{{ImageiconHD|{{{Name}}} HD Icon.png}}}}}|40px]]{{#if:{{{Imageicon2|}}}|[[File:{{{Imageicon2|Image.png}}}|40px]]}}{{#if:{{{Imageicon2HD|}}}|[[File:{{{Imageicon2HD|Image.png}}}|40px]]}}
{{!}}-
|- style="{{#if:{{{Category|}}}||display:none;}}"
! style="background-color:#d4e3e5;" {{!}} Category
! style="background-color:#d4e3e5;" | Category
{{!}} {{{Category|Unknown}}}|}}
| {{{Category|}}}
{{#if: {{{Use|}}}|
|- style="{{#if:{{{Use|}}}||display:none;}}"
{{!}}-
! style="background-color:#d4e3e5;" | Use
! style="background-color:#d4e3e5;" {{!}} Use
| {{{Use|}}}
{{!}} {{{Use|Unknown}}}|}}
|- style="{{#if:{{{Tool|}}}||display:none;}}"
|-
! style="background-color:#d4e3e5;" | Tool
! style="background-color:#d4e3e5;" | Location/Made On
| {{{Tool|}}}
| {{{Location/Made On|Unknown}}}
{{#if: {{{Tool|}}}|
{{!}}-
! style="background-color:#d4e3e5;" {{!}} Tool
{{!}} {{{Tool|Unknown}}}|}}
{{#if: {{{Needs|}}}|
{{!}}-
! style="background-color:#d4e3e5;" {{!}} Needs
{{!}} {{{Needs}}}|}}
|-
|-
! style="background-color:#d4e3e5;"| Stackable
! style="background-color:#d4e3e5;"| Stackable
Line 30: Line 21:
|}<noinclude>
|}<noinclude>
<pre>
<pre>
{{Item Infobox
{{Item Infobox
| Name =  
|Name=
| Image = Image.png
|Image=
| Imageicon = Image.png
|Imageicon=
| Category =  
|ImageiconHD=
| Use =  
|Category=
| Location/Made On =  
|Use=
| Needs =  
|Tool=
| Stackable =  
|Stackable=
}}
}}
</pre>
</pre>
Line 44: Line 35:
==Parameters==
==Parameters==
* '''Name''' - Name of item as it appears in game
* '''Name''' - Name of item as it appears in game
* '''Image''' - Large image of item. The image is resized to 140px. ''Image.png'' is a default image when no image is available.
* '''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.'''
* '''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)
* '''Category''' - Defined category of item. (ie. Apple is categorized as Food)
* '''Use''' - Primary use of item (ie. Food, Farming, Crafting, Construction, etc.)
* '''Use''' - Primary use of item (ie. Food, Farming, Crafting, Construction, etc.)
* '''Location/Made On''' - Where item can be found.
* '''Tool''' - Tool used to remove block.
* '''Needs''' - If craftable item, items required to craft it.
* '''Stackable''' - Is the item stackable and if so, maximum limit (ie. No, Yes (99))
* '''Stackable''' - Is the item stackable and if so, maximum limit (ie. No, Yes (99)
 
[[Category:Templates]]
[[Category:Templates]]</noinclude>
</noinclude>

Latest revision as of 12:11, 1 August 2024

{{{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=
}}

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))