Template:Spell: Difference between revisions

Template page
No edit summary
No edit summary
Line 21: Line 21:
The following parameters may be added to set the theme(s) of the spell.
The following parameters may be added to set the theme(s) of the spell.
::<code><nowiki>|arcane=1</nowiki></code><br><code><nowiki>|divine=1</nowiki></code><br><code><nowiki>|primal=1</nowiki></code><br><code><nowiki>|occult=1</nowiki></code><br>
::<code><nowiki>|arcane=1</nowiki></code><br><code><nowiki>|divine=1</nowiki></code><br><code><nowiki>|primal=1</nowiki></code><br><code><nowiki>|occult=1</nowiki></code><br>
----
The cast parameter auto formats if the following values are applied:
::<code><nowiki>|cast=full</nowiki></code><br>
::<code><nowiki>|cast=standard</nowiki></code><br>
::<code><nowiki>|cast=minor</nowiki></code><br>
::<code><nowiki>|cast=quick</nowiki></code><br>


==Example==
==Example==
Line 105: Line 111:
{{#if:{{{cast|}}}|{{SpellTableRow|'''Casting Time'''|{{
{{#if:{{{cast|}}}|{{SpellTableRow|'''Casting Time'''|{{
         #switch:{{{cast|}}}  
         #switch:{{{cast|}}}  
         | Full Action | Full action | full action = [[Full Action]] (4 [[AP]])
         | Full Action | Full action | full action | Full | full = [[Full Action]] (4 [[AP]])
         | Standard Action | Standard action | standard action = [[Standard Action]] (3 [[AP]])
         | Standard Action | Standard action | standard action | Standard | standard = [[Standard Action]] (3 [[AP]])
         | Minor Action | Minor action | minor action = [[Minor Action]] (2 [[AP]])
         | Minor Action | Minor action | minor action | Minor | minor = [[Minor Action]] (2 [[AP]])
         | Quick Action | Quick action | quick action = [[Quick Action]] (1 [[AP]])
         | Quick Action | Quick action | quick action | Quick | quick = [[Quick Action]] (1 [[AP]])
         | Reaction | reaction = [[Reaction]]
         | Reaction | reaction = [[Reaction]]
         | #default = {{{cast|}}}
         | #default = {{{cast|}}}

Revision as of 13:22, 16 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

The cast parameter auto formats if the following values are applied:

|cast=full
|cast=standard
|cast=minor
|cast=quick

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=standard action
|range=20 meter
|components=V, S, M
|duration=Instantaneous
|area=Cylinder, 2 meter radius, 14 meter high
}}

Template Components

Template:SpellTableHeader
Template:SpellTableFooter
Template:SpellTableRow
Template:SpellTableRowColStart