Difference between revisions of "Template:Spell info"

From CrawlWiki
Jump to: navigation, search
(a hobbled up combo of attack spell and spell info, for formatting purposes -- im sure theres a better way)
(whoops, meant to make a new page)
 
(One intermediate revision by the same user 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|Agony}}</nowiki>
! colspan="2" style="font-size:larger;" | Spell Details
+
gives you:
|-
+
{{spell info|Agony}}
! 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 08:22, 22 March 2022

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

{{spell info|Agony}}

gives you: Agony

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