Changes

Jump to navigation Jump to search

Template:Item

570 bytes added, 15:37, 22 September 2014
more logic for create steps and incomplete item template
{| style="float:right; margin:1em; width:250px;" cellpadding="3" cellspacing="0" border="1"
|+ style="font-weight: bold" | {{{name|{{PAGENAME}}}}}
 
|-
|
}}
}}
 
|-
! style="background-color:#3c5;" | Creation
|
<!-- creation attribute overrides showing creation steps, displaying the text below instead -->
{{#if:{{{creation|}}}| |{{#switch: {{lc:{{{creation}}}}}
| no = This item can not be created.
| farm = Obtained through [[Farming|harvesting]].
| #default = {{{creation}}}
}}
| <!-- if there is no creation attribute show steps for how to create -->
<ol>
<li>[[Activate]] {{{active}}}</li>
<li>Right-click {{{passive}}}</li>
{{#if:{{{group|}}} |group=<li>Open submenu "Create > [[{{{group}}}]]"</li>}} | {{#if:{{{groupM|}}} |groupM=<li>Open submenu > {{{groupM}}}</li>}} | {{#if:{{{TopMost|}}} |TopMost=<li>Open [[Context menu|menu]] > {{{TopMost}}}</li>}} | {{#if:{{{assemble|}}} |assemble=<li>{{{assemble}}}</li> }} }} }}}}</ol>
{{#ifeq:{{{materials}}}|no||
{{!}}-
{{#if:{{{skill|}}}|[[Category:{{{skill}}} items]]}}
[[Category:Items]]
<!-- If (1 creation and (2 anyone from create group - active and pasive 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>
|name=Felled Tree
|active=[[Hatchet]]
|passive=[[Tree Tile Border]]
|TopMost=Cut down *** Menu option where its on the top most parent menu.***
|materials=no
380

edits

Navigation menu