Template:One Spell: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
(10 intermediate revisions by the same user not shown) | |||
Line 20: | Line 20: | ||
|Domain_Spell=List (, ) of String | |Domain_Spell=List (, ) of String | ||
|Subclass_Bonus=List (, ) of String | |Subclass_Bonus=List (, ) of String | ||
|Offlist_Caster=List (, ) of String | |||
|Race_Spell=List (, ) of String | |Race_Spell=List (, ) of String | ||
}}</noinclude><includeonly> | }}</noinclude><includeonly> | ||
<span style="display:inline; font-size: 1.4em; text-align:left;">'''{{{name}}}'''</span>{{#if: {{{refs|}}}| {{{refs}}}|}} ({{One|Spell}}){{#if: {{{pointer|}}}| ([[pointer]])|}}<br /> | <span style="display:inline; font-size: 1.4em; text-align:left;">'''{{{name}}}'''</span>{{#if: {{{refs|}}}| {{{refs}}}|}} ({{One|Spell}}){{#if: {{{pointer|}}}| ([[pointer]])|}}<br /> | ||
<span style="display:inline-block; width:7rem; text-align:left; background: | <span style="display:inline-block; width:7rem; text-align:left; background:AliceBlue;">Level:</span> {{#switch: {{{level}}} | ||
|0 = 0-level ({{Onelc|Cantrip}}) | |0 = 0-level ({{Onelc|Cantrip}}) | ||
|1 = 1st-level | |1 = 1st-level | ||
Line 31: | Line 32: | ||
|{{{level}}}th-level spell | |{{{level}}}th-level spell | ||
}}''<br /> | }}''<br /> | ||
<span style="display:inline-block; width:7rem; text-align:left; background: | <span style="display:inline-block; width:7rem; text-align:left; background:AliceBlue;">Class Tags:</span> {{One Spell List|{{{list}}}|nodb={{{nodb|}}}}}<br /> | ||
<span style="display:inline-block; width:7rem; text-align:left; background: | <span style="display:inline-block; width:7rem; text-align:left; background:AliceBlue;">School:</span> {{One|{{{school}}}}}<br /> | ||
<span style="display:inline-block; width:7rem; text-align:left; background: | <span style="display:inline-block; width:7rem; text-align:left; background:AliceBlue;">Casting Time:</span> <span style="display:inline-block; max-width:50vw; vertical-align:top;">{{#switch: {{{casttime}}} | ||
|action = 1 {{Onelc|Action}} | |action = 1 {{Onelc|Action}} | ||
|reaction = 1 {{Onelc|Reaction}} | |reaction = 1 {{Onelc|Reaction}} | ||
Line 40: | Line 41: | ||
|hour = 1 hour | |hour = 1 hour | ||
|{{{casttime}}} | |{{{casttime}}} | ||
}}{{#if: {{{ | }}{{#if: {{{casttext|}}}|, {{{casttext}}}|}}{{#if: {{{ritual|}}}| ({{One|Ritual}})|}}</span><br /> | ||
<span style="display:inline-block; width:7rem; text-align:left; background: | <span style="display:inline-block; width:7rem; text-align:left; background:AliceBlue;">Range: </span> {{{range}}}<br /> | ||
<span style="display:inline-block; width:7rem; text-align:left; background: | <span style="display:inline-block; width:7rem; text-align:left; background:AliceBlue;">Components:</span> <span style="display:inline-block; max-width:50vw; vertical-align:top;">{{{comp}}}{{#if: {{{material|}}}| ({{{material}}})|<!--endif material-->}}</span><br /> | ||
<span style="display:inline-block; width:7rem; text-align:left; background: | <span style="display:inline-block; width:7rem; text-align:left; background:AliceBlue;">Duration:</span> {{#if: {{{concentration|}}}|{{One|Concentration}}, {{{dur}}}|{{#ifeq: {{{dur}}}|i|Instantaneous|{{{dur}}} | }} | }}<br /> | ||
<span style="display:inline-block; width:7rem; text-align:left; background: | <span style="display:inline-block; width:7rem; text-align:left; background:AliceBlue;">Scales:</span> {{#if: {{{scales|}}}|True|{{#if: {{{higherlevels|}}}|True|Fasle}}}}{{#if: {{{offlistcaster|}}}|<br /> | ||
<span style="display:inline-block; width:7rem; text-align:left; background: | <span style="display:inline-block; width:7rem; text-align:left; background:AliceBlue;">Other Casters:</span> {{#arraymap: {{{offlistcaster}}}|,|xolc|{{One|xolc}}|, }}|}} | ||
<span style="display:inline-block; width:7rem; text-align:left; background: | <!-- | ||
<span style="display:inline-block; width:7rem; text-align:left; background: | <br /> | ||
<span style="display:inline-block; width:7rem; text-align:left; background: | <span style="display:inline-block; width:7rem; text-align:left; background:AliceBlue;">Casters:</span> {{#if: {{{casters|}}}|{{One Casters|{{{casters}}}}}|}}{{#if: {{{subclassspell|}}}|<br /> | ||
<span style="display:inline-block; width:7rem; text-align:left; background:AliceBlue;">Subclass Bonus:</span> {{One Subclass Spells Subclass|{{{subclassspell|}}}}}|}}{{#if: {{{domainspell|}}}|<br /> | |||
<span style="display:inline-block; width:7rem; text-align:left; background:AliceBlue;">Domain Spell for:</span> {{One Subclass Spells Subclass|{{{domainspell|}}}}}|}} | |||
-->{{#if: {{{racespell|}}}|<br /> | |||
<span style="display:inline-block; width:7rem; text-align:left; background:AliceBlue;">Racial Spell of:</span> {{One Racial Spell Races|{{{racespell|}}}}}|}}{{#if: {{{subclassspell|}}}|<br /> | |||
<span style="display:inline-block; width:7rem; text-align:left; background:AliceBlue;">Subclass Spell of:</span> {{#arraymap: {{{subclassspell|}}}|,|xSubC|{{One|xSubC}}|, }}|}}<br /> | |||
{{#if: {{{fluff|}}}|''{{{fluff}}}''<br /><br />|}} | {{#if: {{{fluff|}}}|''{{{fluff}}}''<br /><br />|}} | ||
{{#if: {{{rules|}}}|{{{rules}}}|{{#if: {{{summary|}}}|'''Unofficial Description:''' {{{summary}}}<br /><br />|}}|}} | {{#if: {{{rules|}}}|{{{rules}}}|{{#if: {{{summary|}}}|'''Unofficial Description:''' {{{summary}}}<br /><br />|}}|}} | ||
{{#if: {{{higherlevels|}}}|<br /><br />'''''At Higher Levels.''''' {{{higherlevels|}}}|}}{{#if: {{{nodb|}}}|<!--skip-->|<!-- | {{#if: {{{higherlevels|}}}|<br /><br />{{#ifeq: {{{level}}}|0|'''''Cantrip Upgrade.'''''|'''''At Higher Levels.'''''|}} {{{higherlevels|}}}|}}{{#if: {{{nodb|}}}|<!--skip-->|<!-- | ||
-- Cargo Store -- | -- Cargo Store -- | ||
-->{{#cargo_store: _table = One_Spell | -->{{#cargo_store: _table = One_Spell | ||
Line 69: | Line 75: | ||
|Consumable_Component={{#if: {{{ccomp|}}}|1}} | |Consumable_Component={{#if: {{{ccomp|}}}|1}} | ||
|Summary={{{summary|}}} | |Summary={{{summary|}}} | ||
|Level={{#ifeq: {{{level|}}}|0|Cantrip|{{{level}}}}} | |Level={{{level|}}}<!--{{#ifeq: {{{level|}}}|0|Cantrip|{{{level}}}}}--> | ||
|List={{{list|}}} | |List={{{list|}}} | ||
|School={{ucfirst:{{{school|}}}}} | |School={{ucfirst:{{{school|}}}}} | ||
Line 75: | Line 81: | ||
|Canon_Spell={{#if: {{{canon|}}}|1}} | |Canon_Spell={{#if: {{{canon|}}}|1}} | ||
|Subclass_Bonus={{#if: {{{subclassspell|}}}|{{{subclassspell}}}|{{#if: {{{domainspell|}}}|{{{domainspell}}}|}}|}} | |Subclass_Bonus={{#if: {{{subclassspell|}}}|{{{subclassspell}}}|{{#if: {{{domainspell|}}}|{{{domainspell}}}|}}|}} | ||
|Offlist_Caster={{#if: {{{offlistcaster|}}}|{{{offlistcaster}}}|{{#if: {{{subclassspell|}}}|{{{subclassspell}}}|{{#if: {{{domainspell|}}}|{{{domainspell}}}|}}|}}|}} | |||
|Casters={{{casters|}}} | |Casters={{{casters|}}} | ||
}}<!-- | }}<!-- | ||
--Categories-- | --Categories-- | ||
-->{{#if:{{{sorttext|}}}|{{DEFAULTSORTKEY:{{{sorttext}}} One}}|}}[[Category:One]][[Category:DnD Spells]][[Category:One Spells]]{{#switch: {{{level}}} | -->{{#if:{{{sorttext|}}}|{{DEFAULTSORTKEY:{{{sorttext}}} One}}|}}[[Category:One DnD]][[Category:DnD Spells]][[Category:One Spells]]{{#switch: {{{level}}} | ||
|0 = [[Category:One Cantrips]] | |0 = [[Category:One Cantrips]] | ||
|1 = [[Category:One Spells 1st Level]] | |1 = [[Category:One Spells 1st Level]] | ||
Line 85: | Line 92: | ||
|Cantrip = [[Category:One Cantrips]] | |Cantrip = [[Category:One Cantrips]] | ||
|[[Category:One Spells {{{level}}}th Level]] | |[[Category:One Spells {{{level}}}th Level]] | ||
}}{{#if: {{{school|}}}|[[Category:One {{{school}}} Spells]]| }}{{#if: {{{list|}}}|{{Category From List|One|{{{list}}}|Spells}}|}}{{#if: {{{vcomp|}}}|[[Category:One Valuable Component Spells]]|}}{{#if: {{{ccomp|}}}|[[Category:One Consumable Component Spells]]|}}{{#if: {{{concentation|}}}|[[Category:One Concentration Spells]]|}}{{#if: {{{domainspell|}}}|[[Category:One Domain Spells]]|}}{{#if: {{{racespell|}}}|[[Category:One Racial Spells]]|}}{{#if: {{{higherlevels|}}}|[[Category:One Scalable Spells]]|{{#if: {{{scales|}}}|[[Category:One Scalable Spells]]|}}}}{{#if: {{{ | }}{{#if: {{{school|}}}|[[Category:One {{{school}}} Spells]]| }}{{#if: {{{list|}}}|{{Category From List|One|{{{list}}}|Spells}}|}}{{#if: {{{vcomp|}}}|[[Category:One Valuable Component Spells]]|}}{{#if: {{{ccomp|}}}|[[Category:One Consumable Component Spells]]|}}{{#if: {{{concentation|}}}|[[Category:One Concentration Spells]]|}}{{#if: {{{domainspell|}}}|[[Category:One Domain Spells]]|}}{{#if: {{{racespell|}}}|[[Category:One Racial Spells]]{{Category From List|One|{{{racespell}}}|Spells}}|}}{{#if: {{{higherlevels|}}}|[[Category:One Scalable Spells]]|{{#if: {{{scales|}}}|[[Category:One Scalable Spells]]|}}}}{{#if: {{{domainspell|}}}|[[Category:One Domain Spells]]|}}{{#if: {{{subclassspell|}}}|[[Category:One Subclass Bonus Spells]]{{Category From List|One|{{{subclassspell}}}|Spells}}|}}{{#if: {{{pointer|}}}|[[Category:One Pointers]]|}}{{#if: {{{offlistcaster|}}}|{{#arraymap: {{{offlistcaster|}}}|,|xolc|[[Category:One {{Type Array|xolc}}]]<!--|, -->}}|}} | ||
}} | }} | ||
</includeonly><noinclude> | </includeonly><noinclude> |
Latest revision as of 12:10, 27 November 2023
This template defines the table "One_Spell". View table.
Template documentation (for the above template, sometimes hidden or invisible)
Usage
Template for 5th edition spells.
Syntax
{{One Spell |name= |sorttext= |refs= |level= <!--0 for cantrip--> |list= <!--Arcane, Divine, or Primal--> |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--> }}
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 --> |casters= <!-- list of classes that cast this spell --> |offlistcaster= <!--list of classes/subclasses that can cast this spell outside their normal spell group--> |pointer= <!--blank or true> |racespell= <!--blank, links to race/subrace--> |subclassspell= <!--blank, list of subclasses-->
Deprecated Entries
|domainspell= <-- replaced with subclassspell= -->
Example
{{One 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--> |list=Divine, Primal |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 {{Onelc|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--> |offlistcaster=Bard, Sorcerer <!-- list of classes that cast this spell --> }}
produces:
foo [1] (Spell)
Level: 0-level (cantrip)
Class Tags: Divine, Primal
School: Abjuration
Casting Time: 1 action
Range: Touch
Components: V, S, M (A forked stick)
Duration: Concentration, up to 1 minute
Scales: Fasle
Other 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:One Spell/doc to edit this text! (How does this work?)
- Foo's Guide to Nothing p. 103. Licensed: CC-BY-SA ↑