Template:Spell table row: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
(To another category)
No edit summary
 
(30 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly>|-
<includeonly>|- class='{{sourceToggle|{{{source}}}|{{{only}}}}}'
|{{Sn|{{{1}}}}}||align=center|{{{2}}}||[[{{{3}}}]]||{{{4}}}</includeonly><noinclude>
| style="padding-left: 5px; padding-right: 5px; border-top: 1px solid gray;"| {{Sn|{{{1}}}|spell_link={{{spell_link|{{{1}}}}}}}}
'''Sr''' is short of '''S'''pell '''R'''ow.
| align=center style="border-top: 1px solid gray;"|{{{2}}}
| style="padding-right: 20px; white-space: nowrap; border-top: 1px solid gray;" | {{{all_schools|[[School_of_{{{3}}}|{{{3}}}]]}}}
| class="unsortable" style="white-space: normal; font-size:90%; border-top: 1px solid gray;"  | {{{4}}}</includeonly><noinclude>


==Use==
'''Spell table row''' is a template to use together wit [[:Template:Spell table]]. It purpose is to show a spell image, name, class and effect in one row. The main use is in [[list of spells]] page.
It's for [[List of spells]] table use '''only''' to use with [[template:St]], to show spell image, name and all other info in table.


=====Variables=====
'''Variables:'''
1=spell name, 2=level, 3=class, 4=effect
# spell name
# level
# class
# effect
: all_schools


=====Code=====
<nowiki>{{Spell table}}
<pre>{{Sr|'Spell name'|'level'|'class'|'effect'}}</pre>
{{Spell table row|Fly|5|Air Magic|Enables hero to fly over adventure map}}</nowiki>, gives


==Example==
{{Spell table}}
<pre>{{St}}
{{Spell table row|Fly|5|Air Magic|Enables hero to fly over adventure map}}
{{Sr|Fly|5|Air magic|Hero fly}}</pre>
|}
gives:


{{St}}
== See also ==
|-
* [[:Template: Spell table]]
|[[Image:Fly.png‎|Fly|link=Fly]][[Fly]]||align=center|5||[[Air magic]]||Hero fly
|}


[[Category: Table templates|Spell row]]</noinclude>
[[Category: Table templates]]
__NOTOC__</noinclude>

Latest revision as of 17:06, 14 August 2024


Spell table row is a template to use together wit Template:Spell table. It purpose is to show a spell image, name, class and effect in one row. The main use is in list of spells page.

Variables:

  1. spell name
  2. level
  3. class
  4. effect
all_schools

{{Spell table}} {{Spell table row|Fly|5|Air Magic|Enables hero to fly over adventure map}}, gives

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

See also[edit | hide | hide all]