Difference between revisions of "Template:Item"

From Wurmpedia
Jump to navigation Jump to search
m
Line 2: Line 2:
 
|+ style="font-weight: bold" | {{{name|{{PAGENAME}}}}}
 
|+ style="font-weight: bold" | {{{name|{{PAGENAME}}}}}
 
|-
 
|-
|  
+
|
 +
{{#if {{#ifexist
 
{{#ifexist: Image:{{{name|{{PAGENAME}}}}}.{{{imagetype|jpg}}}
 
{{#ifexist: Image:{{{name|{{PAGENAME}}}}}.{{{imagetype|jpg}}}
 
     | [[Image: {{{image|{{{name|{{PAGENAME}}}}}.{{{imagetype|jpg}}}}}}|center|90px|A {{{name|{{PAGENAME}}}}}]]
 
     | [[Image: {{{image|{{{name|{{PAGENAME}}}}}.{{{imagetype|jpg}}}}}}|center|90px|A {{{name|{{PAGENAME}}}}}]]
     | {{#ifexist: Image:{{{name|{{PAGENAME}}}}}.{{{imagetype|png}}}
+
     | {{#ifexist: Image:{{{name|{{PAGENAME}}}}}.png
         | [[Image: {{{image|{{{name|{{PAGENAME}}}}}.{{{imagetype|png}}}}}}|center|90px|A {{{name|{{PAGENAME}}}}}]]
+
         | [[Image: {{{image|{{{name|{{PAGENAME}}}}}.png}}}|center|90px|A {{{name|{{PAGENAME}}}}}]]
         | [[Image: {{{image|{{{name|{{PAGENAME}}}}}.{{{imagetype|jpg}}}}}}|center|90px|A {{{name|{{PAGENAME}}}}}]]
+
         | [[Image: {{{image|{{{name|{{PAGENAME}}}}}.jpg}}}|center|90px|A {{{name|{{PAGENAME}}}}}]]
 
     }}
 
     }}
 
}}
 
}}

Revision as of 18:09, 29 May 2010

Usage example:

{{item
|name=Hammer         *** defaults to {{PAGENAME}} ***
|imagetype=png       *** defaults to jpg ***
|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
}}