Template:Spell table: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 5: Line 5:
! Class
! Class
! class="unsortable" | Effect</includeonly><noinclude>
! class="unsortable" | Effect</includeonly><noinclude>
'''St''' is short of '''S'''pell '''T'''able.
'''Spell table''' template is for creating a table settings and heading row for [[Template: Spell table row|Spell table row template]]. Using template <nowiki>{{Spell table}}</nowiki> together with <nowiki>{{Spell table row}}</nowiki> and its variables creates a table.


==Use==
{{Spell table}}
It's for [[List of spells]] table use '''only''', to start a table heading code. Used with [[template:Sr]].
{{Spell table row|Fly|5|Air Magic|Enables hero to fly "over" adventure map.}}
 
|}
=====Code=====
<pre>{{St}}
{{Sr|'Spell name'|'level'|'class'|'effect'}}
<...>
{{Sr|'Spell name'|'level'|'class'|'effect'}}
|}</pre>
 
==Example==
<pre>{{St}}
{{Sr|Armageddon|4|Fire magic|All troops take damage}}
|}</pre>
gives:


{|class="wikitable sortable"
Spell table template is main use is in [[List of spells]] page.
!width=230px|Name!!width=60px|Level!!width=80px|Class!!class="unsortable" width=230px|Effect
{{Sr|Armageddon|4|Fire magic|All troops take damage}}
|}


== See also ==
== See also ==

Revision as of 05:08, 22 October 2015

Spell table template is for creating a table settings and heading row for Spell table row template. Using template {{Spell table}} together with {{Spell table row}} and its variables creates a table.

Name Level Class Effect
 Fly 5 Air Magic Enables hero to fly "over" adventure map.

Spell table template is main use is in List of spells page.

See also