Difference between revisions of "Template:Item"
Jump to navigation
Jump to search
m (closing quotation mark was outside the if block) |
m (test to see if it still creates a Special:WantedPages entry, will revert if it doesn't fix it.) |
||
Line 5: | Line 5: | ||
{{#ifexist: Image:{{{image|{{{name|{{PAGENAME}}}}}.jpg}}} | {{#ifexist: Image:{{{image|{{{name|{{PAGENAME}}}}}.jpg}}} | ||
| [[Image: {{{image|{{{name|{{PAGENAME}}}}}.jpg}}}|center|90px|A {{{name|{{PAGENAME}}}}}]] | | [[Image: {{{image|{{{name|{{PAGENAME}}}}}.jpg}}}|center|90px|A {{{name|{{PAGENAME}}}}}]] | ||
+ | | [[Image: {{{image|{{{name|{{PAGENAME}}}}}.png}}}|center|90px|A {{{name|{{PAGENAME}}}}}]] | ||
| {{#ifexist: Image:{{{image|{{{name|{{PAGENAME}}}}}.png}}} | | {{#ifexist: Image:{{{image|{{{name|{{PAGENAME}}}}}.png}}} | ||
| [[Image: {{{image|{{{name|{{PAGENAME}}}}}.png}}}|center|90px|A {{{name|{{PAGENAME}}}}}]] | | [[Image: {{{image|{{{name|{{PAGENAME}}}}}.png}}}|center|90px|A {{{name|{{PAGENAME}}}}}]] |
Revision as of 12:16, 6 August 2011
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 *** |improve=no }}