Changes

Jump to navigation Jump to search

Template:ItemBoxMulti

738 bytes added, 10 May
Added optional |examine= support to ItemBoxMulti, so pages using this template can show examine text in the item box. Also updated the template documentation and examples to show how the new parameter should be used.
}}
|-
{{#if:{{{examine|}}}|
! class="infobox-header-row" {{!}} Examine
{{!}}-
{{!}} ''{{{examine}}}''
{{!}}-
}}
! class="infobox-header-row" | {{#if:{{{creation2|}}}|Creation Methods|Creation}}
|-
|{{#switch: {{lc:{{{creation}}}}}
| no = * This item cannot be crafted
| arch = * Restored through [[Archaeology]]
| archaeology = * Restored through [[Archaeology]]
| farm = * Collected by [[farming|harvesting]]
| farming = * Collected by [[farming|harvesting]]
| cooking = * Put {{#if:{{{materials|}}}|{{{materials}}}|ingredients}} in a {{#if:{{{container|}}}|{{{container}}}|container}}
* Cook in a [[:Category:Fire_sources|fire]]
| unique = * Obtained by being a [[premium]] player in [[local]] range of a [[unique]] creature slay | slaying = * Obtained by being a [[premium]] player in [[local]] range of a [[unique]] creature slay | treasure = * Can be found by [[Treasure hunt|digging up treasure]]
| #default = * {{{creation}}}
}}{{#if:{{{creation2|}}}
|{{#switch: {{lc:{{{creation2}}}}}
| no arch = * This item cannot be craftedRestored through [[Archaeology]] | archaeology = * Restored through [[Archaeology]]
| farm = * Collected by [[farming|harvesting]]
| farming = * Collected by [[farming|harvesting]]
| cooking = * Put {{#if:{{{materials|}}}|{{{materials}}}|ingredients}} in a {{#if:{{{container|}}}|{{{container}}}|container}}
* Cook in a [[:Category:Fire_sources|fire]]
| unique = * Obtained by being a [[premium]] player in [[local]] range of a [[unique]] creature slay | slaying = * Obtained by being a [[premium]] player in [[local]] range of a [[unique]] creature slay | treasure = * Can be found by [[Treasure hunt|digging up treasure]]
| #default = * {{{creation2}}}
}}}}{{#if:{{{creation3|}}}
|{{#switch: {{lc:{{{creation3}}}}}
| no arch = * This item cannot be craftedRestored through [[Archaeology]] | archaeology = * Restored through [[Archaeology]]
| farm = * Collected by [[farming|harvesting]]
| farming = * Collected by [[farming|harvesting]]
| cooking = * Put {{#if:{{{materials|}}}|{{{materials}}}|ingredients}} in a {{#if:{{{container|}}}|{{{container}}}|container}}
* Cook in a [[:Category:Fire_sources|fire]]
| unique = * Obtained by being a [[premium]] player in [[local]] range of a [[unique]] creature slay | slaying = * Obtained by being a [[premium]] player in [[local]] range of a [[unique]] creature slay | treasure = * Can be found by [[Treasure hunt|digging up treasure]]
| #default = * {{{creation3}}}
}}}}
|-
|
{{#if:{{#pos:{{{result}}}|*|}}|{{{result}}}|* '''{{{result}}}'''}}
|-
! class="infobox-header-row" | {{#if:{{{skill2|}}}|Possible skills<br />and Improvement|Skill and improvement}}
General item template for items with multiple creation methods employing multiple skills -- Uses total items required, not additional.
The template adds a box with an image of the item and lists the , examine text, possible creation methods, the result , and the possible skills used.
If '''creation=''' is set the box will display that instead of creation steps.<br />
If '''creation3=''' is set it will be listed along with '''creation=''' and '''creation2=''' as a third method. '''Not required'''<br />
* Creation options are: arch, archaeology, farm, farming, fish, fishing, forage, foraging, botanize, foraging, botanizing, mine, woodmining, dig, digging, butcher, butchering, cook, cooking, unique, slaying, treasure or '''whatever you type'''
If '''skill=''' is set it will be listed as the skill used when creating.<br />
|name=Ivy seedling * will default to {{PAGENAME}}
|image=Sprout.png * will default to {{PAGENAME}}.png or {{PAGENAME}}.jpg
|examine=The in-game examine text for the item.|creation=Pick from an ivy trellis * See above for full list of creation options are: farm, fish, forage, botanize, foraging, botanizing, mine, wood, dig, butchering, cooking, unique, or "whatever you type"- this example ignores options and uses free form text
* '=no' results in 'This item can not be crafted'. Omit or leave blank to show creation steps rather than method
|creation2=Forage * omit, leave blank or specify an alternative creation method here
|name=Hammer * will default to {{PAGENAME}}
|image=Hammer.jpg * will default to {{PAGENAME}}.png or {{PAGENAME}}.jpg
|examine=The in-game examine text for the item.
|active=[[Hammer head]] (0.4 kg)
|passive=[[shaft]] (1.0 kg)
{{ItemBoxMulti
|name=Huge shod club * will default to {{PAGENAME}}
|examine=The in-game examine text for the item.
|result=Huge shod club''' (15.00 kg)
|creation=no * '=no' results in 'This item can not be crafted'. Omit or leave blank to show creation steps rather than method * creation options are: farm, fish, forage, botanize, foraging, botanizing, mine, wood, dig, butchering, cooking, unique, or "whatever you type". See complete option list above
|improve=no * specify the skill used to improve the item, omit or leave blank to show nothing. '=no' results in "Cannot be improved"
|dyeable=yes * or '=no', or '=multi' for multiple dyeable areas, '=useless' for can dye but doesn't do anything or '=rune' for colorable only with rune
|image=Iron fence.jpg
|name=Iron fence
|examine=The in-game examine text for the item.
|active=[[Mallet]] or [[Hammer]]
|passive=[[Tile Border]]
|image=Felled_Tree.png
|name=Felled Tree
|examine=The in-game examine text for the item.
|active=[[Hatchet]]
|passive=[[Tree Tile]]
editor
131

edits

Navigation menu