Difference between revisions of "Template:Spell"

From Wurmpedia
Jump to navigation Jump to search
(New page: <includeonly> {| style="float:right; margin:1em; width:200px;" cellpadding="3" cellspacing="1" border="1" {{PAGENAME}} {{{faith}}} {{{favor}}} {{{difficulty}}} {{{target}}} {{{god}}} |} [[...)
 
(updated usage)
 
(31 intermediate revisions by 7 users not shown)
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
{| style="float:right; margin:1em; width:200px;" cellpadding="3" cellspacing="1" border="1"
+
{| class="wikitable" style="float:right; margin:1em; width:200px;" cellpadding="3" cellspacing="1" border="1"
{{PAGENAME}}
+
|+ style="font-weight: bold" | {{PAGENAME}}
{{{faith}}}
+
|-
{{{favor}}}
+
| {{#if: {{{image|}}}  |
{{{difficulty}}}
+
[[Image: {{{image|{{{name|{{PAGENAME}}}}}.jpg}}}|center|250px|A {{{name|{{PAGENAME}}}}}]] |
{{{target}}}
+
[[Image: No_logo.png|center|250px|{{{name|{{PAGENAME}}}}}]]
{{{god}}}
+
}}
 +
|-
 +
! style="background-color:#4B3E30; color:#FFFFFF;" | Stats
 +
|-
 +
|
 +
'''Faith''': {{{faith}}}<br>
 +
'''Favor''': {{{favor}}}<br>
 +
'''Difficulty''': {{{difficulty}}}<br>
 +
'''Target''': {{{target}}}<br>
 +
'''Casting time''': {{{castingtime}}} seconds <br>
 +
{{#if: {{{cooldowntime|}}} | '''Cooldown time''': {{{cooldowntime}}} }}
 +
|-
 +
! style="background-color:#4B3E30; color:#FFFFFF;" | 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>
  
  
 +
<noinclude>
 +
Usage:
 +
<pre>
 +
{{Spell
 +
|image=filename
 +
|faith=10
 +
|favor=10
 +
|difficulty=20
 +
|target=Tile, Creature, Item
 +
|castingtime=4
 +
|cooldowntime=30 minutes
 +
|god=[[Fo]], [[Vynora]], [[Magranon]], [[Libila]]
 +
}}
 +
</pre>
  
<noinclude>
+
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 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.