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...")
 
mNo edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
{{#if: {{{pub|}}}|'''{{{name|}}}''' is a spell published in {{pub|{{{pub}}}}}.<!--[[Publication::{{{pub}}}| ]]-->|}}
{{5e Spell
{| class="dragon monstats" cellspacing="0" cellpadding="0"
|name={{{name|}}}
|+ 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]]}}
|sorttext={{{sorttext|}}}
|-
|refs={{{refs|}}}
| colspan="2" | ''{{#switch: {{{level}}}
|level={{{level|}}}
  |0 = {{ucfirst:{{SRD5|{{{school}}}}}}} {{srd5lc|Cantrip}}  [[Category:5e Cantrips]]
|school={{{school|}}}
  |1 = 1st-level {{srd5lc|{{{school}}}}} [[Category:5e Spells 1st Level]]
|ritual={{{ritual|}}}
  |2 = 2nd-level {{srd5lc|{{{school}}}}} [[Category:5e Spells 2nd Level]]
|casttime={{{casttime|}}}
  |3 = 3rd-level {{srd5lc|{{{school}}}}} [[Category:5e Spells 3rd Level]]
|casttext={{{casttext|}}}
  |Cantrip = {{ucfirst: {{SRD5|{{{school}}}}}}} {{srd5lc|Cantrip}}  [[Category:5e Cantrips]]
|range={{{range|}}}
  |{{{level}}}th-level {{srd5lc|{{{school}}}}} [[Category:5e Spells {{{level}}}th Level]]
|comp={{{comp|}}}
  }}{{#if: {{{ritual|}}}|&nbsp;({{srd5lc|Ritual}})[[Category:5e Ritual Spells]]<!--{{#set: Ritual=true}}-->|}}''{{#if: {{{school|}}}|[[Category:5e {{{school}}} Spells]]| }}
|material={{{material|}}}
|-
|vcomp={{{vcomp|}}}
!align="left" valign="top"|Casting&nbsp;Time:
|ccomp={{{ccomp|}}}
| {{#switch: {{{casttime}}}
|concentration={{{concentration|}}}
  |action = 1 {{srd5lc|Action}}[[Action Type::Action| ]]
|dur={{{dur|}}}
  |reaction = 1 {{srd5lc|Reaction}}[[Action Type::Reaction| ]][[Category:5e Reaction Spells]]
|summary={{{summary|}}}
  |bonus = 1 {{srd5lc|Bonus Action}}[[Action Type::Bonus Action| ]][[Category:5e Bonus Action Spells]]
|domainspell={{{domainspell|}}}
  |minute = 1 {{srd5lc|Minute}}[[Action Type::Other| ]]
|racespell={{{racespell|}}}
  |hour = 1 hour[[Action Type::Other| ]]
|fluff={{{fluff|}}}
  |{{{casttime}}}[[Action Type::Other| ]]
|rules={{{rules|}}}
  }}{{#if: {{{casttext|}}}|, {{{casttext}}}| }}
|higherlevels={{{highterlevels|}}}
|-
|scales={{{scales|}}}
!style="text-align:left;"| Range:
|casters={{{casters|}}}
| {{{range}}}[[Range::{{{range}}}| ]]
|canon={{#if|noncanon|<!--skip-->|true|}}
|-
|pointer=true
!style="text-align:left;"|Components:
|nodb={{{nodb|}}}
| {{#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]]|}}
}}
|-
!style="text-align:left;"|Duration:
| {{#if: {{{concentration|}}}|[[SRD5:Spellcasting#Concentration|Concentration]], {{{dur}}}<!--{{#set: concentration=true}}-->[[Category:5e Concentration Spells]]|{{#ifeq: {{{dur}}}|i|Instantaneous|{{{dur}}} | }} | }}
|-
!style="text-align:left;"|Scales:
|{{#if: {{{scales|}}}| {{#switch: {{{scales}}}
  |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:
|{{#if: {{{casters|}}}|{{5e Casters|{{{casters}}}}}|}}
|}<!--  Non-switch Semantic Bits Here
-->{{#if: {{{summary|}}} |<nowiki />
===Unofficial Description===
{{{summary}}}<!--{{#set: Summary={{{summary}}}}}-->| }}<!-- Set Properties
-->[[Level::{{#ifeq: {{{level|}}} |0|Cantrip|{{{level}}}}}| ]] [[School::{{ucfirst:{{{school|}}}}}| ]]
</includeonly><noinclude>
</includeonly><noinclude>
<!-- Tech note:
<!-- Tech note:
&#91; and &#93; display as [ and ] , respectively, but won't get parsed as wiki links.  
&#91; and &#93; display as [ and ] , respectively, but won't get parsed as wiki links.  
-->
-->
{{documentation}}
 
==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>

Latest revision as of 07:44, 18 July 2022


Usage[edit]

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

Syntax[edit]

{{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[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. -->
|domainspell= <!--blank, list of domains-->
|racespell= <!--blank, list of race/subraces-->

Example[edit]

{{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:


5e Spell foo [1] (pointer)
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