No edit summary Tag: wikieditor |
No edit summary Tag: wikieditor |
||
Line 120: | Line 120: | ||
{{#ifexpr: 0 + {{#if:{{{arcane|}}}|{{{arcane|}}}|0}} + {{#if:{{{divine|}}}|{{{divine|}}}|0}} + {{#if:{{{primal|}}}|{{{primal|}}}|0}} + {{#if:{{{occult|}}}|{{{occult|}}}|0}} > 0|{{!}}-}} | {{#ifexpr: 0 + {{#if:{{{arcane|}}}|{{{arcane|}}}|0}} + {{#if:{{{divine|}}}|{{{divine|}}}|0}} + {{#if:{{{primal|}}}|{{{primal|}}}|0}} + {{#if:{{{occult|}}}|{{{occult|}}}|0}} > 0|{{!}}-}} | ||
{{#if:{{{domains|}}}|{{SpellTableRow|'''Domain(s)'''| | {{#if:{{{domains|}}}|{{SpellTableRow|'''Domain(s)'''| | ||
{{#ifexpr:{{#count:{{{domains}}}|air}} > 0|{{#tag:div|Air}}}}{{#ifexpr:{{#count:{{{domains}}}|inertia}} > 0|{{#tag:div|Inertia}}}}{{#ifexpr:{{#count:{{{domains}}}|thunder}} > 0|{{#tag:div|Thunder}}}} | |||
{{#ifexpr:{{#count:{{{domains}}}|mist}} > 0|{{#tag:div|Mist}}}} {{#ifexpr:{{#count:{{{domains}}}|fog}} > 0|{{#tag:div|Fog}}}} {{#ifexpr:{{#count:{{{domains}}}|storm}} > 0|{{#tag:div|Storm}}}} | |||
{{#ifexpr:{{#count:{{{domains}}}|water}} > 0|{{#tag:div|Water}}}}{{#ifexpr:{{#count:{{{domains}}}|ice}} > 0|{{#tag:div|Ice}}}} {{#ifexpr:{{#count:{{{domains}}}|steam}} > 0|{{#tag:div|Steam}}}} | |||
{{#ifexpr:{{#count:{{{domains}}}|mud}} > 0|{{#tag:div|Mud}}}} {{#ifexpr:{{#count:{{{domains}}}|crystal}} > 0|{{#tag:div|Crystal}}}} {{#ifexpr:{{#count:{{{domains}}}|acid}} > 0|{{#tag:div|Acid}}}} | |||
{{#ifexpr:{{#count:{{{domains}}}|earth}} > 0|{{#tag:div|Earth}}}} {{#ifexpr:{{#count:{{{domains}}}|metal}} > 0|{{#tag:div|Metal}}}} {{#ifexpr:{{#count:{{{domains}}}|magma}} > 0|{{#tag:div|Magma}}}} | |||
{{#ifexpr:{{#count:{{{domains}}}|fire}} > 0|{{#tag:div|Fire}}}} {{#ifexpr:{{#count:{{{domains}}}|ash}} > 0|{{#tag:div|ash}}}} {{#ifexpr:{{#count:{{{domains}}}|lightning}} > 0|{{#tag:div|Lightning}}}} | |||
{{#ifexpr:{{#count:{{{domains}}}|spirit}} > 0|{{#tag:div|Spirit}}}} {{#ifexpr:{{#count:{{{domains}}}|dream}} > 0|{{#tag:div|Dream}}}} {{#ifexpr:{{#count:{{{domains}}}|ambition}} > 0|{{#tag:div|Ambition}}}} | |||
{{#ifexpr:{{#count:{{{domains}}}|soul}} > 0|{{#tag:div|Soul}}}} | {{#ifexpr:{{#count:{{{domains}}}|soul}} > 0|{{#tag:div|Soul}}}} | ||
{{#ifexpr:{{#count:{{{domains}}}|tranquility}} > 0|{{#tag:div|Tranquility}}}} | {{#ifexpr:{{#count:{{{domains}}}|tranquility}} > 0|{{#tag:div|Tranquility}}}} |
Revision as of 14:58, 17 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:
|
|
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
|range=20 meter
|components=V, S, M
|duration=Instantaneous
|area=Cylinder, 2 meter radius, 14 meter high
}}
Template Components