Changes

Jump to navigation Jump to search

Template:ItemBox

108 bytes added, 01:24, 9 November 2014
m
Quick tidy up of wikicode
|-
|
<!-- Check for image. If pagename.jpg doesn't exist use .png otherwise display "Needs Image" -->
{{#ifexist: Image:{{{image|{{{name|{{PAGENAME}}}}}.jpg}}}
| [[Image: {{{image|{{{name|{{PAGENAME}}}}}.jpg}}}|center|120x120px|A {{{name|{{PAGENAME}}}}}]]
| {{#ifexist: Image:{{{image|{{{name|{{PAGENAME}}}}}.png}}}
| [[Image: {{{image|{{{name|{{PAGENAME}}}}}.png}}}|center|120x120px|A {{{name|{{PAGENAME}}}}}]]
| [[Needs Image: {{{image|{{{name|{{PAGENAME}}}}}.jpg}}}|center|120x120px|A {{{name|{{PAGENAME}}}}}]]
}}
}}
|{{#switch: {{lc:{{{creation}}}}}
| no = This item can not be created.
| farm = Obtained through [[Farmingfarming|harvesting]].
| forage = Obtained through [[forage|foraging]].
| botanize = Obtained through [[botanize|botanizing]].
| butchering = Obtained through [[butchering]].
| cooking = * Put {{#if:{{{materials|}}}|{{{materials}}}|ingredients}} in a {{#if:{{{container|}}}|{{{container}}}|container}}.
* Cook in a [[:Category:Fire_sources|fire place]].
| #default = {{{creation}}}
}}
|<!-- if there is no creation attribute show steps for how to create -->
<ol><li>[[Activate]] {{{active}}}</li><li>Right-click {{{passive}}}</li><!-- Creation via right-click > group -->
{{#if:{{{group|}}}
| <li>Open submenu "Create > [[{{{group}}}]]"</li>
}}
</ol>
<!-- TOTAL materials, not additional -->
<!-- If materials = 0, close the table header -->
{{#ifeq:{{{materials}}}|no||
{{!}}-
! style="background-color:#3c5;" {{!}} Materials requiredTotal materials
{{!}}-
{{!}}
}}
}}
<!-- End of Creation Section -->
|-
! style="background-color:#3c5" | Result
{{#if:{{{skill|}}}|[[Category:{{{skill}}} items]]}}
[[Category:Items]]
<!-- If (1 creation and (2 anyone from the create group - active and pasive 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]]}}}}
</includeonly>  <noinclude>General item template.  The template adds a box to the right with an image of the item and the steps to create the item and lists the '''total materials required''' to produce.
If the ''creation'' parameter is set the box will display its contents instead of the creation steps.
|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 9x [[Stone brick]]s
* 1x [[Iron fence bars]]
|result=*'''Iron fence'''
}}
</pre>
</noinclude>
 
[[Category:Template]]
</noinclude>
UserManager, editor
1,721

edits

Navigation menu