Difference between revisions of "Template:Item"

From Wurmpedia
Jump to navigation Jump to search
(Hide materials section if empty)
Line 10: Line 10:
 
# Right-click a {{{passive}}}
 
# Right-click a {{{passive}}}
 
{{#if:{{{group|}}}|# Open submenu Create > {{{group}}}}}
 
{{#if:{{{group|}}}|# Open submenu Create > {{{group}}}}}
|-
+
{{#ifeq:{{{materials}}}|no|||-
 
! style="background-color:#3c5;" | Additional materials
 
! style="background-color:#3c5;" | Additional materials
 
|-
 
|-
 
|
 
|
{{#ifeq:{{{materials}}}|no|* None|{{{materials}}}}}
+
{{{materials}}}
|-
+
}}|-
 
! style="background-color:#3c5;" | Result
 
! style="background-color:#3c5;" | Result
 
|-
 
|-

Revision as of 16:08, 3 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
}}