Changes

Jump to navigation Jump to search

Template:Item

1,269 bytes added, 18:08, 10 August 2011
Restore previous version of the template minus the NeedsImage hack
! style="background-color:#3c5;" | Creation
|-
|
{{#if:{{{creation|}}}|
{{#switch: {{{creation}}}
| no = This item can not be created.
| farm = Obtained through [[Farming|harvesting]].
| forage = Obtained through [[forage|foraging]].
| botanize = Obtained through [[botanize|botanizing]].
| fish = Obtained through [[fishing]].
| mine = Obtained through [[mining]].
| wood = Obtained through [[woodcutting]].
| dig = Obtained through [[digging]].
| cooking = * Put {{#if:{{{materials|}}}|
{{{materials}}}
 
|ingredients}} in a {{#if:{{{container|}}}|{{{container}}}|container}}
* Cook in a [[:Category:Fire_sources|fire place]].
| #default = {{{creation}}}
}}
|
# [[Activate]] a {{{active}}}
# Right-click a {{{passive}}}
{{#if:{{{group|}}}|# Open submenu "Create > [[{{{group}}}]]"}}"
{{#ifeq:{{{materials}}}|no||
{{!}}-
{{!}}
{{{materials}}}
}}
}}
|-
|-
|
{{#if:{{{creation|}}}||
* Uses [[{{{skill}}}]]
}}
{{#if:{{{improve|}}}|* {{#ifeq:{{{improve}}}|no|Cannot be [[improve]]d|[[Improve]]s like [[{{{improve}}}]] items}}}}
|}
{{#if:{{{skill|}}}|[[Category:{{{skill}}} items]]}}
[[Category:Items]]
{{#if:{{{creation|}}}||
{{#if: {{#if: {{{active|}}} | {{#if: {{{passive|}}} | {{#if: {{{group|}}} | {{#if: {{{materials|}}} | {{#if: {{{result|}}} | {{{skill|}}} }} }} }} }} }} ||[[Category:Incomplete item templates]]}}
}}
</includeonly><noinclude>
General item template.  The template adds a box with an image of the item and the steps to create the item.  If the ''creation'' parameter is set the box will display its contents instead of the creation steps. Usage exampleexamples:
<pre>{{item
|name=Hammer *** defaults to {{PAGENAME}} ***
|image=hammer.jpg *** defaults to {{PAGENAME}}.jpg or {{PAGENAME}}.png ***
|active=[[hammer head]] (0.4 kg)
|passive=[[shaft]] (1.0 kg)
}}
</pre>
 
<pre>{{item
|name=Huge shod club *** defaults to {{PAGENAME}} ***
|result=1 '''huge shod club''' (15.00 kg)
|creation=Troll drop *** 'no' will result in 'The item can not be created', other options include farm, fish, botanize, forage, mine, wood, dig ***
|improve=no
}}
</pre>
 
[[Category:Template]]
</noinclude>
editor
1,247

edits

Navigation menu