Changes

Jump to navigation Jump to search

Template:ItemBox

480 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
|-
{{!}}{{#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)
editor
131

edits

Navigation menu