Template:5e Spell Pointer: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 21: | Line 21: | ||
}}--></noinclude><includeonly> | }}--></noinclude><includeonly> | ||
{{#if: {{{pub|}}}|'''{{{name|}}}''' is a spell published in {{pub|{{{pub}}}}}.|}} | {{#if: {{{pub|}}}|'''{{{name|}}}''' is a spell published in {{pub|{{{pub}}}}}.|}} | ||
<span style="display:inline; font-size: 1.4em; text-align:left;">'''{{{name}}}'''</span><span style="display:inline; float:right; font-size: 0.8rem;">{{{refs|}}}</span>{{#if:{{{sorttext|}}}|{{DEFAULTSORTKEY:{{{sorttext}}} 5e}}|{{DEFAULTSORTKEY:{{PAGENAME}} 5e}} }}[[Category:5e]][[Category:DnD Spells]][[Category:5e Spells]]<br /> | |||
''{{#switch: {{{level}}} | |||
|0 = {{ucfirst:{{SRD5|{{{school}}}}}}} {{srd5lc|Cantrip}} [[Category:5e Cantrips]] | |||
|0 = {{ucfirst:{{SRD5|{{{school}}}}}}} {{srd5lc|Cantrip}} | |||
|1 = 1st-level {{srd5lc|{{{school}}}}} [[Category:5e Spells 1st Level]] | |1 = 1st-level {{srd5lc|{{{school}}}}} [[Category:5e Spells 1st Level]] | ||
|2 = 2nd-level {{srd5lc|{{{school}}}}} [[Category:5e Spells 2nd Level]] | |2 = 2nd-level {{srd5lc|{{{school}}}}} [[Category:5e Spells 2nd Level]] | ||
|3 = 3rd-level {{srd5lc|{{{school}}}}} [[Category:5e Spells 3rd Level]] | |3 = 3rd-level {{srd5lc|{{{school}}}}} [[Category:5e Spells 3rd Level]] | ||
|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}}) | }}{{#if: {{{ritual|}}}| ({{srd5lc|Ritual}})|}}''{{#if: {{{school|}}}|[[Category:5e {{{school}}} Spells]]| }}<br /> | ||
<span style="display:inline-block; width:7rem; text-align:left; background:WhiteSmoke;">Casting Time:</span> {{#switch: {{{casttime}}} | |||
|action = 1 {{srd5lc|Action}} | |||
|reaction = 1 {{srd5lc|Reaction}} | |||
|action = 1 {{srd5lc|Action}} | |bonus = 1 {{srd5lc|Bonus Action}} | ||
|reaction = 1 {{srd5lc|Reaction}} | |minute = 1 {{srd5lc|Minute}} | ||
|bonus = 1 {{srd5lc|Bonus Action}} | |hour = 1 hour | ||
|minute = 1 {{srd5lc|Minute}} | |{{{casttime}}} | ||
|hour = 1 hour | }}{{#if: {{{casttext|}}}|, {{{casttext}}}| }}<br /> | ||
|{{{casttime}}} | <span style="display:inline-block; width:7rem; text-align:left; background:WhiteSmoke;">Range: </span> {{{range}}}<br /> | ||
<span style="display:inline-block; width:7rem; text-align:left; background:WhiteSmoke;">Components:</span> {{{comp}}}{{#if: {{{material|}}}| ({{{material}}}){{#if: {{{vcomp|}}}|[[Category:5e Valuable Component Spells]]|}}{{#if: {{{ccomp|}}}|[[Category:5e Consumable Component Spells]]|}}|<!--endif material-->}}<br /> | |||
<span style="display:inline-block; width:7rem; text-align:left; background:WhiteSmoke;">Duration:</span> {{#if: {{{concentration|}}}|{{SRD5|Concentration}}, {{{dur}}}[[Category:5e Concentration Spells]]|{{#ifeq: {{{dur}}}|i|Instantaneous|{{{dur}}} | }} | }}<br /> | |||
<span style="display:inline-block; width:7rem; text-align:left; background:WhiteSmoke;">Scales:</span> {{#if: {{{scales|}}}|True|{{#if: {{{higherlevels|}}}|Yes|No}}}}<br /> | |||
<span style="display:inline-block; width:7rem; text-align:left; background:WhiteSmoke;">Casters:</span> {{#if: {{{casters|}}}|{{5e Casters|{{{casters}}}}}|}}{{#if: {{{domainspell|}}}|<br /> | |||
<span style="display:inline-block; width:7rem; text-align:left; background:WhiteSmoke;">Domain Spell for:</span> {{5e Domain Spell Domains|{{{domainspell|}}}}}[[Category:5e Domain Spells]]|}}{{#if: {{{racespell|}}}|<br /> | |||
<span style="display:inline-block; width:7rem; text-align:left; background:WhiteSmoke;">Racial Spell of:</span> {{5e Racial Spell Races|{{{racespell|}}}}}[[Category:5e Racial Spells]]|}}<br /> | |||
{{#if: {{{fluff|}}}|''{{{fluff}}}''<br /><br />|}} | |||
|- | {{#if: {{{rules|}}}|{{{rules}}}|{{#if: {{{summary|}}}|'''Unofficial Description:''' {{{summary}}}<br /><br />|}}|}} | ||
{{#if: {{{higherlevels|}}}|<br /><br />'''''At Higher Levels.''''' {{{higherlevels|}}}[[Category:5e Scalable Spells]]|}}{{#if: {{{canon|}}}|[[Category:5e Canon Spells]]|}}{{#if: {{{domainspell|}}}|[[Category:5e Domain Spells]]|}}<!-- | |||
|{{#if: {{{ | |||
|}< | |||
''' | |||
-- Cargo Store -- | -- Cargo Store -- | ||
-->{{#if: {{{nodb|}}}|<!--skip-->|{{#cargo_store: _table = 5e_Spell | -->{{#if: {{{nodb|}}}|<!--skip-->|{{#cargo_store: _table = 5e_Spell | ||
Line 94: | Line 77: | ||
[ and ] display as [ and ] , respectively, but won't get parsed as wiki links. | [ and ] display as [ and ] , respectively, but won't get parsed as wiki links. | ||
--> | --> | ||
{{ | |||
==Usage== | |||
Template for 5th edition spells that are copyrighted and published. | |||
==Syntax== | |||
<pre>{{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 --> | |||
}} | |||
</pre> | |||
===Add'l Optional Entries=== | |||
<pre>|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--> | |||
</pre> | |||
===Example=== | |||
<pre>{{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 --> | |||
}} | |||
</pre> | |||
'''''produces:''''' | |||
{{5e Spell Pointer | |||
|name=foo | |||
|sorttext= | |||
|refs=<ref>{{Cite Pub|Bar's Guide to Spells|pages=157}}</ref> | |||
|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=Bard, Sorcerer <!-- list of classes that cast this spell --> | |||
|canon= <!-- blank or true. true if published by Wotc --> | |||
|nodb=true | |||
}} | |||
[[Category:5e Templates|Spell Pointer Template 5e]] | [[Category:5e Templates|Spell Pointer Template 5e]] | ||
[[Category:5e Pointer Templates|Spell Pointer Template 5e]] | [[Category:5e Pointer Templates|Spell Pointer Template 5e]] | ||
</noinclude> | </noinclude> |
Revision as of 08:53, 29 September 2021
This template adds rows to the table "5e_Spell", which is declared by the template 5e Spell. View table.
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[1]
Conjuration cantrip
Casting Time: 1 action
Range: Touch
Components: V, S, M
Duration: Instantaneous
Scales: True
Casters: Bard, Sorcerer
Unofficial Description: foo creates a fully stocked bar, complete with bartender
- Bar's Guide to Spells p. 157. ↑