Difference between revisions of "Template:Item"

From Wurmpedia
Jump to navigation Jump to search
m (Fix for tall, slim images.)
(Add combinable flag to Item template)
Line 57: Line 57:
 
}}
 
}}
 
{{#if:{{{improve|}}}|* {{#ifeq:{{{improve}}}|no|Cannot be [[improve]]d|[[Improve]]s like [[{{{improve}}}]] items}}}}
 
{{#if:{{{improve|}}}|* {{#ifeq:{{{improve}}}|no|Cannot be [[improve]]d|[[Improve]]s like [[{{{improve}}}]] items}}}}
 +
{{#ifeq:{{{combinable|no}}}|no||
 +
{{!}}-
 +
! style="background-color:#3c5;" {{!}} Properties
 +
{{!}}-
 +
{{#ifeq:{{{combinable|no}}}|no||
 +
{{!}}
 +
{{#switch: {{{combinable}}}
 +
| hot = * Can be combined when glowing hot
 +
| #default = * Can be combined
 +
}}
 +
}}
 +
}}
 
|}
 
|}
 
{{#if:{{{skill|}}}|[[Category:{{{skill}}} items]]}}
 
{{#if:{{{skill|}}}|[[Category:{{{skill}}} items]]}}
Line 90: Line 102:
 
|creation=Troll drop        *** 'no' will result in 'The item can not be created', other options include farm, fish, botanize, forage, mine, wood, dig, butchering ***
 
|creation=Troll drop        *** 'no' will result in 'The item can not be created', other options include farm, fish, botanize, forage, mine, wood, dig, butchering ***
 
|improve=no
 
|improve=no
 +
|combinable=yes              *** Item can be combined. Other options are hot and no. No is default ***
 
}}
 
}}
 
</pre>
 
</pre>

Revision as of 18:48, 29 April 2012

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 examples:

{{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)
|group=Tools
|materials=no
|result=1 '''hammer''' - 1.4 kg
|skill=blacksmithing
|improve=smithing
}}
{{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, butchering ***
|improve=no
|combinable=yes              *** Item can be combined. Other options are hot and no. No is default ***
}}