Jump to content
Toggle menu
  • 3.1K articles
  • 4.4K files
  • 21 users
  • 91.5K edits
Ashenzari's Archive
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Spell info: Difference between revisions

Template page
Hordes (talk | contribs)
a hobbled up combo of attack spell and spell info, for formatting purposes -- im sure theres a better way
Predelnik (talk | contribs)
No edit summary
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{ {{{|safesubst:}}}#invoke:Spell|spell_info|{{{1|}}}}}
<includeonly>{{ {{{|safesubst:}}}#invoke:Spell|spell_info|{{{1|}}}}}</includeonly><noinclude>This template will generate an infobox followed by a description and quote(s) for a given spell. For example:
{| class="prettytable" style="border:none; margin:0; padding:0; width:20em;"
<nowiki>{{spell info|Fireball}}</nowiki>
! colspan="2" style="font-size:larger;" | Spell Details
gives you:
|-
{{Suppress categories|{{spell info|Fireball}}}}
! align="left" | Damage Formula
 
| {{{formula|}}}
If the spell name is omitted, the page's title is used.
|-
 
! align="left" | Max Damage
[[Category:Templates]]</noinclude>
| {{{maxdmg|}}}
|-
! align="left" | [[Spell power | Max Power]]
| {{{maxsp|}}}
|-
! align="left" | Range
| {{{range|}}}
|-
! align="left" | Targeting
|{{{target|}}}
|-
! align="left" | To-hit
|{{{tohit|}}}
|-
! align="left" | Special
| {{{special|}}}
|}</div><!--{{#set:power cap={{{power_cap|{{{maxsp}}} }}} }}{{#set:hit type={{{hit_type}}}}}{{#set:hit adder={{{hit_adder}}}}}{{#set:hit num={{{hit_num}}}}}{{#set:hit denom={{{hit_denom}}}}}{{#set:damage calculator={{{dam_calculator}}}}}{{#set:damage numdice={{{dam_numdice}}}}}{{#set:damage adder={{{dam_adder}}}}}{{#set:damage num={{{dam_num}}}}}{{#set:damage denom={{{dam_denom}}}}}[[Category:Attack spells]]
<noinclude>[[Category:Templates]]</noinclude>

Latest revision as of 14:12, 23 May 2026

This template will generate an infobox followed by a description and quote(s) for a given spell. For example:

{{spell info|Fireball}}

gives you:

 Fireball
Level 5
School1 Conjuration
School2 Fire
Source(s) Book of the Dragon
Book of the Spheres
Casting noise 5
Spell noise 15
Power Cap 200
Range 5
Flags Dir or target, Needs tracer
Hurls an explosive ball of fire.

If the spell name is omitted, the page's title is used.