Jump to content
Toggle menu
  • 3.1K articles
  • 4.4K files
  • 18 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
imported>Ge0ff
m Fix a copy-paste
Hordes (talk | contribs)
a hobbled up combo of attack spell and spell info, for formatting purposes -- im sure theres a better way
Line 1: Line 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:
{{ {{{|safesubst:}}}#invoke:Spell|spell_info|{{{1|}}}}}
<nowiki>{{spell info|Agony}}</nowiki>
{| class="prettytable" style="border:none; margin:0; padding:0; width:20em;"
gives you:
! colspan="2" style="font-size:larger;" | Spell Details
{{spell info|Agony}}
|-
 
! align="left" | Damage Formula
If the spell name is omitted, the page's title is used.
| {{{formula|}}}
 
|-
[[Category:Templates]]</noinclude>
! align="left" | Max Damage
| {{{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>

Revision as of 06:21, 22 March 2022

Spell info

Spell Details
Damage Formula
Max Damage
Max Power
Range
Targeting
To-hit
Special