Template:Spell table: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
(36 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly>{| cellpadding=0 cellspacing=0 class="sortable" style="background-color:#{{Teal 3}}; border: 1px solid black; text-align:left;"  
<includeonly>{| cellpadding=0 cellspacing=0 class="sortable" style="background-color:#{{Teal 3}}; color:saddlebrown; border:1px solid; border-color:rgba(0,0,0,0); text-align:left; width:650px"  
|- style="background-color:#{{Teal 1}}"
|- bgcolor={{Teal 1}} style="height: 25px;"
! Name
! style="padding-left:3px;" width=300px |Name
! Level
! width=50px  | Level
! Class
! width=50px  | Class
! class="unsortable" | Effect</includeonly><noinclude>
! width=250px 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|Summon Water Elemental|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's main use is in the [[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 ==

Latest revision as of 16:48, 25 June 2021

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
 Summon Water Elemental 5 Air Magic Enables hero to fly "over" adventure map.

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

See also[edit]