Template:5e Spell Test: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<includeonly> {| class="dragon monstats" cellspacing="0" cellpadding="0" |+ style="font-size: larger; white-space: nowrap;" | {{{name}}}{{#if:{{{sorttext|}}}|{{DEFAULTSORTKEY:...") |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <noinclude> | ||
{{#cargo_declare: | |||
_table = 5eSpellT | |||
|Sort_Text = String Mandatory Unique | |||
|Name=Page | |||
|Ritual=Boolean | |||
|Action_Type=String | |||
|Spell_Range=String | |||
|Component=List (, ) of String | |||
|Valuable_Component=Boolean | |||
|Consumable_Component=Boolean | |||
|Summary=Wikitext | |||
|Level=String (size=10;allowed values=Cantrip,1,2,3,4,5,6,7,8,9) | |||
|School=String (size=10;allowed values=Abjuration,Conjuration,Divination,Enchantment,Evocation,Illusion,Necromancy,Transmutation) | |||
|Scalable=Boolean | |||
|Canon_Spell=Boolean | |||
}}</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}}|{{DEFAULTSORTKEY:{{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 = 5eSpellT|Sort_Text = {{{sorttext}}} 5e}}|{{DEFAULTSORTKEY:{{PAGENAME}} 5e}}{{#cargo_store: _table = 5eSpellT|Sort_Text={{PAGENAME}} 5e}} }}[[Category:5e]][[Category:DnD Spells]][[Category:5e Spells]] | ||
|- | |- | ||
| colspan="2" | ''{{#switch: {{{level}}} | | colspan="2" | ''{{#switch: {{{level}}} | ||
Line 10: | 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|}}}| ({{srd5lc|Ritual}})[[Ritual::true| ]]|}}''{{#if: {{{school|}}}|[[Category:5e {{{school}}} Spells]]| }} | }}{{#if: {{{ritual|}}}| ({{srd5lc|Ritual}}){{#cargo_store: _table = 5eSpellT|Ritual=1}}[[Ritual::true| ]]|}}''{{#if: {{{school|}}}|[[Category:5e {{{school}}} Spells]]| }} | ||
|- | |- | ||
!align="left" valign="top"|Casting Time: | !align="left" valign="top"|Casting Time: | ||
| {{#switch: {{{casttime}}} | | {{#switch: {{{casttime}}} | ||
|action = 1 {{srd5lc|Action}}[[Action Type::Action| ]] | |action = 1 {{srd5lc|Action}}{{#cargo_store: _table = 5eSpellT|Action_Type=Action}}[[Action Type::Action| ]] | ||
|reaction = 1 {{srd5lc|Reaction}}[[Action Type::Reaction| ]] | |reaction = 1 {{srd5lc|Reaction}}{{#cargo_store: _table = 5eSpellT|Action_Type=Reaction}}[[Action Type::Reaction| ]] | ||
|bonus = 1 {{srd5lc|Bonus Action}}[[Action Type::Bonus Action| ]] | |bonus = 1 {{srd5lc|Bonus Action}}{{#cargo_store: _table = 5eSpellT|Action_Type=Bonus Action}}[[Action Type::Bonus Action| ]] | ||
|minute = 1 {{srd5lc|Minute}}[[Action Type::Other| ]] | |minute = 1 {{srd5lc|Minute}}{{#cargo_store: _table = 5eSpellT|Action_Type=Other}}[[Action Type::Other| ]] | ||
|hour = 1 hour[[Action Type::Other| ]] | |hour = 1 hour{{#cargo_store: _table = 5eSpellT|Action_Type=Action}}[[Action Type::Other| ]] | ||
|{{{casttime}}}[[Action Type::Other| ]] | |{{{casttime}}}{{#cargo_store: _table = 5eSpellT|Action_Type=Action}}[[Action Type::Other| ]] | ||
}}{{#if: {{{casttext|}}}|, {{{casttext}}}| }} | }}{{#if: {{{casttext|}}}|, {{{casttext}}}| }} | ||
|- | |- | ||
!style="text-align:left;"|Range: | !style="text-align:left;"|Range: | ||
| {{{range}}}[[Range::{{{range}}}| ]] | | {{{range}}}{{#cargo_store: _table = 5eSpellT|Spell_Range={{{range}}}}}[[Range::{{{range}}}| ]] | ||
|- | |- | ||
!style="text-align:left;"|Components: | !style="text-align:left;"|Components: | ||
| {{{comp}}}<!--{{#arraymap: {{{comp}}}|, |x|[[Component::x| ]]}}-->{{#if: {{{material|}}}| ({{{material}}}){{#if: {{{vcomp|}}}|[[Valuable Components::True| ]][[Category:5e Valuable Component Spells]]|}}{{#if: {{{ccomp|}}}|[[Consumable Components::True| ]][[Category:5e Consumable Component Spells]]|}}|<!--endif material-->}} | | {{{comp}}}<!--{{#arraymap: {{{comp}}}|, |x|{{#cargo_store: _table = 5eSpellT|Component={{{comp}}}}}[[Component::x| ]]}}-->{{#if: {{{material|}}}| ({{{material}}}){{#if: {{{vcomp|}}}|{{#cargo_store: _table = 5eSpellT|Valuable_Component=1}}[[Valuable Components::True| ]][[Category:5e Valuable Component Spells]]|}}{{#if: {{{ccomp|}}}|{{#cargo_store: _table = 5eSpellT|Consumable_Component=1}}[[Consumable Components::True| ]][[Category:5e Consumable Component Spells]]|}}|<!--endif material-->}} | ||
|- | |- | ||
!style="text-align:left;"|Duration: | !style="text-align:left;"|Duration: | ||
Line 34: | Line 50: | ||
|{{#if: {{{casters|}}}|{{5e Casters|{{{casters}}}}}|}} | |{{#if: {{{casters|}}}|{{5e Casters|{{{casters}}}}}|}} | ||
|}<!-- Non-switch Semantic Bits Here | |}<!-- Non-switch Semantic Bits Here | ||
-->{{#if: {{{summary|}}} | [[Summary::{{{summary}}}| ]] }}<!-- Set Properties | -->{{#if: {{{summary|}}} | {{#cargo_store: _table = 5eSpellT|Summary={{{summary}}}}}[[Summary::{{{summary}}}| ]] }}<!-- Set Properties | ||
-->[[Level::{{#ifeq: {{{level|}}} |0|Cantrip|{{{level}}}}}| ]] [[School::{{ucfirst:{{{school|}}}}}| ]] | -->{{#cargo_store: _table = 5eSpellT|Level={{#ifeq: {{{level|}}}|0|Cantrip|{{{level}}}}}}}[[Level::{{#ifeq: {{{level|}}} |0|Cantrip|{{{level}}}}}| ]]{{#cargo_store: _table = 5eSpellT|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]][[Scalable::true| ]]|}}{{#if: {{{canon|}}}|[[Category:5e Canon Spells]][[Canon::true| ]]|}} | {{#if: {{{higherlevels|}}}|'''''At Higher Levels.''''' {{{higherlevels|}}}[[Category:5e Scalable Spells]]{{#cargo_store: _table = 5eSpellT|Scalable=1}}[[Scalable::true| ]]|}}{{#if: {{{canon|}}}|[[Category:5e Canon Spells]]{{#cargo_store: _table = 5eSpellT|Canon_Spell=1}}[[Canon::true| ]]|}} | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
<!-- Tech note: | <!-- Tech note: |
Latest revision as of 10:42, 26 January 2020
This template defines the table "5eSpellT". 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:
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)
Visit Template:5e Spell Test/doc to edit this text! (How does this work?)