Template:Spell: Difference between revisions

Template page
Moving CSS to a separate page.
Tag: wikieditor
mNo edit summary
Tag: wikieditor
Line 1: Line 1:
<noinclude>==Usage==
<noinclude>{{Spell/doc}}</noinclude>
<code><nowiki>{{Spell</nowiki></code><br>
<includeonly>{{
<code><nowiki>|name=</nowiki></code><br>
<code><nowiki>|level=</nowiki></code><br>
<code><nowiki>|themes=</nowiki></code><br>
<code><nowiki>|domains=</nowiki></code><br>
<code><nowiki>|cast=</nowiki></code><br>
<code><nowiki>|range=</nowiki></code><br>
<code><nowiki>|components=</nowiki></code><br>
<code><nowiki>|duration=</nowiki></code><br>
<code><nowiki>|area=</nowiki></code><br>
<code><nowiki>}}</nowiki></code>
 
==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:''' <code><nowiki>|name=Spell Name</nowiki></code>
----
Cantrips count as level 0:
::<code><nowiki>|level=0</nowiki></code><br>
----
To set the theme(s) of the spell, write the theme name in lowercase and a space between each.
::<code><nowiki>|themes=arcane divine occult primal</nowiki></code>
----
To set the domain(s) of the spell, write the [[Domain]] name in lowercase and a space between each.
::<code><nowiki>|domains=earth elementus</nowiki></code>
----
The cast parameter auto formats if the following values are applied:
{|
|
::<code><nowiki>|cast=full</nowiki></code>
::<code><nowiki>|cast=standard</nowiki></code>
::<code><nowiki>|cast=minor</nowiki></code>
::<code><nowiki>|cast=quick</nowiki></code>
::<code><nowiki>|cast=reaction</nowiki></code>
|
::<code><nowiki>|cast=full action</nowiki></code>
::<code><nowiki>|cast=standard action</nowiki></code>
::<code><nowiki>|cast=minor action</nowiki></code>
::<code><nowiki>|cast=quick action</nowiki></code>
::&nbsp;
|}
 
==Example==
'''''NEED UPDATE'''''
 
The following spells URL would be: https://rp.klanen.org/wiki/kfp/Hail_of_Blades
 
::<code><nowiki>{{Spell</nowiki></code><br>
::<code><nowiki>|name=</nowiki>Hail of Blades</code><br>
::<code><nowiki>|level=</nowiki>1</code><br>
::<code><nowiki>|arcane=</nowiki>1</code><br>
::<code><nowiki>|divine=</nowiki>1</code><br>
::<code><nowiki>|domain=</nowiki>Metal</code><br>
::<code><nowiki>|cast=</nowiki>standard</code><br>
::<code><nowiki>|range=</nowiki>20 meter</code><br>
::<code><nowiki>|components=</nowiki>V, S, M</code><br>
::<code><nowiki>|duration=</nowiki>Instantaneous</code><br>
::<code><nowiki>|area=</nowiki>Cylinder, 2 meter radius, 14 meter high</code><br>
::<code><nowiki>}}</nowiki></code>
 
==Template Components==
::[[:Template:SpellTableHeader]]
::[[:Template:SpellTableFooter]]
::[[:Template:SpellTableRow]]
::[[:Template:SpellTableRowColStart]]
 
</noinclude><includeonly>{{
     #ifeq: {{PAGENAME}} | {{{name}}}  
     #ifeq: {{PAGENAME}} | {{{name}}}  
     | {{Spell/CSS}}[[Category:Spell]]
     | {{Spell/CSS}}[[Category:Spell]]

Revision as of 12:41, 28 April 2023

Usage

{{Spell
|name=
|level=
|themes=
|domains=
|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

To set the theme(s) of the spell, write the theme name in lowercase and a space between each.

|themes=arcane divine occult primal

To set the domain(s) of the spell, write the Domain name in lowercase and a space between each.

|domains=earth elementus

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

|cast=full
|cast=standard
|cast=major
|cast=minor
|cast=quick
|cast=reaction
|cast=full action
|cast=standard action
|cast=major action
|cast=minor action
|cast=quick action
 

Example

NEED UPDATE

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
}}