Template:5e24 Spell: Difference between revisions

From Rlyehwiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 29: Line 29:
<div style="display:block; margin-right:201px;">
<div style="display:block; margin-right:201px;">
<span style="display:inline; font-size: 1.4em; text-align:left;">'''{{{name}}}'''</span>{{#if: {{{refs|}}}|&ensp;{{{refs}}}|}} ({{5e24|Spell}}){{#if: {{{pointer|}}}|&ensp;([[pointer]])|}}<br />
<span style="display:inline; font-size: 1.4em; text-align:left;">'''{{{name}}}'''</span>{{#if: {{{refs|}}}|&ensp;{{{refs}}}|}} ({{5e24|Spell}}){{#if: {{{pointer|}}}|&ensp;([[pointer]])|}}<br />
<span style="display:inline-block; width:7rem; text-align:left; background:AliceBlue;">Level:</span> {{#switch: {{{level}}}
<span style="display:inline-block; width:7rem; text-align:left; vertical-align:top; background:AliceBlue;">Level:</span><span style="display:inline-block; width:calc(100% - 7rem);">&nbsp;{{#switch: {{{level}}}
   |0 = 0-level ({{5e24lc|Cantrip}})
   |0 = 0-level ({{5e24lc|Cantrip}})
   |1 = 1st-level  
   |1 = 1st-level  
Line 36: Line 36:
   |Cantrip = 0-level ({{5e24lc|Cantrip}})   
   |Cantrip = 0-level ({{5e24lc|Cantrip}})   
   |{{{level}}}th-level spell
   |{{{level}}}th-level spell
   }}''<br />
   }}''</span><br />
<span style="display:inline-block; width:7rem; text-align:left; background:AliceBlue;">Casters:</span> {{5e24 Caster List|{{{casters}}}|nodb={{{nodb|}}}}}<br />
<span style="display:inline-block; width:7rem; text-align:left; vertical-align:top; background:AliceBlue;">Casters:</span><span style="display:inline-block; width:calc(100% - 7rem);">&nbsp;{{5e24 Caster List|{{{casters}}}|nodb={{{nodb|}}}}}</span><br />
<span style="display:inline-block; width:7rem; text-align:left; background:AliceBlue;">School:</span> {{5e24|{{{school}}}}}<br />
<span style="display:inline-block; width:7rem; text-align:left; vertical-align:top; background:AliceBlue;">School:</span><span style="display:inline-block; width:calc(100% - 7rem);">&nbsp;{{5e24|{{{school}}}}}</span><br />
<span style="display:inline-block; width:7rem; text-align:left; background:AliceBlue;">Casting&nbsp;Time:</span> <span style="display:inline-block; max-width:50vw; vertical-align:top;">{{#switch: {{{casttime}}}
<span style="display:inline-block; width:7rem; text-align:left; vertical-align:top; background:AliceBlue;">Casting&nbsp;Time:</span><span style="display:inline-block; width:calc(100% - 7rem);">&nbsp;{{#switch: {{{casttime}}}
   |action = {{5e24|Action}}
   |action = {{5e24|Action}}
   |reaction = {{5e24|Reaction}}
   |reaction = {{5e24|Reaction}}
Line 47: Line 47:
   |{{{casttime}}}
   |{{{casttime}}}
}}{{#if: {{{casttext|}}}|, {{{casttext}}}|}}{{#if: {{{ritual|}}}|&nbsp;({{5e24|Ritual}})|}}</span><br />
}}{{#if: {{{casttext|}}}|, {{{casttext}}}|}}{{#if: {{{ritual|}}}|&nbsp;({{5e24|Ritual}})|}}</span><br />
<span style="display:inline-block; width:7rem; text-align:left; background:AliceBlue;">Range{{#if: {{{area|}}}|&nbsp;(Area)|}}:&nbsp;</span> {{{range}}}{{#if: {{{area|}}}|&nbsp;({{{area}}})|}}<br />
<span style="display:inline-block; width:7rem; text-align:left; vertical-align:top; background:AliceBlue;">Range{{#if: {{{area|}}}|&nbsp;(Area)|}}:&nbsp;</span><span style="display:inline-block; width:calc(100% - 7rem);">&nbsp;{{{range}}}{{#if: {{{area|}}}|&nbsp;({{{area}}})|}}</span><br />
<span style="display:inline-block; width:7rem; text-align:left; background:AliceBlue;">Components:</span> <span style="display:inline-block; max-width:50vw; vertical-align:top;">{{{comp}}}{{#if: {{{material|}}}|&nbsp;({{{material}}})|<!--endif material-->}}</span><br />
<span style="display:inline-block; width:7rem; text-align:left; vertical-align:top; background:AliceBlue;">Components:</span><span style="display:inline-block; width:calc(100% - 7rem);">&nbsp;{{{comp}}}{{#if: {{{material|}}}|&nbsp;({{{material}}})|<!--endif material-->}}</span><br />
<span style="display:inline-block; width:7rem; text-align:left; background:AliceBlue;">Duration:</span> {{#if: {{{concentration|}}}|{{5e24|Concentration}}, {{{dur}}}|{{#ifeq: {{{dur}}}|i|Instantaneous|{{{dur}}} | }} | }}<br />
<span style="display:inline-block; width:7rem; text-align:left; vertical-align:top; background:AliceBlue;">Duration:</span><span style="display:inline-block; width:calc(100% - 7rem);">&nbsp;{{#if: {{{concentration|}}}|{{5e24|Concentration}}, {{{dur}}}|{{#ifeq: {{{dur}}}|i|Instantaneous|{{{dur}}} | }} | }}</span><br />
<span style="display:inline-block; width:7rem; text-align:left; background:AliceBlue; border-bottom:solid 1px steelblue;">Scales:</span> {{#if: {{{scales|}}}|True|{{#if: {{{higherlevels|}}}|True|Fasle}}}}<!--
<span style="display:inline-block; width:7rem; text-align:left; vertical-align:top; background:AliceBlue; border-bottom:solid 1px steelblue;">Scales:</span><span style="display:inline-block; width:calc(100% - 7rem);">&nbsp;{{#if: {{{scales|}}}|True|{{#if: {{{higherlevels|}}}|True|Fasle}}}}</span><!--
--extras--
--extras--
-->{{#if: {{{offlistcaster|}}}|<br />
-->{{#if: {{{offlistcaster|}}}|<br />
<span style="display:inline-block; width:7rem; vertical-align:top; text-align:left; background:Lavender;">Other Casters:</span><span style="display:inline-block; width:calc(100% - 7rem); background:ghostwhite;">&nbsp;{{#arraymap: {{{offlistcaster}}}|,|xolc|{{5e24|xolc}}|,&ensp;}}</span>|}}{{#if: {{{attack|}}}|<br />
<span style="display:inline-block; width:7rem; vertical-align:top; text-align:left; background:Lavender;">Other Casters:</span><span style="display:inline-block; width:calc(100% - 7rem); background:ghostwhite;">&nbsp;{{#arraymap: {{{offlistcaster}}}|,|xolc|{{5e24|xolc}}|,&ensp;}}</span>|}}{{#if: {{{attack|}}}|<br />
<span style="display:inline-block; width:7rem; text-align:left; background:Lavender;">{{5e24|Attack}}:</span><span style="display:inline-block; width:calc(100% - 7rem); background:ghostwhite;">&nbsp;{{#arraymap: {{{attack}}}|, |xAttack|{{5e24|xAttack}}|,&ensp;}}</span>|}}{{#if: {{{save|}}}|<br />
<span style="display:inline-block; width:7rem; text-align:left; vertical-align:top; background:Lavender;">{{5e24|Attack}}:</span><span style="display:inline-block; width:calc(100% - 7rem); background:ghostwhite;">&nbsp;{{#arraymap: {{{attack}}}|, |xAttack|{{5e24|xAttack}}|,&ensp;}}</span>|}}{{#if: {{{save|}}}|<br />
<span style="display:inline-block; width:7rem; text-align:left; background:Lavender;">{{5e24|Save}}:</span><span style="display:inline-block; width:calc(100% - 7rem); background:ghostwhite;">&nbsp;{{#arraymap: {{{save}}}|, |xsave|{{5e24|xsave}}|,&ensp;}}</span>|}}{{#if: {{{damage|}}}|<br />
<span style="display:inline-block; width:7rem; text-align:left; vertical-align:top; background:Lavender;">{{5e24|Save}}:</span><span style="display:inline-block; width:calc(100% - 7rem); background:ghostwhite;">&nbsp;{{#arraymap: {{{save}}}|, |xsave|{{5e24|xsave}}|,&ensp;}}</span>|}}{{#if: {{{damage|}}}|<br />
<span style="display:inline-block; width:7rem; text-align:left; background:Lavender;">{{5e24|Damage}}:</span><span style="display:inline-block; width:calc(100% - 7rem); background:ghostwhite;">&nbsp;{{#arraymap: {{{damage}}}|, |xDamage|{{5e24|xDamage}}|,&ensp;}}</span>|}}{{#if: {{{effect|}}}|<br />
<span style="display:inline-block; width:7rem; text-align:left; vertical-align:top; background:Lavender;">{{5e24|Damage}}:</span><span style="display:inline-block; width:calc(100% - 7rem); background:ghostwhite;">&nbsp;{{#arraymap: {{{damage}}}|, |xDamage|{{5e24|xDamage}}|,&ensp;}}</span>|}}{{#if: {{{effect|}}}|<br />
<span style="display:inline-block; width:7rem; text-align:left; background:Lavender;">Effect:</span><span style="display:inline-block; width:calc(100% - 7rem); background:ghostwhite;">&nbsp;{{#arraymap: {{{effect}}}|, |xEffect|{{5e24|xEffect}}|,&ensp;}}</span>|}}
<span style="display:inline-block; width:7rem; text-align:left; vertical-align:top; background:Lavender;">Effect:</span><span style="display:inline-block; width:calc(100% - 7rem); background:ghostwhite;">&nbsp;{{#arraymap: {{{effect}}}|, |xEffect|{{5e24|xEffect}}|,&ensp;}}</span>|}}
<!--
<!--
<br />
<br />

Revision as of 17:28, 13 October 2025

This template defines the table "5e24_Spell". View table.

 Template    

Usage

Template for 5th edition (2024) spells.

Syntax

{{5e24 Spell
|name=
|sorttext=
|refs=
|level= <!--0 for cantrip-->
|casters= <!--Class that can cast-->
|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 -->
|area= <!-- 30 foot cube-->
|comp= <!-- V, S, M -->
|material= <!--{freeform} diamond worth 50gp-->
|concentration= <!--y or blank-->
|dur= <!-- duration i=Instantaneous, else 1 round, 1 hour, etc.-->
|attack=
|save=
|damage=
|effect=
|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-->
}}

Add'l Optional Entries

|area= <!--blank or area-->
|vcomp= <!-- blank or true. valuable component. material has gp value? -->
|ccomp= <!-- blank or true. comsumable component. material consumed in casting? -->
|offlistcaster= <!--list of classes/subclasses that can cast this spell outside their normal spell group-->
|pointer= <!--blank or true>
|speciespell= <!--blank, links to race/subrace-->

Example

{{5e24 Spell
|name=foo
|sorttext=
|refs=<ref name="foo1">{{Cite Pub|Foo's Guide to Nothing|pages=103}} Licensed: [[CC-BY-SA]]</ref>
|level=0<!--0 for cantrip-->
|casters=Bard, Sorcerer
|school=Abjuration 
|ritual=  <!-- y if ritual-->
|casttime=action
|casttext= <!-- text after casting time, ex. reaction condition -->
|range=Touch
|area=
|comp=V, S, M 
|material=A forked stick 
|concentration=y 
|dur=up to 1 {{5e24lc|Minute}} 
|attack=Melee
|save=
|damage=Psychic
|effect=
|summary=foo produces foo effect
|fluff= You wave your hands in the air spouting gibberish
|rules= You make an unarmed melee attack. If successful the target takes d6 psychic damage.
|higherlevels=This spell's damage increases by 1d6 when you reach level 5 (2d6), 11 (3d6), and 17 (4d6).
|offlistcaster=Bar, Nilbog 
|subclassspell=
}}

Produces

foo[1] (Spell)
Level: 0-level (cantrip)
Casters: Bard, Sorcerer
School: Abjuration
Casting Time: Action
Range:  Touch
Components: V, S, M (A forked stick)
Duration: Concentration, up to 1 minute
Scales: True
Other Casters: Bar, Nilbog
Attack: Melee
Damage: Psychic

You wave your hands in the air spouting gibberish

You make an Melee attack or unarmed strike. If successful the target takes d6 Psychic damage.

Cantrip Upgrade. This spell's damage increases by 1d6 when you reach level 5 (2d6), 11 (3d6), and 17 (4d6).

  1. Foo's Guide to Nothing p. 103. Licensed: CC-BY-SA