Template:5e Spell Pointer: Difference between revisions

From Rlyehwiki
Jump to navigation Jump to search
(Created page with "<includeonly> {{#if: {{{pub|}}}|'''{{{name|}}}''' is a spell published in {{pub|{{{pub}}}}}.<!--[[Publication::{{{pub}}}| ]]-->|}} {| class="dragon monstats" cellspacing="0" c...")
 
No edit summary
Line 1: Line 1:
<includeonly>
<noinclude>
{{#if: {{{pub|}}}|'''{{{name|}}}''' is a spell published in {{pub|{{{pub}}}}}.<!--[[Publication::{{{pub}}}| ]]-->|}}
{{#cargo_attach:
_table = 5e_Spell
}}<!--
|Sort_Text = String
|Spell_Name=String
|Ritual=Boolean
|Action_Type=String
|Spell_Range=String
|Component=List (, ) of String
|Valuable_Component=Boolean
|Consumable_Component=Boolean
|Summary=Wikitext
|Level=String (allowed values=Cantrip,1,2,3,4,5,6,7,8,9)
|School=String
|Scalable=Boolean
|Canon_Spell=Boolean
|Casters=List (, ) of String
}}--></noinclude><includeonly>
{{#if: {{{pub|}}}|'''{{{name|}}}''' is a spell published in {{pub|{{{pub}}}}}.|}}
{| 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:5e Spells]][[Category:Spell]]{{#if: {{{canon|}}}|{{#if: {{{canon}}}=false|[[Canon::false| ]]|}}|[[Category:5e Canon Spells]]}}
|+ style="font-size: larger; white-space: nowrap;" | {{{name}}}{{#if:{{{sorttext|}}}|{{DEFAULTSORTKEY:{{{sorttext}}} 5e}}|{{DEFAULTSORTKEY:{{PAGENAME}} 5e}} }}[[Category:5e]][[Category:5e Spells]][[Category:Spell]]{{#if: {{{noncanon|}}}|<!--do nothing-->|[[Category:5e Canon Spells]]}}
|-
|-
| colspan="2" | ''{{#switch: {{{level}}}
| colspan="2" | ''{{#switch: {{{level}}}
Line 27: Line 45:
|-
|-
!style="text-align:left;"|Components:
!style="text-align:left;"|Components:
| {{#arraymap: {{{comp}}}|, |x|x<!--[[Component::x]]-->}}{{#if: {{{vcomp|}}}|<!--{{#set:Valuable Components=True}}-->[[Category:5e Valuable Component Spells]]|}}{{#if: {{{ccomp|}}}|<!--{{#set:Consumable Components=True}}-->[[Category:5e Consumable Component Spells]]|}}
| {{#arraymap: {{{comp}}}|, |x|x<!--[[Component::x]]-->}}{{#if: {{{vcomp|}}}|[[Category:5e Valuable Component Spells]]|}}{{#if: {{{ccomp|}}}|[[Category:5e Consumable Component Spells]]|}}
|-
|-
!style="text-align:left;"|Duration:
!style="text-align:left;"|Duration:
| {{#if: {{{concentration|}}}|[[SRD5:Spellcasting#Concentration|Concentration]], {{{dur}}}<!--{{#set: concentration=true}}-->[[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;"|Scales:
!style="text-align:left;"|Scales:
|{{#if: {{{scales|}}}| {{#switch: {{{scales}}}
|{{#if: {{{scales|}}}|[[Category:5e Scalable Spells]]|}}
  |True = Yes[[Scalable::true| ]][[Category:5e Scalable Spells]]
  |true = Yes[[Scalable::true| ]][[Category:5e Scalable Spells]]
  |t = Yes[[Scalable::true| ]][[Category:5e Scalable Spells]]
  |yes = Yes[[Scalable::true| ]][[Category:5e Scalable Spells]]
  |y = Yes[[Scalable::true| ]][[Category:5e Scalable Spells]]
  |False = No[[Scalable::false| ]]
  |false = No[[Scalable::false| ]]
  |f = No[[Scalable::false| ]]
  |F = No[[Scalable::false| ]]
  |no = No[[Scalable::false| ]]
  |n = No[[Scalable::false| ]]
  }}|No[[Scalable::false| ]]| }}
|-
|-
!style="text-align:left;"|Casters:  
!style="text-align:left;"|Casters:  
Line 51: Line 57:
|}<!--  Non-switch Semantic Bits Here
|}<!--  Non-switch Semantic Bits Here
-->{{#if: {{{summary|}}} |<nowiki />
-->{{#if: {{{summary|}}} |<nowiki />
===Unofficial Description===
'''Unofficial Description:''' {{{summary}}}| }}<!--
{{{summary}}}<!--{{#set: Summary={{{summary}}}}}-->| }}<!-- Set Properties
-- Cargo Store --
-->[[Level::{{#ifeq: {{{level|}}} |0|Cantrip|{{{level}}}}}| ]] [[School::{{ucfirst:{{{school|}}}}}| ]]
-->{{#if: {{{nodb|}}}|<!--skip-->|{{#cargo_store: _table = 5e_Spell
|Sort_Text={{#if: {{{sorttext|}}}|{{{sorttext}}} 5e|{{PAGENAME}}}} 5e
|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: {{{scales|}}}|1}}
|Canon_Spell={{#if: {{{noncanon|}}}||1}}
|Casters={{{casters|}}}
}}}}
</includeonly><noinclude>
</includeonly><noinclude>
<!-- Tech note:
<!-- Tech note:

Revision as of 18:24, 9 April 2020

This template adds rows to the table "5e_Spell", which is declared by the template 5e Spell. View table.

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

Usage

Template for 5th edition spells that are copyrighted and published.

Syntax

{{5e Spell Pointer
|name=
|level= <!--0 for cantrip-->
|school= <!-- Conjuration, Evocation, etc. -->
|ritual= <!-- Y if ritual-->
|casttime= <!-- action, bonus, reaction, minute, hour, {freeform} -->
|range= <!-- 60 feet -->
|comp=V, S, M <!-- no material listing -->
|concentration=<!--blank, true if requires concentration-->
|dur= <!-- duration Instantaneous, 1 round, 1 hour, etc.-->
|summary= <!-- UNOFFICIAL summary of spell -->
|scales= <!-- Y if changes with spell slot or level-->
|pub= <!-- publication -->
|casters= <!-- list of classes that cast this spell -->
|noncanon= <!-- blank or true. true if NOT published by Wotc -->
}}

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. False if not canon. -->
|domainspell= <!--blank, list of domains-->
|racespell= <!--blank, list of race/subraces-->

Example

{{5e Spell Pointer
|name=foo
|level=0<!--0 for cantrip-->
|school=Conjuration <!-- Conjuration, Evocation, etc. -->
|ritual=  <!-- y if ritual-->
|casttime=action<!-- action, bonus, reaction, minute, hour, {freeform} -->
|range=Touch<!-- 60 feet -->
|comp=V, S, M<!-- V, S, M -->
|concentration= <!--y or blank-->
|dur= Instantaneous<!-- duration Instantaneous, 1 round, 1 hour, etc.-->
|summary=foo creates a fully stocked bar, complete with bartender<!-- summary of spell -->
|scales=Y
|pub=Bar's Guide to Spells
|casters= <!-- list of classes that cast this spell -->
|casters=Bard, Sorcerer <!-- list of classes that cast this spell -->
|canon= <!-- blank or true. true if published by Wotc -->
}}

produces:


foo is a spell published in Bar's Guide to Spells.

foo
Conjuration cantrip
Casting Time: 1 action
Range: Touch
Components: V, S, M
Duration: Instantaneous
Scales:
Casters: Bard, Sorcerer

Unofficial Description: foo creates a fully stocked bar, complete with bartender