Difference between revisions of "Template:Spell"

From Wurmpedia
Jump to navigation Jump to search
m (Updated template with image & new colour scheme)
(updated usage)
 
(11 intermediate revisions by 3 users not shown)
Line 3: Line 3:
 
|+ style="font-weight: bold" | {{PAGENAME}}
 
|+ style="font-weight: bold" | {{PAGENAME}}
 
|-
 
|-
|
+
| {{#if: {{{image|}}} |
<!-- 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|250px|A {{{name|{{PAGENAME}}}}}]] |
{{#ifexist: Image:{{{image|{{{name|{{PAGENAME}}}}}.jpg}}}
+
[[Image: No_logo.png|center|250px|{{{name|{{PAGENAME}}}}}]]  
| [[Image: {{{image|{{{name|{{PAGENAME}}}}}.jpg}}}|center|100px|A {{{name|{{PAGENAME}}}}}]]
 
    | {{#ifexist: Image:{{{image|{{{name|{{PAGENAME}}}}}.png}}}
 
        | [[Image: {{{image|{{{name|{{PAGENAME}}}}}.png}}}|center|100px|A {{{name|{{PAGENAME}}}}}]]
 
        | [[Image: {{{image|{{{name|{{PAGENAME}}}}}.jpg}}}|center|100px|A {{{name|{{PAGENAME}}}}}]] [[Category:Needs image]]
 
    }}
 
 
}}
 
}}
 
|-
 
|-
Line 26: Line 21:
 
|-
 
|-
 
|
 
|
{{{god}}}
+
Only a Priest of {{{god}}} can cast this spell
 
|}
 
|}
[[Category:Spells]]
+
<!-- the following will place the page in Spells category only if in the main namespace -->
 +
{{#ifeq: {{FULLPAGENAME}} | {{PAGENAME}} | [[Category:Spells]]| }}
 
</includeonly>
 
</includeonly>
  
Line 36: Line 32:
 
<pre>
 
<pre>
 
{{Spell
 
{{Spell
 +
|image=filename
 
|faith=10
 
|faith=10
 
|favor=10
 
|favor=10
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 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]]
[[Category:Babel/S]]
 
  
 
</noinclude>
 
</noinclude>

Latest revision as of 12: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.