Template:5e Spell: Difference between revisions

From Rlyehwiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(22 intermediate revisions by the same user not shown)
Line 3: Line 3:
_table = 5e_Spell
_table = 5e_Spell
|Sort_Text = String
|Sort_Text = String
|Page_Name=Page (unique)
|Spell_Name=String
|Spell_Name=String
|Ritual=Boolean
|Ritual=Boolean
|Concentration=Boolean
|Action_Type=String
|Action_Type=String
|Spell_Range=String
|Spell_Range=String
Line 17: Line 17:
|Canon_Spell=Boolean
|Canon_Spell=Boolean
|Casters=List (, ) of String
|Casters=List (, ) of String
|Domain_Spell=List (, ) of String
|Race_Spell=List (, ) of String
}}</noinclude><includeonly>
}}</noinclude><includeonly>
{| cellspacing="0" cellpadding="0"
<span style="display:block; border:solid 1px slateblue; border-radius:0.5em 0.5em 0px 0px; background:LightSkyBlue; text-align:center; padding:auot; width:50vw; font-size:1em;">'''[[5e]] {{SRD5|Spell}}'''</span>
|+ style="font-size: larger; white-space: nowrap; text-align:left;" | {{{name}}}{{#if:{{{sorttext|}}}|{{DEFAULTSORTKEY:{{{sorttext}}} 5e}}|{{DEFAULTSORTKEY:{{PAGENAME}} 5e}} }}[[Category:5e]][[Category:DnD Spells]][[Category:5e Spells]]
<span style="display:inline; font-size: 1.4em; text-align:left;">'''{{{name}}}'''</span>{{#if: {{{refs|}}}|&nbsp;{{{refs}}}|}}{{#if: {{{pointer|}}}|&nbsp;([[pointer]])|}}{{#if:{{{sorttext|}}}|{{DEFAULTSORTKEY:{{{sorttext}}} 5e}}|{{DEFAULTSORTKEY:{{PAGENAME}} 5e}} }}[[Category:5e]][[Category:DnD Spells]][[Category:5e Spells]]<br />
|-
''{{#switch: {{{level}}}
| colspan="2" | ''{{#switch: {{{level}}}
   |0 = {{ucfirst:{{SRD5|{{{school}}}}}}} {{srd5lc|Cantrip}} [[Category:5e Cantrips]]
   |0 = {{ucfirst:{{SRD5|{{{school}}}}}}} {{srd5lc|Cantrip}} [[Category:5e Cantrips]]
   |1 = 1st-level {{srd5lc|{{{school}}}}} [[Category:5e Spells 1st Level]]
   |1 = 1st-level {{srd5lc|{{{school}}}}} [[Category:5e Spells 1st Level]]
Line 28: Line 29:
   |Cantrip = {{ucfirst: {{SRD5|{{{school}}}}}}} {{srd5lc|Cantrip}}   
   |Cantrip = {{ucfirst: {{SRD5|{{{school}}}}}}} {{srd5lc|Cantrip}}   
   |{{{level}}}th-level {{srd5lc|{{{school}}}}} [[Category:5e Spells {{{level}}}th Level]]  
   |{{{level}}}th-level {{srd5lc|{{{school}}}}} [[Category:5e Spells {{{level}}}th Level]]  
   }}{{#if: {{{ritual|}}}|&nbsp;({{srd5lc|Ritual}})<!--{{#cargo_store: _table = 5e_Spell|Ritual=1}}-->[[Ritual::true| ]]|}}''{{#if: {{{school|}}}|[[Category:5e {{{school}}} Spells]]| }}
   }}{{#if: {{{ritual|}}}|&nbsp;({{srd5lc|Ritual}})|}}''{{#if: {{{school|}}}|[[Category:5e {{{school}}} Spells]]| }}<br />
|-
<span style="display:inline-block; width:7rem; text-align:left; background:WhiteSmoke;">Casting&nbsp;Time:</span> {{#switch: {{{casttime}}}
! style="text-align:left; background:Azure;" valign="top"|Casting&nbsp;Time:
   |action = 1 {{srd5lc|Action}}
| {{#switch: {{{casttime}}}
   |reaction = 1 {{srd5lc|Reaction}}
   |action = 1 {{srd5lc|Action}}<!--{{#cargo_store: _table = 5e_Spell|Action_Type=Action}}-->[[Action Type::Action| ]]
   |bonus = 1 {{srd5lc|Bonus Action}}
   |reaction = 1 {{srd5lc|Reaction}}<!--{{#cargo_store: _table = 5e_Spell|Action_Type=Reaction}}-->[[Action Type::Reaction| ]]
   |minute = 1 {{srd5lc|Minute}}
   |bonus = 1 {{srd5lc|Bonus Action}}<!--{{#cargo_store: _table = 5e_Spell|Action_Type=Bonus Action}}-->[[Action Type::Bonus Action| ]]
   |hour = 1 hour
   |minute = 1 {{srd5lc|Minute}}<!--{{#cargo_store: _table = 5e_Spell|Action_Type=Other}}-->[[Action Type::Other| ]]
   |{{{casttime}}}
   |hour = 1 hour<!--{{#cargo_store: _table = 5e_Spell|Action_Type=Other}}-->[[Action Type::Other| ]]
}}{{#if: {{{casttext|}}}|, {{{casttext}}}| }}<br />
   |{{{casttime}}}<!--{{#cargo_store: _table = 5e_Spell|Action_Type=Action}}-->[[Action Type::Other| ]]
<span style="display:inline-block; width:7rem; text-align:left; background:WhiteSmoke;">Range:&nbsp;</span> {{{range}}}<br />
  }}{{#if: {{{casttext|}}}|, {{{casttext}}}| }}
<span style="display:inline-block; width:7rem; text-align:left; background:WhiteSmoke;">Components:</span> {{{comp}}}{{#if: {{{material|}}}|&nbsp;({{{material}}}){{#if: {{{vcomp|}}}|[[Category:5e Valuable Component Spells]]|}}{{#if: {{{ccomp|}}}|[[Category:5e Consumable Component Spells]]|}}|<!--endif material-->}}<br />
|-
<span style="display:inline-block; width:7rem; text-align:left; background:WhiteSmoke;">Duration:</span> {{#if: {{{concentration|}}}|{{SRD5|Concentration}}, {{{dur}}}[[Category:5e Concentration Spells]]|{{#ifeq: {{{dur}}}|i|Instantaneous|{{{dur}}} | }} | }}<br />
!style="text-align:left; background:Azure;"|Range:
<span style="display:inline-block; width:7rem; text-align:left; background:WhiteSmoke;">Scales:</span> {{#if: {{{scales|}}}|True|{{#if: {{{higherlevels|}}}|Yes|No}}}}<br />
| {{{range}}}<!--{{#cargo_store: _table = 5e_Spell|Spell_Range={{{range}}}}}-->[[Range::{{{range}}}| ]]
<span style="display:inline-block; width:7rem; text-align:left; background:WhiteSmoke;">Casters:</span> {{#if: {{{casters|}}}|{{5e Casters|{{{casters}}}}}|}}{{#if: {{{domainspell|}}}|<br />
|-
<span style="display:inline-block; width:7rem; text-align:left; background:WhiteSmoke;">Domain Spell for:</span> {{5e Domain Spell Domains|{{{domainspell|}}}}}[[Category:5e Domain Spells]]|}}{{#if: {{{racespell|}}}|<br />
!style="text-align:left; background:Azure;"|Components:
<span style="display:inline-block; width:7rem; text-align:left; background:WhiteSmoke;">Racial Spell of:</span> {{5e Racial Spell Races|{{{racespell|}}}}}[[Category:5e Racial Spells]]|}}<br />
| {{{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:
| {{#if: {{{concentration|}}}|[[SRD5:Spellcasting#Concentration|Concentration]], {{{dur}}}[[Category:5e Concentration Spells]]|{{#ifeq: {{{dur}}}|i|Instantaneous|{{{dur}}} | }} | }}
|-
!style="text-align:left; background:Azure;"|Casters:  
|{{#if: {{{casters|}}}|{{5e Casters|{{{casters}}}}}|}}
|}<!--  Non-switch Semantic Bits Here
-->{{#if: {{{summary|}}} |[[Summary::{{{summary}}}| ]] }}<!-- Set Properties
-->[[Level::{{#ifeq: {{{level|}}} |0|Cantrip|{{{level}}}}}| ]][[School::{{ucfirst:{{{school|}}}}}| ]]
{{#if: {{{fluff|}}}|''{{{fluff}}}''<br /><br />|}}
{{#if: {{{fluff|}}}|''{{{fluff}}}''<br /><br />|}}
{{#if: {{{rules|}}}|{{{rules}}}<br /><br />|}}
{{#if: {{{rules|}}}|{{{rules}}}|{{#if: {{{summary|}}}|'''Unofficial Description:''' {{{summary}}}<br /><br />|}}|}}
{{#if: {{{higherlevels|}}}|'''''At Higher Levels.''''' {{{higherlevels|}}}[[Category:5e Scalable Spells]][[Scalable::true| ]]|}}{{#if: {{{canon|}}}|[[Category:5e Canon Spells]][[Canon::true| ]]|}}<!--
{{#if: {{{higherlevels|}}}|<br /><br />'''''At Higher Levels.''''' {{{higherlevels|}}}[[Category:5e Scalable Spells]]|}}{{#if: {{{canon|}}}|[[Category:5e Canon Spells]]|}}{{#if: {{{domainspell|}}}|[[Category:5e Domain Spells]]|}}<!--
-- Cargo Store --
-- Cargo Store --
-->{{#if: {{{nodb|}}}|<!--skip-->|{{#cargo_store: _table = 5e_Spell
-->{{#if: {{{nodb|}}}|<!--skip-->|{{#cargo_store: _table = 5e_Spell
|Sort_Text={{#if: {{{sorttext|}}}|{{{sorttext}}}|{{PAGENAME}}}} 5e
|Sort_Text={{#if: {{{sorttext|}}}|{{{sorttext}}} 5e|{{PAGENAME}}}} 5e
|Page_Name={{FULLPAGENAME}}
|Spell_Name={{{name|}}}
|Spell_Name={{{name|}}}
|Ritual={{#if: {{{ritual|}}}|1}}
|Ritual={{#if: {{{ritual|}}}|1}}
|Concentration={{#if: {{{concentration|}}}|1}}
|Action_Type={{#switch: {{{casttime|}}}
|Action_Type={{#switch: {{{casttime|}}}
   |action = Action
   |action = Action
Line 76: Line 67:
|Level={{#ifeq: {{{level|}}}|0|Cantrip|{{{level}}}}}
|Level={{#ifeq: {{{level|}}}|0|Cantrip|{{{level}}}}}
|School={{ucfirst:{{{school|}}}}}
|School={{ucfirst:{{{school|}}}}}
|Scalable={{#if: {{{higherlevels|}}}|1}}
|Scalable={{#if: {{{scales|}}}|1|{{#if: {{{higherlevels|}}}|1}}}}
|Canon_Spell={{#if: {{{canon|}}}|1}}
|Canon_Spell={{#if: {{{canon|}}}|1}}
|Domain_Spell={{#if: {{{domainspell|}}}|{{{domainspell}}}|}}
|Casters={{{casters|}}}
|Casters={{{casters|}}}
}}}}
}}}}

Latest revision as of 10:32, 26 March 2024

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

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

Usage[edit]

Template for 5th edition spells.

Syntax[edit]

{{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[edit]

|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[edit]

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


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
Scales: No
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?)
  1. Foo's Guide to Nothing p. 103. Licensed: CC-BY-SA.