Changes

Jump to navigation Jump to search

Template:ItemBox

518 bytes added, 9 May
Added optional examine support to Template:ItemBox. This allows item pages to place the in-game examine text directly inside the item box instead of mixing it into the main Description section. This keeps the roleplay/flavor examine text separate from the wiki’s practical description of what the item is used for. Also updated the template documentation/example to include the new |examine= parameter, so future editors know how to use it.
}}
|-
{{#if:{{{examine|}}}|
! class="infobox-header-row" {{!}} Examine
{{!}}-
{{!}} ''{{{examine}}}''
{{!}}-
}}
! class="infobox-header-row" | Creation
|-
| no = This item cannot be crafted.
| farm = Obtained through [[farming|harvesting]].
| forage = Obtained through [[forage|foraging]]. | botanize = Obtained through [[botanize|botanizing]].
| pick = Obtained through picking from a Pottery planter.
| fish = Obtained through [[fishing]].
}}{{#if:{{{improveskill|}}}|* Uses [[{{{improveskill}}}]] skill for improving
}}{{#if:{{{improve|}}}|* {{#ifeq:{{{improve}}}|no|Cannot be [[improve]]d|[[Improve]]d using [[{{{improve}}}]] tools and materials}}
}}{{#if:{{{improveItem|}}}|* {{#ifeq:{{{improveItem}}}|no|Cannot be [[improve]]d|[[Improve]] with [[{{{improveItem}}}]]}}
}}
<!--optional properties -->
{{#switch: {{lc:{{{dyeable}}}}}
| yes = * Can be [[Dye|dyed]].
| no = * Cannot Can not be [[Dye|dyed]].
| useless = * Can be [[Dye|dyed]], but doesn't do anything
| amount = * Can be [[Dye|dyed]] using {{{dyeamount}}}g of paint.
|multi = * This item has two [[Dye|dyeable]] sections. | rune = * Can be colored with a color [[rune]].
}}}}{{#if: {{{dyeamount|}}}|
* Can be [[Dye|dyed]] using {{{dyeamount}}}g of paint.
{{!}}{{#ifeq:{{{note}}}|no|None|{{{note}}}}}}}
|}
 <!-- {{#if:{{{skill|}}}|[[Category:{{{skill}}} items]]}}--> <!-- The above line created incorrect categories if skill was either foraging or botanizing -->  {{#if:{{{skill|}}}| {{#switch: {{lc:{{{skill|}}}}} | foraging=[[Category:Foraged items]] | botanizing=[[Category:Botanized items]] | #default=[[Category:{{{skill}}} items]]}}}} 
{{#switch: {{lc:{{{passive|}}}}}<!-- Add appropriate categories for various creations as indicated by the passive targeted item -->
| [[roof plan]]=[[Category:Roofs]] [[Category:Structures]]
General item template -- THIS TEMPLATE USES TOTAL ITEMS REQUIRED, NOT ADDITIONAL.
The template adds a box with an image of the item , examine text, and the steps to create the item.
If the ''creation'' parameter is set the box will display its contents instead of the creation steps.
|name=Hammer *** defaults to {{PAGENAME}} ***
|image=hammer.jpg *** defaults to {{PAGENAME}}.jpg or {{PAGENAME}}.png ***
|examine=A hammer with a metal head, and a wooden shaft.
|active=[[hammer head]] (0.4 kg)
|passive=[[shaft]] (1.0 kg)
|result=* 1 '''felled tree''' (up to 186.67 kg)
|skill=woodcutting
|dyeable=yes *** or no, multi , useless or uselessrune
}}
editor
131

edits

Navigation menu