Difference between revisions of "Template:Item"

From Wurmpedia
Jump to navigation Jump to search
m (updated the noinclude)
(Needs image category added to pages in need)
Line 3: Line 3:
 
|-
 
|-
 
|
 
|
{{#ifexist: Image:{{{name|{{PAGENAME}}}}}.{{{imagetype|jpg}}}
+
{{#ifexist: Image:{{{name|{{PAGENAME}}}}}.jpg
     | [[Image: {{{image|{{{name|{{PAGENAME}}}}}.{{{imagetype|jpg}}}}}}|center|90px|A {{{name|{{PAGENAME}}}}}]]
+
     | [[Image: {{{image|{{{name|{{PAGENAME}}}}}.jpg}}}|center|90px|A {{{name|{{PAGENAME}}}}}]]
 
     | {{#ifexist: Image:{{{name|{{PAGENAME}}}}}.png
 
     | {{#ifexist: Image:{{{name|{{PAGENAME}}}}}.png
 
         | [[Image: {{{image|{{{name|{{PAGENAME}}}}}.png}}}|center|90px|A {{{name|{{PAGENAME}}}}}]]
 
         | [[Image: {{{image|{{{name|{{PAGENAME}}}}}.png}}}|center|90px|A {{{name|{{PAGENAME}}}}}]]
 
         | [[Image: {{{image|{{{name|{{PAGENAME}}}}}.jpg}}}|center|90px|A {{{name|{{PAGENAME}}}}}]]
 
         | [[Image: {{{image|{{{name|{{PAGENAME}}}}}.jpg}}}|center|90px|A {{{name|{{PAGENAME}}}}}]]
 +
          [[Category:Needs image]]
 
     }}
 
     }}
 
}}
 
}}
Line 44: Line 45:
 
<pre>{{item
 
<pre>{{item
 
|name=Hammer        *** defaults to {{PAGENAME}} ***
 
|name=Hammer        *** defaults to {{PAGENAME}} ***
|imagetype=jpg      *** defaults to jpg ***
 
 
|active=[[hammer head]] (0.4 kg)
 
|active=[[hammer head]] (0.4 kg)
 
|passive=[[shaft]] (1.0 kg)
 
|passive=[[shaft]] (1.0 kg)

Revision as of 10:04, 28 November 2010

Usage example:

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