Template:5e Spell: Difference between revisions

From Rlyehwiki
Jump to navigation Jump to search
m (use unofficial description if summary, but no rules.)
mNo edit summary
Line 31: Line 31:
   }}{{#if: {{{ritual|}}}| ({{srd5lc|Ritual}})|}}''{{#if: {{{school|}}}|[[Category:5e {{{school}}} Spells]]| }}
   }}{{#if: {{{ritual|}}}| ({{srd5lc|Ritual}})|}}''{{#if: {{{school|}}}|[[Category:5e {{{school}}} Spells]]| }}
|-
|-
! style="text-align:left; background:Azure;" valign="top"|Casting Time: 
! style="text-align:left; background:WhiteSmoke;" valign="top"|Casting Time: 
| {{#switch: {{{casttime}}}
| {{#switch: {{{casttime}}}
   |action = 1 {{srd5lc|Action}}<!--{{#cargo_store: _table = 5e_Spell|Action_Type=Action}}-->[[Action Type::Action| ]]
   |action = 1 {{srd5lc|Action}}<!--{{#cargo_store: _table = 5e_Spell|Action_Type=Action}}-->[[Action Type::Action| ]]
Line 41: Line 41:
   }}{{#if: {{{casttext|}}}|, {{{casttext}}}| }}
   }}{{#if: {{{casttext|}}}|, {{{casttext}}}| }}
|-
|-
!style="text-align:left; background:Azure;"|Range:&nbsp;
!style="text-align:left; background:WhiteSmoke;"|Range:&nbsp;
| {{{range}}}<!--{{#cargo_store: _table = 5e_Spell|Spell_Range={{{range}}}}}-->[[Range::{{{range}}}| ]]
| {{{range}}}<!--{{#cargo_store: _table = 5e_Spell|Spell_Range={{{range}}}}}-->[[Range::{{{range}}}| ]]
|-
|-
!style="text-align:left; background:Azure;"|Components:&nbsp;
!style="text-align:left; background:WhiteSmoke;"|Components:&nbsp;
| {{{comp}}}{{#if: {{{material|}}}|&nbsp;({{{material}}}){{#if: {{{vcomp|}}}|[[Category:5e Valuable Component Spells]]|}}{{#if: {{{ccomp|}}}|[[Category:5e Consumable Component Spells]]|}}|<!--endif material-->}}
| {{{comp}}}{{#if: {{{material|}}}|&nbsp;({{{material}}}){{#if: {{{vcomp|}}}|[[Category:5e Valuable Component Spells]]|}}{{#if: {{{ccomp|}}}|[[Category:5e Consumable Component Spells]]|}}|<!--endif material-->}}
|-
|-
!style="text-align:left; background:Azure;"|Duration:&nbsp;
!style="text-align:left; background:WhiteSmoke;"|Duration:&nbsp;
| {{#if: {{{concentration|}}}|[[SRD5:Spellcasting#Concentration|Concentration]], {{{dur}}}[[Category:5e Concentration Spells]]|{{#ifeq: {{{dur}}}|i|Instantaneous|{{{dur}}} | }} | }}
| {{#if: {{{concentration|}}}|[[SRD5:Spellcasting#Concentration|Concentration]], {{{dur}}}[[Category:5e Concentration Spells]]|{{#ifeq: {{{dur}}}|i|Instantaneous|{{{dur}}} | }} | }}
|-
|-
!style="text-align:left; background:Azure;"|Casters:&nbsp;  
!style="text-align:left; background:WhiteSmoke;"|Casters:&nbsp;  
|{{#if: {{{casters|}}}|{{5e Casters|{{{casters}}}}}|}}
|{{#if: {{{casters|}}}|{{5e Casters|{{{casters}}}}}|}}
|}
|}

Revision as of 13:20, 25 September 2020

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

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

Usage

Template for 5th edition spells.

Syntax

{{5e Spell
|name=
|sorttext=
|refs=
|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

|vcomp= <!-- blank or true. valuable component. material has gp value? -->
|ccomp= <!-- blank or true. comsumable component. material consumed in casting? -->
|canon= <!-- blank or true. true of published by WotC -->
|domainspell= <!--blank, link to subclass-->
|racespell= <!--blank, links to race/subrace-->

Example

{{5e 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-->
|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:


foo
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.


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