Template:5e Spell Test: Difference between revisions

From Rlyehwiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 15: Line 15:
|Scalable=Boolean
|Scalable=Boolean
|Canon_Spell=Boolean
|Canon_Spell=Boolean
}}<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 = 5eMonsterTest|Sort_Text = {{{sorttext}}} 5e}}|{{DEFAULTSORTKEY:{{PAGENAME}} 5e}}{{#cargo_store: _table = 5eMonsterTest|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 = 5eSpellTest|Sort_Text = {{{sorttext}}} 5e}}|{{DEFAULTSORTKEY:{{PAGENAME}} 5e}}{{#cargo_store: _table = 5eSpellTest|Sort_Text={{PAGENAME}} 5e}} }}[[Category:5e]][[Category:DnD Spells]][[Category:5e Spells]]
|-
|-
| colspan="2" | ''{{#switch: {{{level}}}
| colspan="2" | ''{{#switch: {{{level}}}
Line 26: Line 26:
   |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 = 5eMonsterTest|Ritual=1}}[[Ritual::true| ]]|}}''{{#if: {{{school|}}}|[[Category:5e {{{school}}} Spells]]| }}
   }}{{#if: {{{ritual|}}}|&nbsp;({{srd5lc|Ritual}}){{#cargo_store: _table = 5eSpellTest|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 = 5eMonsterTest|Action_Type=Action}}[[Action Type::Action| ]]
   |action = 1 {{srd5lc|Action}}{{#cargo_store: _table = 5eSpellTest|Action_Type=Action}}[[Action Type::Action| ]]
   |reaction = 1 {{srd5lc|Reaction}}{{#cargo_store: _table = 5eMonsterTest|Action_Type=Reaction}}[[Action Type::Reaction| ]]
   |reaction = 1 {{srd5lc|Reaction}}{{#cargo_store: _table = 5eSpellTest|Action_Type=Reaction}}[[Action Type::Reaction| ]]
   |bonus = 1 {{srd5lc|Bonus Action}}{{#cargo_store: _table = 5eMonsterTest|Action_Type=Bonus Action}}[[Action Type::Bonus Action| ]]
   |bonus = 1 {{srd5lc|Bonus Action}}{{#cargo_store: _table = 5eSpellTest|Action_Type=Bonus Action}}[[Action Type::Bonus Action| ]]
   |minute = 1 {{srd5lc|Minute}}{{#cargo_store: _table = 5eMonsterTest|Action_Type=Other}}[[Action Type::Other| ]]
   |minute = 1 {{srd5lc|Minute}}{{#cargo_store: _table = 5eSpellTest|Action_Type=Other}}[[Action Type::Other| ]]
   |hour = 1 hour{{#cargo_store: _table = 5eMonsterTest|Action_Type=Action}}[[Action Type::Other| ]]
   |hour = 1 hour{{#cargo_store: _table = 5eSpellTest|Action_Type=Action}}[[Action Type::Other| ]]
   |{{{casttime}}}{{#cargo_store: _table = 5eMonsterTest|Action_Type=Action}}[[Action Type::Other| ]]
   |{{{casttime}}}{{#cargo_store: _table = 5eSpellTest|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 = 5eMonsterTest|Spell_Range={{{range}}}}}[[Range::{{{range}}}| ]]
| {{{range}}}{{#cargo_store: _table = 5eSpellTest|Spell_Range={{{range}}}}}[[Range::{{{range}}}| ]]
|-
|-
!style="text-align:left;"|Components:
!style="text-align:left;"|Components:
| {{{comp}}}<!--{{#arraymap: {{{comp}}}|, |x|{{#cargo_store: _table = 5eMonsterTest|Component={{{comp}}}}}[[Component::x| ]]}}-->{{#if: {{{material|}}}|&nbsp;({{{material}}}){{#if: {{{vcomp|}}}|{{#cargo_store: _table = 5eMonsterTest|Valuable_Component=1}}[[Valuable Components::True| ]][[Category:5e Valuable Component Spells]]|}}{{#if: {{{ccomp|}}}|{{#cargo_store: _table = 5eMonsterTest|Consumable_Component=1}}[[Consumable Components::True| ]][[Category:5e Consumable Component Spells]]|}}|<!--endif material-->}}
| {{{comp}}}<!--{{#arraymap: {{{comp}}}|, |x|{{#cargo_store: _table = 5eSpellTest|Component={{{comp}}}}}[[Component::x| ]]}}-->{{#if: {{{material|}}}|&nbsp;({{{material}}}){{#if: {{{vcomp|}}}|{{#cargo_store: _table = 5eSpellTest|Valuable_Component=1}}[[Valuable Components::True| ]][[Category:5e Valuable Component Spells]]|}}{{#if: {{{ccomp|}}}|{{#cargo_store: _table = 5eSpellTest|Consumable_Component=1}}[[Consumable Components::True| ]][[Category:5e Consumable Component Spells]]|}}|<!--endif material-->}}
|-
|-
!style="text-align:left;"|Duration:
!style="text-align:left;"|Duration:
Line 50: Line 50:
|{{#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 = 5eMonsterTest|Summary={{{summary}}}}}[[Summary::{{{summary}}}| ]] }}<!-- Set Properties
-->{{#if: {{{summary|}}} | {{#cargo_store: _table = 5eSpellTest|Summary={{{summary}}}}}[[Summary::{{{summary}}}| ]] }}<!-- Set Properties
-->{{#cargo_store: _table = 5eMonsterTest|Level={{#ifeq: {{{level|}}} |0|Cantrip|{{{level}}}}}}}[[Level::{{#ifeq: {{{level|}}} |0|Cantrip|{{{level}}}}}| ]] {{#ifeq: {{{level|}}} |0|Cantrip|{{{level}}}}}}}{{#ifeq: {{{level|}}} |0|Cantrip|{{{level}}}}}}}{{#cargo_store: _table = 5eMonsterTest|School={{ucfirst:{{{school}}}}}}}[[School::{{ucfirst:{{{school|}}}}}| ]]
-->{{#cargo_store: _table = 5eSpellTest|Level={{#ifeq: {{{level|}}}|0|Cantrip|{{{level}}}}}}}[[Level::{{#ifeq: {{{level|}}} |0|Cantrip|{{{level}}}}}| ]]{{#cargo_store: _table = 5eSpellTest|School={{ucfirst:{{{school}}}}}}}[[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 = 5eMonsterTest|Scalable=1}}[[Scalable::true| ]]|}}{{#if: {{{canon|}}}|[[Category:5e Canon Spells]]{{#cargo_store: _table = 5eMonsterTest|Canon_Spell=1}}[[Canon::true| ]]|}}
{{#if: {{{higherlevels|}}}|'''''At Higher Levels.''''' {{{higherlevels|}}}[[Category:5e Scalable Spells]]{{#cargo_store: _table = 5eSpellTest|Scalable=1}}[[Scalable::true| ]]|}}{{#if: {{{canon|}}}|[[Category:5e Canon Spells]]{{#cargo_store: _table = 5eSpellTest|Canon_Spell=1}}[[Canon::true| ]]|}}
</includeonly><noinclude>
</includeonly><noinclude>
<!-- Tech note:
<!-- Tech note:

Revision as of 10:38, 26 January 2020

This template defines the table "5eSpellTest". This table has not been created yet.

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

Usage

Template for 5th edition spells.

Syntax

{{5e Spell Test
|name=
|sorttext=
|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 ture. true of published by WotC -->

Example

{{5e Spell Test
|name=foo
|sorttext=
|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.

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