Template:SpellV1: Difference between revisions

Template page
No edit summary
No edit summary
Line 42: Line 42:
         | 2 = [[Category:2nd-Level_{{{theme}}}_Spell]]  
         | 2 = [[Category:2nd-Level_{{{theme}}}_Spell]]  
         | [[Category:{{{level}}}th-Level_{{{theme}}}_Spell]]  
         | [[Category:{{{level}}}th-Level_{{{theme}}}_Spell]]  
     }}{{#if:{{{domain|}}} | [[Category:{{{domain}}}]] | }}
     }}{{#if:{{{domain|}}} | [[Category:{{{domain}}}_Spell]] | }}
}}'''''{{#ifeq:{{{level}}}|0|{{{theme}}}<nowiki> </nowiki>|}}{{#switch:{{{level}}}|0 = Cantrip|1 = 1st-level|2 = 2nd-level|{{{level}}}th-level}}{{#ifeq:{{{level}}}|0||<nowiki> </nowiki>{{{theme}}} }}'''''
}}'''''{{#ifeq:{{{level}}}|0|{{{theme}}}<nowiki> </nowiki>|}}{{#switch:{{{level}}}|0 = Cantrip|1 = 1st-level|2 = 2nd-level|{{{level}}}th-level}}{{#ifeq:{{{level}}}|0||<nowiki> </nowiki>{{{theme}}} }}'''''
----
----
Line 48: Line 48:
{{#if:{{{cast|}}}|'''Casting Time''':<nowiki> </nowiki>{{{cast}}}|}}{{#if:{{{range|}}}|{{#tag:br}}|}}
{{#if:{{{cast|}}}|'''Casting Time''':<nowiki> </nowiki>{{{cast}}}|}}{{#if:{{{range|}}}|{{#tag:br}}|}}
{{#if:{{{range|}}}|'''Range''':<nowiki> </nowiki>{{{range}}}|}}{{#if:{{{components|}}}|{{#tag:br}}|}}
{{#if:{{{range|}}}|'''Range''':<nowiki> </nowiki>{{{range}}}|}}{{#if:{{{components|}}}|{{#tag:br}}|}}
{{#if:{{{components|}}}|'''[[Spell#Components|Components]]''':<nowiki> </nowiki>{{{components}}}|}}{{#if:{{{duration|}}}|{{#tag:br}}|}}
{{#if:{{{components|}}}|'''[[Component]]s''':<nowiki> </nowiki>{{{components}}}|}}{{#if:{{{duration|}}}|{{#tag:br}}|}}
{{#if:{{{duration|}}}|'''Duration''':<nowiki> </nowiki>{{{duration}}}|}}{{#if:{{{area|}}}|{{#tag:br}}|}}
{{#if:{{{duration|}}}|'''Duration''':<nowiki> </nowiki>{{{duration}}}|}}{{#if:{{{area|}}}|{{#tag:br}}|}}
{{#if:{{{area|}}}|'''Area''':<nowiki> </nowiki>{{{area}}}|}}
{{#if:{{{area|}}}|'''Area''':<nowiki> </nowiki>{{{area}}}|}}
----
----
</includeonly>
</includeonly>

Revision as of 15:37, 27 January 2023

Usage

{{Spell
|name=
|level=
|theme=
|domain=
|cast=
|range=
|components=
|duration=
|area=
}}

Example

{{Spell
|name=Lux <-Must be the same as the page name, else categorization wont work
|level=0 <-Cantrip
|theme=Divine
|domain=Light
|cast=1 action
|range=Touch
|components=V, S
|duration=10 minutes
}}