Difference between revisions of "Template:Spell"

From Wurmpedia
Jump to navigation Jump to search
m (Undo revision 93350 by Marni (talk))
m (Added logo)
Line 3: Line 3:
 
|+ style="font-weight: bold" | {{PAGENAME}}
 
|+ style="font-weight: bold" | {{PAGENAME}}
 
|-
 
|-
|
+
| {{#ifexist: Image:{{{image|{{{name|{{PAGENAME}}}}}.jpg}}}
<!-- 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 -->
+
| [[Image: {{{image|{{{name|{{PAGENAME}}}}}.jpg}}}|center|100px|{{{name|{{PAGENAME}}}}}]]
{{#ifexist: Image:{{{image|{{{name|{{PAGENAME}}}}}.jpg}}}
+
| {{#ifexist: Image:{{{image|{{{name|{{PAGENAME}}}}}.png}}}
| [[Image: {{{image|{{{name|{{PAGENAME}}}}}.jpg}}}|center|100px|{{{name|{{PAGENAME}}}}}]]
+
| [[Image: {{{image|{{{name|{{PAGENAME}}}}}.png}}}|center|100px|{{{name|{{PAGENAME}}}}}]]
    | {{#ifexist: Image:{{{image|{{{name|{{PAGENAME}}}}}.png}}}
+
| [[Image: No_logo.png|center|100px|{{{name|{{PAGENAME}}}}}]] }}
        | [[Image: {{{image|{{{name|{{PAGENAME}}}}}.png}}}|center|100px|{{{name|{{PAGENAME}}}}}]]
+
  }}
        | [[Image: {{{image|{{{name|{{PAGENAME}}}}}.jpg}}}|center|100px|{{{name|{{PAGENAME}}}}}]] [[Category:Needs image]]
 
    }}
 
}}
 
 
|-
 
|-
 
! style="background-color:#4B3E30; color:#FFFFFF;" | Stats
 
! style="background-color:#4B3E30; color:#FFFFFF;" | Stats
Line 43: Line 40:
 
|cooldowntime=30 minutes
 
|cooldowntime=30 minutes
 
|god=[[Fo]], [[Vynora]], [[Magranon]], [[Libila]]
 
|god=[[Fo]], [[Vynora]], [[Magranon]], [[Libila]]
 
 
}}
 
}}
 
</pre>
 
</pre>
 +
 +
The image displayed will either be that of one with the same page name or the default Faith Bonus icon.  Spell icons are taken from the client's 'Status Effect' GUI window as a 100px square PNG.
  
 
[[Category:Template]]
 
[[Category:Template]]

Revision as of 22:00, 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]]
}}

The image displayed will either be that of one with the same page name or the default Faith Bonus icon. Spell icons are taken from the client's 'Status Effect' GUI window as a 100px square PNG.