No edit summary |
No edit summary |
||
Line 101: | Line 101: | ||
---- | ---- | ||
{{SpellTableHeader}} | {{SpellTableHeader}} | ||
{{#if:{{{level|}}}|{{SpellTableRow|'''''Level'''''|{{#switch: {{{level}}} | {{#if:{{{level|}}}|{{SpellTableRow|'''''Level'''''|{{ | ||
| 0 = Cantrip | #switch: {{{level}}} | ||
| 1 = 1st | | 0 = Cantrip | ||
| 2 = 2nd | | 1 = 1st | ||
| 3 = 3rd | | 2 = 2nd | ||
| #default = {{{level | | 3 = 3rd | ||
| #default = {{{level}}}th | |||
}} }}|}}{{#ifexpr: 0 + {{#if:{{{arcane|}}}|{{{arcane|}}}|0}} + {{#if:{{{divine|}}}|{{{divine|}}}|0}} + {{#if:{{{primal|}}}|{{{primal|}}}|0}} + {{#if:{{{occult|}}}|{{{occult|}}}|0}} > 0|{{!}}-{{SpellTableRowColStart|'''Theme(s)'''}}|}} | |||
{{#if:{{{arcane|}}}|{{#tag:div|Arcane}}}}{{#if:{{{divine|}}}|{{#tag:div|Divine}}}}{{#if:{{{primal|}}}|{{#tag:div|Primal}}}}{{#if:{{{occult|}}}|{{#tag:div|Occult}}}} | {{#if:{{{arcane|}}}|{{#tag:div|Arcane}}}}{{#if:{{{divine|}}}|{{#tag:div|Divine}}}}{{#if:{{{primal|}}}|{{#tag:div|Primal}}}}{{#if:{{{occult|}}}|{{#tag:div|Occult}}}} | ||
{{#if:{{{domain|}}}|{{SpellTableRow|'''Domain'''|{{{domain|}}} }}|}} | {{#if:{{{domain|}}}|{{SpellTableRow|'''Domain'''|{{{domain|}}} }}|}} |
Revision as of 16:05, 2 February 2023
Usage
{{Spell
|name=
|level=
|domain=
|cast=
|range=
|components=
|duration=
|area=
}}
Important
The name parameter must be the same as the page name (underscore excluded, space works):
- Spell Page URL: https://rp.klanen.org/wiki/kfp/Spell_Name
- Template Parameter:
|name=Spell Name
Cantrips count as level 0:
|level=0
The following parameters may be added to set the theme(s) of the spell.
|arcane=1
|divine=1
|primal=1
|occult=1
Example
The following spells URL would be: https://rp.klanen.org/wiki/kfp/Hail_of_Blades
{{Spell
|name=Hail of Blades
|level=1
|arcane=1
|divine=1
|domain=Metal
|cast=1 action
|range=60 feet
|components=V, S, M
|duration=Instantaneous
|area=5-foot-radius, 40 feet high
}}
Template Components