Changes

Jump to navigation Jump to search

Template:ItemBoxMulti

5,977 bytes added, 14:09, 8 December 2023
m
Add Archaeology creation method
{{#if:{{{creation|}}} <!-- creation attribute overrides showing creation steps, displaying the text below instead -->
|{{#switch: {{lc:{{{creation}}}}}
| no = * This item cannot be crafted. | arch = * Restored through [[Archaeology]] | archaeology = * Restored through [[Archaeology]] | farm = * Obtained through Collected by [[farming|harvesting]] | farming = * Collected by [[farming|harvesting]]. | forage = * Found by [[Foraging]]. | foraging = * Found by [[Foraging]] | botanize = * Found by [[Botanizing]]. | botanizing = * Found by [[Botanizing]] | pick = * Obtained through Picked from a tree, bush, planter or trellis | picking = * Picked from a Pottery tree, bush, planter.or trellis | fish = * Obtained through Caught by [[Fishing]] | fishing = * Caught by [[Fishing]]. | mine = * Obtained through Extracted by [[Mining]] | mining = * Extracted by [[Mining]]. | wood = * Created by [[Woodcutting]] | woodcutting = * Created by [[Woodcutting]] | dig = * Obtained through [[WoodcuttingDigging]]. | dig digging = * Obtained through [[Digging]]. | butcher = * Extracted through [[Butchering]] | butchering = * Obtained Extracted through [[Butchering]]. | cook = * Put {{#if:{{{materials|}}}|{{{materials}}}|ingredients}} in a {{#if:{{{container|}}}|{{{container}}}|container}}* Cook in a [[:Category:Fire_sources|fire]] | 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 and having of a [[unique]] creature slay | slaying = * Obtained by being a [[premium]] when player in [[local]] range of a [[unique]] creature is slain.slay | treasure = * Can be found by [[Treasure hunt|digging up treasure]]
| #default = * {{{creation}}}
}}{{#if:{{{creation2|}}}
|{{#switch: {{lc:{{{creation2}}}}}
| no arch = * This item cannot be crafted.Restored through [[Archaeology]] | archaeology = * Restored through [[Archaeology]] | farm = * Obtained through Collected by [[farming|harvesting]] | farming = * Collected by [[farming|Harvestingharvesting]]. | forage = * Found by [[Foraging]]. | foraging = * Found by [[Foraging]] | botanize = * Found by [[Botanizing]]. | botanizing = * Found by [[Botanizing]] | pick = * Obtained through Picked from a tree, bush, planter or trellis | picking = * Picked from a Pottery tree, bush, planter.or trellis | fish = * Obtained through Caught by [[Fishing]] | fishing = * Caught by [[Fishing]]. | mine = * Obtained through Extracted by [[Mining]] | mining = * Extracted by [[Mining]]. | wood = * Created by [[Woodcutting]] | woodcutting = * Created by [[Woodcutting]] | dig = * Obtained through [[WoodcuttingDigging]]. | dig digging = * Obtained through [[Digging]]. | butcher = * Extracted through [[Butchering]] | butchering = * Obtained Extracted through [[Butchering]]. | cook = * Put {{#if:{{{materials|}}}|{{{materials}}}|ingredients}} in a {{#if:{{{container|}}}|{{{container}}}|container}}* Cook in a [[:Category:Fire_sources|fire]] | 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 and having of a [[unique]] creature slay | slaying = * Obtained by being a [[premium]] when player in [[local]] range of a [[unique]] creature is slain.slay | treasure = * Can be found by [[Treasure hunt|digging up treasure]]
| #default = * {{{creation2}}}
}}}}{{#if:{{{creation3|}}}
|{{#switch: {{lc:{{{creation3}}}}}
| no arch = * Restored through [[Archaeology]] | archaeology = * Restored through [[Archaeology]] | farm = * Obtained through Collected by [[farming|harvesting]] | farming = * Collected by [[farming|Harvestingharvesting]]. | forage = * Found by [[Foraging]]. | foraging = * Found by [[Foraging]] | botanize = * Found by [[Botanizing]]. | botanizing = * Found by [[Botanizing]] | pick = * Obtained through Picked from a tree, bush, planter or trellis | picking = * Picked from a Pottery tree, bush, planter.or trellis | fish = * Obtained through Caught by [[Fishing]] | fishing = * Caught by [[Fishing]]. | mine = * Obtained through Extracted by [[Mining]] | mining = * Extracted by [[Mining]]. | wood = * Created by [[Woodcutting]] | woodcutting = * Created by [[Woodcutting]] | dig = * Obtained through [[WoodcuttingDigging]]. | dig digging = * Obtained through [[Digging]]. | butcher = * Extracted through [[Butchering]] | butchering = * Obtained Extracted through [[Butchering]]. | cook = * Put {{#if:{{{materials|}}}|{{{materials}}}|ingredients}} in a {{#if:{{{container|}}}|{{{container}}}|container}}* Cook in a [[:Category:Fire_sources|fire]] | 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 and having of a [[unique]] creature slay | slaying = * Obtained by being a [[premium]] when player in [[local]] range of a [[unique]] creature is slain.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}}
|-
|{{#if:{{{skill|}}}|* {{#if:{{{skill2|}}}| Can use|Uses}} [[{{{skill}}}]] skill {{#if:{{{improveskill|}}}| for creation }}{{#if:{{{requiredskill|}}}|* {{{requiredskill}}} [[{{{skill}}}]] required}}}}{{#if:{{{skill2|}}}|* Can use [[{{{skill2}}}]] skill {{#if:{{{improveskill2|}}}| for creation }}{{#if:{{{requiredskill2|}}}|* {{{requiredskill2}}} [[{{{skill2}}}]] required}}}}{{#if:{{{skill3|}}}|* Can use [[{{{skill3}}}]] skill {{#if:{{{improveskill3|}}}| for creation }}{{#if:{{{requiredskill3|}}}|* {{{requiredskill3}}} [[{{{skill3}}}]] required}}}}{{#if:{{{difficulty|}}}|* Creation difficulty: {{{difficulty}}}}}{{#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 -->
{{!}}{{#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|}}}}}
| #default=[[Category:{{{skill}}} items]]}}
}}
 
<!-- second and third skills as skill2= and skill3= -->
 
{{#if:{{{skill2|}}}|
{{#switch: {{lc:{{{skill2|}}}}}
| #default=[[Category:{{{skill2}}} items]]}}
}}
 
{{#if:{{{skill3|}}}|
{{#switch: {{lc:{{{skill3|}}}}}
| #default=[[Category:{{{skill3}}} items]]}}
}}
 
{{#switch: {{lc:{{{passive|}}}}}<!-- Add appropriate categories for various creations as indicated by the passive targeted item -->
| [[roof plan]]=[[Category:Roofs]] [[Category:Structures]]
<!--| [[wall plan]]=[[Category:Walls]] [[Category:Structures]] // Commenting this out, using different categories for walls-->
| #default=}}
<!-- If (1 creation and (2 anyone from the create group - active and passive and [3)- at least one of group or groupM or TopMost or assemble must be NOT empty] and materials and result and skill - are empty add to Incomplete item templates -->
{{#if:{{{creation|}}}||{{#if:{{#if: {{{active|}}} |{{#if: {{{passive|}}} |{{#if:{{#if: {{{group|}}}|{{{group|}}}|{{#if: {{{groupM|}}}|{{{groupM|}}}|{{#if: {{{TopMost|}}}|{{{TopMost|}}}|{{#if:{{{assemble|}}}|{{{assemble|}}}|}}}}}}}}|{{#if: {{{materials|}}}|{{#if: {{{result|}}} | {{{skill|}}} }}}}}}}}}}||[[Category:Incomplete item templates]]}}}}[[Category:Items]]</includeonly><noinclude>
General item template for items with multiple creation methods employing multiple skills -- THIS TEMPLATE USES TOTAL ITEMS REQUIREDUses total items required, NOT ADDITIONALnot additional. The template adds a box with an image of the item and lists the possible creation methods, the result and the possible skills used.
The template adds a If '''creation=''' is set the box will display that instead of creation steps.<br />If '''creation2=''' is set it will be listed along with '''creation=''' as an image of the item additional method. '''Not required'''<br />If '''creation3=''' is set it will be listed along with '''creation=''' and the steps to create the item'''creation2=''' as a third method. '''Not required'''<br />
If the * Creation options are: arch, archaeology, farm, farming, fish, fishing, forage, foraging, botanize, botanizing, mine, mining, dig, digging, butcher, butchering, cook, cooking, unique, slaying, treasure or ''creation'whatever you type''' parameter is set the box will display its contents instead of the creation steps.
Usage examples:If '''skill=''' is set it will be listed as the skill used when creating.<br />If '''skill2''' is set, '''skill=''' will be listed as a possible skill used and '''skill2=''' will be listed as another possibility. '''Not required'''<br />If '''skill3''' is set, it will be listed as another possibility. '''Not required'''
<br />Example for items with multiple creation methods: <pre>{{itemBoxItemBoxMulti|name=Hammer Ivy seedling *will default to {{PAGENAME}}|image=Sprout.png *will default to {{PAGENAME}}.png or {{PAGENAME}}.jpg|creation=Pick from an ivy trellis * See above for full list of creation options - this example ignores options and uses free form text * defaults '=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|creation3=Botanize * omit, leave blank or specify an alternative creation method here|result={{PAGENAME}} |skill=Gardening * omit, leave blank or specify the skill used that corresponds to the 'creation=' method or the creation steps|skill2=Foraging *omit, leave blank or specify the skill used that corresponds to the 'creation2' method|skill3=Botanizing *omit, leave blank or specify the skill used that corresponds to the 'creation3' method|improve=no *specify the skill used to improve the item, omit or leave blank to show nothing. '=no' results in "Cannot be improved"|combinable=no * omit, leave blank or use =no to show nothing, other options are yes or hot }}</pre> Example for items with creation steps <pre>{{ItemBoxMulti|name=Hammer * will default to {{PAGENAME}}|image=hammerHammer.jpg ** * defaults will default to {{PAGENAME}}.jpg png or {{PAGENAME}}.png ***jpg|active=[[hammer Hammer head]] (0.4 kg)
|passive=[[shaft]] (1.0 kg)
|group=Tools ** * item is can be found in this the sub menu in of the '''create list ***''' menu
|materials=no
|result=1 '''hammer''' Hammer - 1.4 kg|skill=blacksmithingBlacksmithing * omit, leave blank or specify the skill used that corresponds to the creation steps|improve=smithingSmithing * specify the skill used to improve the item, omit or leave blank to show nothing. '=no' results in "Cannot be improved"|combinable=no *** empty omit, leave blank or use =no to show nothing, other options are yes or hot ***|storage= *** empty shows omit or leave blank to show nothing, other options are bsb or fsb ***|decoration=no *** empty shows omit or leave blank to show nothing, '=yes says it's a results in 'Appears as decoration', '=no says it will be ' results in an 'Appears as item pile '|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|dyeamount= ***Only add if it omit unless item is dyeable, must be specify the amount (grams) of dye needed***|requiredskill= * **Only add if omit unless there's is a hard skill requirement--, specify the number goes here*** skill required
}}
</pre>
Example of a non-craftable item <pre>{{itemBoxItemBoxMulti|name=Huge shod club *** defaults will default to {{PAGENAME}} ***|result=1 '''huge Huge shod club''' (15.00 kg)|creation=no ** * '=no' will result results in 'The This item can not be crafted',. Omit or leave blank to show creation steps rather than method. See complete option list above other options include farm, fish, botanize, forage|improve=no * specify the skill used to improve the item,omit or leave blank to show nothing. '=no' results in "Cannot be improved" mine|dyeable=yes * or '=no', woodor '=multi' for multiple dyeable areas, dig, butchering, cooking, unique ***'=useless' for can dye but doesn't do anything or '=rune' for colorable only with rune|improvedyeamount=no * omit unless item is dyeable, specify the amount (grams) of dye needed
}}
</pre>
 
Building example with materials list:
<pre>
{{itemBoxItemBoxMulti
|image=Iron fence.jpg
|name=Iron fence
|active=[[Mallet]] or [[Hammer]]
|passive=[[Tile Border]]
|groupM=Fence > Iron > Build iron fence *** item is in this menu when you right click the passive item (for items like fences where there is no create menu) ***
|materials=* 10x [[Stone brick]]s
* 1x [[Iron fence bars]]
|result=*'''Iron fence'''
|skill=Masonry
|improveskill=Paving ** * to specify that improving gives another skill|improveItem=Stone bricks ** * for items like fences and walls, improves using and item and not a set of tools ***
|note=*You must have at least one stone brick in your [[inventory]] to start building it.
|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|dyeamount=1234100 *specify amount of dye (grams) if dyeable
}}
</pre>
 
Example when action is on First right click menu:
<pre>
{{itemBoxItemBoxMulti|image=xxxxFelled_Tree.jpgpng
|name=Felled Tree
|active=[[Hatchet]]
|passive=[[Tree Tile]]
|TopMost=Cut down ** * Menu option where its on the top most parent menu.***
|materials=no
|result=* 1 '''felled tree''' (up to 186.67 kg)
|skill=woodcutting
|dyeable=yes ** * or no, multi, useless or rune 
}}
</pre>
<pre>{{itemBox|image=Felled_Tree.jpg|name=Felled Tree|active=[[Hatchet]]|passive=[[Tree Tile]]|TopMost=Cut down *** Menu option where its on the top most parent menu.***|materials=no|result=* 1 '''felled tree''' (up to 186.67 kg)|skill=woodcutting|improve=no}}}}</pre>
[[Category:Template]]
</noinclude>
editor
1,516

edits

Navigation menu