Difference between revisions of "Template:5e Spell"

From Dungeons and Dragons Wiki
Jump to: navigation, search
m
m
 
(40 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
{| class="dragon monstats" cellspacing="0" cellpadding="0"
+
<span style="display:block; border:solid 1px goldenrod; border-radius:0.5em 0.5em 0px 0px; background:burlywood; text-align:center; padding:auot; width:50vw; font-size:1em;">'''[[5e]] {{SRD5|Spell}}'''</span>
|+ style="font-size: larger; white-space: nowrap;" | {{{name}}}
+
<span style="font-size: 1.5em; white-space: nowrap;">'''{{{name}}}'''</span> {{#if: {{{refs|}}}|&ensp;{{{refs}}}|}}{{#if: {{{pointer|}}}|&ensp;([[pointer]])|}}{{#if:{{{sorttext|}}}|{{DEFAULTSORTKEY:{{{sorttext}}} 5e}}|{{DEFAULTSORTKEY:{{PAGENAME}} 5e}} }}[[Category:5e]][[Category:Spell]][[Category:5e Spells]]<br />
|-
+
''{{#switch: {{{level}}}
| colspan="2" | ''{{#switch: {{{level}}}
+
   |0 = {{ucfirst:{{SRD5|{{{school}}}}}}} {{srd5lc|Cantrip}} [[Category:5e Cantrips]]
   |0 = {{ucfirst:{{{school}}}}} cantrip[[Level::Cantrip| ]]
+
   |1 = 1st-level {{srd5lc|{{{school}}}}} [[Category:5e Spells 1st Level]]
   |1 = 1st-level {{lc:{{{school}}}}}[[Level::1st| ]]
+
   |2 = 2nd-level {{srd5lc|{{{school}}}}} [[Category:5e Spells 2nd Level]]
   |2 = 2nd-level {{lc:{{{school}}}}}[[Level::2nd| ]]
+
   |3 = 3rd-level {{srd5lc|{{{school}}}}} [[Category:5e Spells 3rd Level]]
   |3 = 3rd-level {{lc:{{{school}}}}}[[Level::3rd| ]]
+
  |Cantrip = {{ucfirst: {{SRD5|{{{school}}}}}}} {{srd5lc|Cantrip}} 
   |{{{level}}}th-level {{lc:{{{school}}}}}[[Level::{{{level}}}th| ]]
+
   |{{{level}}}th-level {{srd5lc|{{{school}}}}} [[Category:5e Spells {{{level}}}th Level]]  
   }}{{#ifeq: {{{ritual|}}}|ritual|&nbsp;(ritual)|}}''
+
   }}{{#if: {{{ritual|}}}|&nbsp;({{srd5lc|Ritual}}){{#set: Ritual=true}}|}}''{{#if: {{{school|}}}|[[Category:5e {{{school}}} Spells]]| }}<br />
|-
+
<span style="display:inline-block; width:6rem; text-align:right; font-weight:bold;">Casting&nbsp;Time:</span> {{#switch: {{{casttime}}}
! Casting Time:
+
   |action = 1 {{srd5lc|Action}}[[Action Type::Action| ]]
| {{#switch: {{{casttime}}}
+
   |reaction = 1 {{srd5lc|Reaction}}[[Action Type::Reaction| ]][[Category:5e Reaction Spells]]
   |action = 1 action[[Action Type::Action| ]]
+
   |bonus = 1 {{srd5lc|Bonus Action}}[[Action Type::Bonus Action| ]][[Category:5e Bonus Action Spells]]
   |reaction = 1 reaction[[Action Type::Reaction| ]]
+
   |minute = 1 {{srd5lc|Minute}}[[Action Type::Other| ]]
   |bonus = 1 bonus action[[Action Type::Bonus Action| ]]
 
   |minute = 1 minute[[Action Type::Other| ]]
 
 
   |hour = 1 hour[[Action Type::Other| ]]
 
   |hour = 1 hour[[Action Type::Other| ]]
   |{{{casttime}}}[[Action Type::Other| ]][[Cast Time::{{{casttime}}}| ]]
+
   |{{{casttime}}}[[Action Type::Other| ]]
  }}  
+
  }}{{#if: {{{casttext|}}}|, {{{casttext}}}| }}<br />
|-
+
<span style="display:inline-block; width:6rem; text-align:right; font-weight:bold;">Range:</span> {{{range}}}[[Range::{{{range}}}| ]]<br />
! Range:
+
<span style="display:inline-block; width:6rem; text-align:right; font-weight:bold;">Components:</span> {{#arraymap: {{{comp}}}|, |x|[[Component::x]]}}{{#if: {{{material|}}}|&nbsp;({{{material}}}){{#if: {{{vcomp|}}}|{{#set:Valuable Components=True}}[[Category:5e Valuable Component Spells]]|}}{{#if: {{{ccomp|}}}|{{#set:Consumable Components=True}}[[Category:5e Consumable Component Spells]]|}}|<!--endif material-->}}<br />
| {{{range}}}[[Range::{{{range}}}| ]]
+
<span style="display:inline-block; width:6rem; text-align:right; font-weight:bold;">Duration:</span> {{#if: {{{concentration|}}}|[[SRD5:Spellcasting#Concentration|Concentration]], {{{dur}}}[[Category:5e Concentration Spells]]|{{#ifeq: {{{dur}}}|i|Instantaneous|{{{dur}}} | }} | }}<br />
|-
+
<span style="display:inline-block; width:6rem; text-align:right; font-weight:bold;">Casters:</span> {{#if: {{{casters|}}}|{{5e Casters|{{{casters}}}}}|}}{{#if: {{{racespell|}}}|<br />
! Components:
+
<span style="display:inline-block; width:6rem; text-align:right; font-weight:bold;">Racial Spell of:</span> {{{racespell}}}{{#set: Racial Spell={{{racespell}}}}}[[Category:5e Racial Spells]]|}}{{#if: {{{scales|}}}|<br />
| {{#arraymap: {{{comp}}}|, |x|[[Component::x]]}}{{#if: {{{material|}}}|&nbsp;({{{material}}})|}}
+
<span style="display:inline-block; width:6rem; text-align:right; font-weight:bold;">Scales:</span> {{{scales}}}[[Category:5e Scalable Spells]]{{#set: Scalable=true}}|}}<br />
|-
+
<!--  Non-switch Semantic Bits Here
! Duration:
+
-->{{#if: {{{summary|}}} | [[Summary::{{{summary}}}<br /><br />| ]] }}<!-- Set Properties
| {{{dur}}}
+
-->[[Level::{{#ifeq: {{{level|}}} |0|Cantrip|{{{level}}}}}| ]] [[School::{{ucfirst:{{{school|}}}}}| ]]
|}<!--  Non-switch Semantic Bits Here
+
{{#if: {{{pointer|}}}|'''Unofficial Description:''' {{{summary|}}}|<!--not pointer-->{{#if: {{{fluff|}}}|''{{{fluff}}}''<br /><br />|}}
-->{{#if: {{{summary|}}} | [[Summary::{{{summary}}}| ]] }}<!--
+
{{#if: {{{rules|}}}|{{{rules}}}<br /><br />|}}
-->[[Level::{{#ifeq: {{{level|}}} |0|Cantrip|{{{level}}}}}{{#if: {{{ritual|}}}|&nbsp;(ritual)|}}| ]]<!--
+
{{#if: {{{higherlevels|}}}|'''''At Higher Levels.''''' {{{higherlevels|}}}[[Category:5e Scalable Spells]]{{#set: Scalable=true}}|}}|}}<!--endif pointer-->{{#if: {{{canon|}}}|[[Category:5e Canon Spells]]{{#set: Canon=true}}|}}{{#if: {{{pointer|}}}|{{#set: Pointer=True}}[[Category:5e Pointers]]|}}
-->[[School::{{ucfirst:{{{school|}}}}}]]<!--
 
--><!--
 
--><!--
 
-->{{#if: {{{fluff|}}}|&nbsp;
 
 
 
''{{{fluff}}}''|}}{{#if: {{{rules|}}}|&nbsp;
 
 
 
{{{rules}}}|}}{{#if: {{{higherlevels|}}}|&nbsp;
 
 
 
'''''At Higher Levels.''''' {{{higherlevels|}}}|}}
 
 
</includeonly><noinclude>
 
</includeonly><noinclude>
 
<!-- Tech note:
 
<!-- Tech note:

Latest revision as of 17:18, 26 March 2024

Template documentation (for the above template, sometimes hidden or invisible)

Usage[edit]

Template for 5th edition spells.

Syntax[edit]

{{5e Spell
|name=
|sorttext=
|refs= <!--references-->
|level= <!--0 for cantrip-->
|school= <!-- Conjuration, Evocation, etc. -->
|ritual= <!-- y if ritual-->
|casttime= <!-- action, bonus, reaction, minute, hour, {freeform} -->
|casttext= <!-- text after casting time, ex. reaction condition -->
|range= <!-- 60 feet -->
|comp= <!-- V, S, M -->
|material= <!--{freeform} diamond worth 50gp-->
|concentration= <!--y or blank-->
|dur= <!-- duration i=Instantaneous, else 1 round, 1 hour, etc.-->
|summary= <!-- summary of spell -->
|fluff= <!-- if spell has fluff-text -->
|rules= <!-- text of spell mechanics -->
|higherlevels= <!-- blank or description of being cast at higher levels-->
|casters= <!-- list of classes that cast this spell -->
}}

Add'l Optional Entries[edit]

|vcomp= <!-- blank or true. valuable component. material has gp value? -->
|ccomp= <!-- blank or true. comsumable component. material consumed in casting? -->
|canon= <!-- blank or ture. true of published by WotC -->
|pointer= <!--blank, used only by Template:5e Spell Pointer-->
|racespell=
|scales= <!--blank, used only by Template:5e Spell Pointer-->

Example[edit]

{{5e Spell
|name=foo
|sorttext=
|refs=<ref name="fgtn.78">{{Cite Pub|Foo's Guide to Nothing|pages=78}} Licensed: [[Public Domain]].</ref>
|level=0<!--0 for cantrip-->
|school=Abjuration <!-- Conjuration, Evocation, etc. -->
|ritual=  <!-- y if ritual-->
|casttime=action<!-- action, bonus, reaction, minute, hour, {freeform} -->
|casttext= <!-- text after casting time, ex. reaction condition -->
|range=Touch<!-- 60 feet -->
|comp=V, S, M<!-- V, S, M -->
|material=A forked stick<!--{freeform} diamond worth 50gp-->
|concentration=y <!--y or blank-->
|dur=up to 1 {{srd5lc|Minute}}<!-- duration Instantaneous, 1 round, 1 hour, etc.-->
|summary= foo produces foo effect<!-- summary of spell -->
|fluff= You wave your hands in the air spouting gibberish<!-- if spell has fluff-text -->
|rules= You make an unarmed melee attack. If successful the target takes d6 psychic damage.<!-- text of spell mechanics -->
|higherlevels=This spell's damage increases at 5th (2d6)<!-- blank or description of being cast at higher levels-->
|casters=Bard, Sorcerer <!-- list of classes that cast this spell -->
}}

produces:


5e Spell foo[1]
Abjuration cantrip
Casting Time: 1 action
Range: Touch
Components: V, S, M (A forked stick)
Duration: Concentration, up to 1 minute
Casters: Bard, Sorcerer

You wave your hands in the air spouting gibberish

You make an unarmed melee attack. If successful the target takes d6 psychic damage.

At Higher Levels. This spell's damage increases at 5th (2d6)


Visit Template:5e Spell/doc to edit this text! (How does this work?)