Difference between revisions of "Template:Spell"

From Wurmpedia
Jump to navigation Jump to search
(Only include in category:spells if in main namespace)
(updated usage)
 
(6 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
|+ style="font-weight: bold" | {{PAGENAME}}
 
|+ style="font-weight: bold" | {{PAGENAME}}
 
|-
 
|-
| {{#ifexist: Image:{{{image|{{{name|{{PAGENAME}}}}}.jpg}}}
+
| {{#if: {{{image|}}} |
| [[Image: {{{image|{{{name|{{PAGENAME}}}}}.jpg}}}|center|100px|{{{name|{{PAGENAME}}}}}]]
+
[[Image: {{{image|{{{name|{{PAGENAME}}}}}.jpg}}}|center|250px|A {{{name|{{PAGENAME}}}}}]] |
| {{#ifexist: Image:{{{image|{{{name|{{PAGENAME}}}}}.png}}}
+
[[Image: No_logo.png|center|250px|{{{name|{{PAGENAME}}}}}]]  
| [[Image: {{{image|{{{name|{{PAGENAME}}}}}.png}}}|center|100px|{{{name|{{PAGENAME}}}}}]]
+
}}
| [[Image: No_logo.png|center|100px|{{{name|{{PAGENAME}}}}}]] }}
 
  }}
 
 
|-
 
|-
 
! style="background-color:#4B3E30; color:#FFFFFF;" | Stats
 
! style="background-color:#4B3E30; color:#FFFFFF;" | Stats
Line 23: Line 21:
 
|-
 
|-
 
|
 
|
{{{god}}}
+
Only a Priest of {{{god}}} can cast this spell
 
|}
 
|}
 
<!-- the following will place the page in Spells category only if in the main namespace -->
 
<!-- the following will place the page in Spells category only if in the main namespace -->
Line 34: Line 32:
 
<pre>
 
<pre>
 
{{Spell
 
{{Spell
 +
|image=filename
 
|faith=10
 
|faith=10
 
|favor=10
 
|favor=10
Line 44: Line 43:
 
</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.
+
The image displayed will either be that of one with name mentioned in the image attribute 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]]
  
 
</noinclude>
 
</noinclude>

Latest revision as of 20:20, 9 December 2020



Usage:

{{Spell
|image=filename
|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 name mentioned in the image attribute or the default Faith Bonus icon. Spell icons are taken from the client's 'Status Effect' GUI window as a 100px square PNG.