Difference between revisions of "Template:5e Spell Pointer"
From Dungeons and Dragons Wiki
m |
m |
||
(21 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
− | + | '''{{{name|}}}''' is a spell for 5th edition{{#if: {{{pub|}}}| published in {{pub|{{{pub}}}}}.[[Publication::{{{pub}}}| ]]|.}} | |
+ | {{5e Spell | ||
+ | |name={{{name|}}} | ||
+ | |sorttext={{{sorttext|}}} | ||
+ | |refs={{{refs|}}} | ||
+ | |level={{{level|}}} | ||
+ | |school={{{school|}}} | ||
+ | |ritual={{{ritual|}}} | ||
+ | |casttime={{{casttime|}}} | ||
+ | |casttext={{{casttext|}}} | ||
+ | |range={{{range|}}} | ||
+ | |comp={{{comp|}}} | ||
+ | |ccomp={{{ccomp|}}} | ||
+ | |vcomp={{{vcomp|}}} | ||
+ | |material= | ||
+ | |concentration={{{concentration|}}} | ||
+ | |dur={{{dur|}}} | ||
+ | |summary={{{summary|}}} | ||
+ | |fluff= | ||
+ | |rules= | ||
+ | |higherlevels= | ||
+ | |casters={{{casters|}}} | ||
+ | |racespell={{{racespell|}}} | ||
+ | |canon={{{canon|}}} | ||
+ | |pointer=true | ||
+ | |nodb={{{nodb|}}} | ||
+ | }} | ||
+ | <!------------Legacy Code------------ | ||
{| class="dragon monstats" cellspacing="0" cellpadding="0" | {| class="dragon monstats" cellspacing="0" cellpadding="0" | ||
− | |+ style="font-size: | + | |+ style="font-size: 1.3rem; white-space: nowrap;" |{{{name}}} <span style="display:inline; float:right; font-size:0.6em; font-weight:normal;">{{{refs|}}} </span>{{#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]]}} |
|- | |- | ||
| colspan="2" | ''{{#switch: {{{level}}} | | colspan="2" | ''{{#switch: {{{level}}} | ||
− | |0 = {{ucfirst:{{{school}}}}} | + | |0 = {{ucfirst:{{SRD5|{{{school}}}}}}} {{srd5lc|Cantrip}} [[Category:5e Cantrips]] |
− | |1 = 1st-level {{ | + | |1 = 1st-level {{srd5lc|{{{school}}}}} [[Category:5e Spells 1st Level]] |
− | |2 = 2nd-level {{ | + | |2 = 2nd-level {{srd5lc|{{{school}}}}} [[Category:5e Spells 2nd Level]] |
− | |3 = 3rd-level {{ | + | |3 = 3rd-level {{srd5lc|{{{school}}}}} [[Category:5e Spells 3rd Level]] |
− | |Cantrip = {{ucfirst:{{{school}}}}} | + | |Cantrip = {{ucfirst: {{SRD5|{{{school}}}}}}} {{srd5lc|Cantrip}} [[Category:5e Cantrips]] |
− | |{{{level}}}th-level {{ | + | |{{{level}}}th-level {{srd5lc|{{{school}}}}} [[Category:5e Spells {{{level}}}th Level]] |
− | }}{{# | + | }}{{#if: {{{ritual|}}}| ({{srd5lc|Ritual}})[[Category:5e Ritual Spells]]{{#set: Ritual=true}}|}}''{{#if: {{{school|}}}|[[Category:5e {{{school}}} Spells]]| }} |
|- | |- | ||
− | ! Casting Time: | + | !align="left" valign="top"|Casting Time: |
| {{#switch: {{{casttime}}} | | {{#switch: {{{casttime}}} | ||
− | |action = 1 | + | |action = 1 {{srd5lc|Action}}[[Action Type::Action| ]] |
− | |reaction = 1 | + | |reaction = 1 {{srd5lc|Reaction}}[[Action Type::Reaction| ]][[Category:5e Reaction Spells]] |
− | |bonus = 1 | + | |bonus = 1 {{srd5lc|Bonus Action}}[[Action Type::Bonus Action| ]][[Category:5e Bonus Action Spells]] |
− | |minute = 1 | + | |minute = 1 {{srd5lc|Minute}}[[Action Type::Other| ]] |
|hour = 1 hour[[Action Type::Other| ]] | |hour = 1 hour[[Action Type::Other| ]] | ||
|{{{casttime}}}[[Action Type::Other| ]] | |{{{casttime}}}[[Action Type::Other| ]] | ||
− | }} | + | }}{{#if: {{{casttext|}}}|, {{{casttext}}}| }} |
|- | |- | ||
− | ! Range: | + | !style="text-align:left;"| Range: |
| {{{range}}}[[Range::{{{range}}}| ]] | | {{{range}}}[[Range::{{{range}}}| ]] | ||
|- | |- | ||
− | ! Components: | + | !style="text-align:left;"|Components: |
− | | {{#arraymap: {{{comp}}}|, |x|[[Component::x]]}} | + | | {{#arraymap: {{{comp}}}|, |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]]|}} |
|- | |- | ||
− | ! Duration: | + | !style="text-align:left;"|Duration: |
− | | {{#if: {{{concentration|}}}|[[SRD5:Spellcasting#Concentration|Concentration]], {{{dur}}}{{#set: concentration=true}}|{{#ifeq: {{{dur}}}|i|Instantaneous|{{{dur}}} | }} | }} | + | | {{#if: {{{concentration|}}}|[[SRD5:Spellcasting#Concentration|Concentration]], {{{dur}}}{{#set: concentration=true}}[[Category:5e Concentration Spells]]|{{#ifeq: {{{dur}}}|i|Instantaneous|{{{dur}}} | }} | }} |
|- | |- | ||
− | ! Scales: | + | !style="text-align:left;"|Scales: |
− | | {{#if: {{{scales|}}}|Yes|No}} | + | |{{#if: {{{scales|}}}| {{#switch: {{{scales}}} |
− | | | + | |True = Yes[[Scalable::true| ]][[Category:5e Scalable Spells]] |
− | + | |true = Yes[[Scalable::true| ]][[Category:5e Scalable Spells]] | |
− | ==Unofficial | + | |t = Yes[[Scalable::true| ]][[Category:5e Scalable Spells]] |
− | {{{summary}}} | + | |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: | ||
+ | |{{#if: {{{casters|}}}|{{5e Casters|{{{casters}}}}}|}} | ||
+ | |}{{#if: {{{summary|}}} |<nowiki /> | ||
+ | ===Unofficial Description=== | ||
+ | {{{summary}}}{{#set: Summary={{{summary}}}}}| }}[[Level::{{#ifeq: {{{level|}}} |0|Cantrip|{{{level}}}}}| ]] [[School::{{ucfirst:{{{school|}}}}}| ]] | ||
+ | --> | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
<!-- Tech note: | <!-- Tech note: | ||
[ 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. | ||
--> | --> | ||
− | {{documentation}}</noinclude> | + | {{documentation}} |
+ | |||
+ | [[Category:5e Templates|Spell Pointer Template 5e]] | ||
+ | [[Category:5e Pointer Templates|Spell Pointer Template 5e]] | ||
+ | </noinclude> |
Latest revision as of 14:55, 18 July 2022
Template documentation (for the above template, sometimes hidden or invisible)
Usage[edit]
Template for 5th edition spells that are copyrighted and published.
Syntax[edit]
{{5e Spell Pointer |name= |sorttext= |refs= <!--references--> |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 concentration--> |dur= <!-- duration Instantaneous, 1 round, 1 hour, etc.--> |summary= <!-- UNOFFICIAL summary of spell --> |scales= <!-- Y if changes with spell slot or level--> |casters= <!-- list of classes that cast this spell --> |canon= <!-- blank or true. true if published by Wotc --> }}
Add'l Optional Entries[edit]
|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. -->
Deprecated Entries[edit]
|pub= <!-- publication -->
Example[edit]
{{5e Spell Pointer |name=foo |sorttext= |refs=<ref>{{pub|Foo's Guide to Nothing}} p.783. Licensed: [[Public Domain]].</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 |casters=Bard, Sorcerer <!-- list of classes that cast this spell --> |canon= <!-- blank or true. true if published by Wotc --> }}
produces:
foo is a spell for 5th edition.
5e Spell
foo [1] (pointer)
Conjuration cantrip
Casting Time: 1 action
Range: Touch
Components: V, S, M
Duration: Instantaneous
Casters: Bard, Sorcerer
Unofficial Description: foo creates a fully stocked bar, complete with bartender
Visit Template:5e Spell Pointer/doc to edit this text! (How does this work?)
- ↑ Foo's Guide to Nothing p.783. Licensed: Public Domain.