Difference between revisions of "Template:Item"

From Wurmpedia
Jump to navigation Jump to search
m (Whitespace test fix)
(Template test fix (again))
Line 9: Line 9:
 
# Activate a {{{active}}}
 
# Activate a {{{active}}}
 
# Right-click a {{{passive}}}
 
# Right-click a {{{passive}}}
{{#if:{{{group|}}}|# Open submenu Create > {{{group}}}}}
+
{{#if:{{{group|}}}|# Open submenu Create > {{{group}}}}}{{#ifeq:{{{materials}}}|no||
{{#ifeq:{{{materials}}}|no||
 
 
{{!}}-
 
{{!}}-
 
! style="background-color:#3c5;" {{!}} Additional materials
 
! style="background-color:#3c5;" {{!}} Additional materials
Line 16: Line 15:
 
{{!}}
 
{{!}}
 
{{{materials}}}
 
{{{materials}}}
}}|-
+
}}
 +
|-
 
! style="background-color:#3c5;" | Result
 
! style="background-color:#3c5;" | Result
 
|-
 
|-

Revision as of 22:30, 5 September 2007

Usage example:

{{item
|name=Hammer
|active=[[hammer head]] (0.4 kg)
|passive=[[shaft]] (1.0 kg)
|group=Tools
|materials=no
|result=1 '''hammer''' - 1.4 kg
|skill=blacksmithing
}}