Template:5e Spell: Difference between revisions

From Rlyehwiki
Jump to navigation Jump to search
(Created page with "<noinclude> {{#cargo_declare: _table = 5e_Spell |Sort_Text = String Mandatory |Page_Name=Page |Spell_Name=String |Ritual=Boolean |Action_Type=String |Spell_Range=String |Compo...")
 
No edit summary
Line 19: Line 19:
}}</noinclude><includeonly>
}}</noinclude><includeonly>
{| class="dragon monstats" cellspacing="0" cellpadding="0"
{| class="dragon monstats" cellspacing="0" cellpadding="0"
|+ style="font-size: larger; white-space: nowrap;" | {{{name}}}{{#if:{{{sorttext|}}}|{{DEFAULTSORTKEY:{{{sorttext}}} 5e}}{{#cargo_store: _table = 5e_Spell|Sort_Text = {{{sorttext}}} 5e}}|{{DEFAULTSORTKEY:{{PAGENAME}} 5e}}{{#cargo_store: _table = 5e_Spell|Sort_Text={{PAGENAME}} 5e}} }}[[Category:5e]][[Category:DnD Spells]][[Category:5e Spells]]
|+ style="font-size: larger; white-space: nowrap;" | {{{name}}}{{#if:{{{sorttext|}}}|{{DEFAULTSORTKEY:{{{sorttext}}} 5e}}<!--{{#cargo_store: _table = 5e_Spell|Sort_Text = {{{sorttext}}} 5e}}-->|{{DEFAULTSORTKEY:{{PAGENAME}} 5e}}<!--{{#cargo_store: _table = 5e_Spell|Sort_Text={{PAGENAME}} 5e}}--> }}[[Category:5e]][[Category:DnD Spells]][[Category:5e Spells]]
|-
|-
| colspan="2" | ''{{#switch: {{{level}}}
| colspan="2" | ''{{#switch: {{{level}}}
Line 28: Line 28:
   |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}})<!--{{#cargo_store: _table = 5e_Spell|Ritual=1}}-->[[Ritual::true| ]]|}}''{{#if: {{{school|}}}|[[Category:5e {{{school}}} Spells]]| }}
|-
|-
!align="left" valign="top"|Casting&nbsp;Time:
!align="left" valign="top"|Casting&nbsp;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| ]]
   |reaction = 1 {{srd5lc|Reaction}}{{#cargo_store: _table = 5e_Spell|Action_Type=Reaction}}[[Action Type::Reaction| ]]
   |reaction = 1 {{srd5lc|Reaction}}<!--{{#cargo_store: _table = 5e_Spell|Action_Type=Reaction}}-->[[Action Type::Reaction| ]]
   |bonus = 1 {{srd5lc|Bonus Action}}{{#cargo_store: _table = 5e_Spell|Action_Type=Bonus Action}}[[Action Type::Bonus Action| ]]
   |bonus = 1 {{srd5lc|Bonus Action}}<!--{{#cargo_store: _table = 5e_Spell|Action_Type=Bonus Action}}-->[[Action Type::Bonus Action| ]]
   |minute = 1 {{srd5lc|Minute}}{{#cargo_store: _table = 5e_Spell|Action_Type=Other}}[[Action Type::Other| ]]
   |minute = 1 {{srd5lc|Minute}}<!--{{#cargo_store: _table = 5e_Spell|Action_Type=Other}}-->[[Action Type::Other| ]]
   |hour = 1 hour{{#cargo_store: _table = 5e_Spell|Action_Type=Action}}[[Action Type::Other| ]]
   |hour = 1 hour<!--{{#cargo_store: _table = 5e_Spell|Action_Type=Other}}-->[[Action Type::Other| ]]
   |{{{casttime}}}{{#cargo_store: _table = 5e_Spell|Action_Type=Action}}[[Action Type::Other| ]]
   |{{{casttime}}}<!--{{#cargo_store: _table = 5e_Spell|Action_Type=Action}}-->[[Action Type::Other| ]]
   }}{{#if: {{{casttext|}}}|, {{{casttext}}}| }}
   }}{{#if: {{{casttext|}}}|, {{{casttext}}}| }}
|-
|-
!style="text-align:left;"|Range:
!style="text-align:left;"|Range:
| {{{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;"|Components:
!style="text-align:left;"|Components:
| {{{comp}}}<!--{{#arraymap: {{{comp}}}|, |x|{{#cargo_store: _table = 5e_Spell|Component={{{comp}}}}}[[Component::x| ]]}}-->{{#if: {{{material|}}}|&nbsp;({{{material}}}){{#if: {{{vcomp|}}}|{{#cargo_store: _table = 5e_Spell|Valuable_Component=1}}[[Valuable Components::True| ]][[Category:5e Valuable Component Spells]]|}}{{#if: {{{ccomp|}}}|{{#cargo_store: _table = 5e_Spell|Consumable_Component=1}}[[Consumable Components::True| ]][[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;"|Duration:
!style="text-align:left;"|Duration:
Line 52: Line 52:
|{{#if: {{{casters|}}}|{{5e Casters|{{{casters}}}}}|}}
|{{#if: {{{casters|}}}|{{5e Casters|{{{casters}}}}}|}}
|}<!--  Non-switch Semantic Bits Here
|}<!--  Non-switch Semantic Bits Here
-->{{#if: {{{summary|}}} | {{#cargo_store: _table = 5e_Spell|Summary={{{summary}}}}}[[Summary::{{{summary}}}| ]] }}<!-- Set Properties
-->{{#if: {{{summary|}}} |[[Summary::{{{summary}}}| ]] }}<!-- Set Properties
-->{{#cargo_store: _table = 5e_Spell|Level={{#ifeq: {{{level|}}}|0|Cantrip|{{{level}}}}}}}[[Level::{{#ifeq: {{{level|}}} |0|Cantrip|{{{level}}}}}| ]]{{#cargo_store: _table = 5e_Spell|School={{ucfirst:{{{school}}}}}}}[[School::{{ucfirst:{{{school|}}}}}| ]]
-->[[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}}}<br /><br />|}}
{{#if: {{{higherlevels|}}}|'''''At Higher Levels.''''' {{{higherlevels|}}}[[Category:5e Scalable Spells]]{{#cargo_store: _table = 5e_Spell|Scalable=1}}[[Scalable::true| ]]|}}{{#if: {{{canon|}}}|[[Category:5e Canon Spells]]{{#cargo_store: _table = 5e_Spell|Canon_Spell=1}}[[Canon::true| ]]|}}
{{#if: {{{higherlevels|}}}|'''''At Higher Levels.''''' {{{higherlevels|}}}[[Category:5e Scalable Spells]][[Scalable::true| ]]|}}{{#if: {{{canon|}}}|[[Category:5e Canon Spells]][[Canon::true| ]]|}}<!--
-- Cargo Store --
-->{{#cargo_store: _table = 5e_Spell
|Sort_Test={{#if: {{{sorttext|}}}|{{{sorttext}}}|{{PAGENAME}}}} 5e
|Page_Name={{FULLPAGENAME}}
|Spell_Name={{{name|}}}
|Ritual={{#if: {{{ritual|}}}|1}}
|Action_Type={{#switch: {{{casttime|}}}
  |action = Action
  |reaction = Reaction
  |bonus = Bonus Action
  |#default = {{{casttime|}}}
}}
|Spell_Range={{{range|}}}
|Component={{{comp|}}}
|Valuable_Component={{#if: {{{vcomp|}}}|1}}
|Consumable_Component={{#if: {{{ccomp|}}}|1}}
|Summary={{{summary|}}}
|Level={{#ifeq: {{{level|}}}|0|Cantrip|{{{level}}}}}
|School={{ucfirst:{{{school|}}}}}
|Scalable={{#if: {{{higherlevels|}}}|1}}
|Canon_Spell={{#if: {{{canon|}}}|1}}
|Casters={{{casters|}}}
}}
</includeonly><noinclude>
</includeonly><noinclude>
<!-- Tech note:
<!-- Tech note:

Revision as of 23:01, 18 February 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?)