Difference between revisions of "Template:Spell"

From Wurmpedia
Jump to navigation Jump to search
m (Updated template with image & new colour scheme)
m (Removed redlink, not important for spells.)
Line 6: Line 6:
 
<!-- Check for image.  If pagename.jpg exist use it. If pagename.jpg does not exists check for pagename.png and use that if it exists. Also, add png's to a category so we can see what images need to be converted. Finally, if both pagename.jpg and pagename.png don't exist add the pagename to a category listing of missing images -->
 
<!-- Check for image.  If pagename.jpg exist use it. If pagename.jpg does not exists check for pagename.png and use that if it exists. Also, add png's to a category so we can see what images need to be converted. Finally, if both pagename.jpg and pagename.png don't exist add the pagename to a category listing of missing images -->
 
{{#ifexist: Image:{{{image|{{{name|{{PAGENAME}}}}}.jpg}}}
 
{{#ifexist: Image:{{{image|{{{name|{{PAGENAME}}}}}.jpg}}}
| [[Image: {{{image|{{{name|{{PAGENAME}}}}}.jpg}}}|center|100px|A {{{name|{{PAGENAME}}}}}]]
+
| [[Image: {{{image|{{{name|{{PAGENAME}}}}}.jpg}}}|center|100px|{{{name|{{PAGENAME}}}}}]]
 
     | {{#ifexist: Image:{{{image|{{{name|{{PAGENAME}}}}}.png}}}
 
     | {{#ifexist: Image:{{{image|{{{name|{{PAGENAME}}}}}.png}}}
         | [[Image: {{{image|{{{name|{{PAGENAME}}}}}.png}}}|center|100px|A {{{name|{{PAGENAME}}}}}]]
+
         | [[Image: {{{image|{{{name|{{PAGENAME}}}}}.png}}}|center|100px|[[Category:Needs image]]
         | [[Image: {{{image|{{{name|{{PAGENAME}}}}}.jpg}}}|center|100px|A {{{name|{{PAGENAME}}}}}]] [[Category:Needs image]]
+
         | [[Image: {{{image|{{{name|{{PAGENAME}}}}}.jpg}}}|center|100px|[[Category:Needs image]]
 
     }}
 
     }}
 
}}
 
}}

Revision as of 12:57, 25 July 2015



Usage:

{{Spell
|faith=10
|favor=10
|difficulty=20
|target=Tile, Creature, Item
|castingtime=4
|cooldowntime=30 minutes
|god=[[Fo]], [[Vynora]], [[Magranon]], [[Libila]]

}}