Changes

Jump to navigation Jump to search

Template:Item

1,328 bytes removed, 15:47, 10 August 2011
m
removed Category:Needs image from the template because it doesn't work properly and will be obsolete soon.
|-
|
{{#ifexist: Image:{{{image|{{{name|{{PAGENAME}}}}}.jpg}}}
| [[Image: {{{image|{{{name|{{PAGENAME}}}}}.jpg}}}|center|90px|A {{{name|{{PAGENAME}}}}}]]
| {{#ifexist: Image:{{{image|{{{name|{{PAGENAME}}}}}.png}}}
| [[Image: {{{image|{{{name|{{PAGENAME}}}}}.png}}}|center|90px|A {{{name|{{PAGENAME}}}}}]]
| [[Image: {{{image|{{{name|{{PAGENAME}}}}}.jpg}}}|center|90px|A {{{name|{{PAGENAME}}}}}]]
[[Category:Needs image]]
}}
}}
! 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 examplesexample:
<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
2,738

edits

Navigation menu