Template:5e Spell Pointer: Difference between revisions

From Rlyehwiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<includeonly>
{{#cargo_attach:
{{5e Spell
_table = 5e_Spell
|name={{{name|}}}
}}<!--
|sorttext={{{sorttext|}}}
|Sort_Text = String
|refs={{{refs|}}}
|Spell_Name=String
|level={{{level|}}}
|Ritual=Boolean
|school={{{school|}}}
|Action_Type=String
|ritual={{{ritual|}}}
|Spell_Range=String
|casttime={{{casttime|}}}
|Component=List (, ) of String
|casttext={{{casttext|}}}
|Valuable_Component=Boolean
|range={{{range|}}}
|Consumable_Component=Boolean
|comp={{{comp|}}}
|Summary=Wikitext
|material={{{material|}}}
|Level=String (allowed values=Cantrip,1,2,3,4,5,6,7,8,9)
|vcomp={{{vcomp|}}}
|School=String
|ccomp={{{ccomp|}}}
|Scalable=Boolean
|concentration={{{concentration|}}}
|Canon_Spell=Boolean
|dur={{{dur|}}}
|Casters=List (, ) of String
|summary={{{summary|}}}
}}--></noinclude><includeonly>
|domainspell={{{domainspell|}}}
{{#if: {{{pub|}}}|'''{{{name|}}}''' is a spell published in {{pub|{{{pub}}}}}.|}}
|racespell={{{racespell|}}}
{| class="dragon monstats" cellspacing="0" cellpadding="0"
|fluff={{{fluff|}}}
|+ 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]]}}
|rules={{{rules|}}}
|-
|higherlevels={{{highterlevels|}}}
| colspan="2" | ''{{#switch: {{{level}}}
|scales={{{scales|}}}
  |0 = {{ucfirst:{{SRD5|{{{school}}}}}}} {{srd5lc|Cantrip}}  [[Category:5e Cantrips]]
|casters={{{casters|}}}
  |1 = 1st-level {{srd5lc|{{{school}}}}} [[Category:5e Spells 1st Level]]
|canon={{#if|noncanon|<!--skip-->|true|}}
  |2 = 2nd-level {{srd5lc|{{{school}}}}} [[Category:5e Spells 2nd Level]]
|pointer=true
  |3 = 3rd-level {{srd5lc|{{{school}}}}} [[Category:5e Spells 3rd Level]]
|nodb={{{nodb|}}}
  |Cantrip = {{ucfirst: {{SRD5|{{{school}}}}}}} {{srd5lc|Cantrip}}  [[Category:5e Cantrips]]
  |{{{level}}}th-level {{srd5lc|{{{school}}}}} [[Category:5e Spells {{{level}}}th Level]]
  }}{{#if: {{{ritual|}}}|&nbsp;({{srd5lc|Ritual}})[[Category:5e Ritual Spells]]<!--{{#set: Ritual=true}}-->|}}''{{#if: {{{school|}}}|[[Category:5e {{{school}}} Spells]]| }}
|-
!align="left" valign="top"|Casting&nbsp;Time:
| {{#switch: {{{casttime}}}
  |action = 1 {{srd5lc|Action}}[[Action Type::Action| ]]
  |reaction = 1 {{srd5lc|Reaction}}[[Action Type::Reaction| ]][[Category:5e Reaction Spells]]
  |bonus = 1 {{srd5lc|Bonus Action}}[[Action Type::Bonus Action| ]][[Category:5e Bonus Action Spells]]
  |minute = 1 {{srd5lc|Minute}}[[Action Type::Other| ]]
  |hour = 1 hour[[Action Type::Other| ]]
  |{{{casttime}}}[[Action Type::Other| ]]
  }}{{#if: {{{casttext|}}}|, {{{casttext}}}| }}
|-
!style="text-align:left;"| Range:
| {{{range}}}[[Range::{{{range}}}| ]]
|-
!style="text-align:left;"|Components:
| {{#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:
| {{#if: {{{concentration|}}}|[[SRD5:Spellcasting#Concentration|Concentration]], {{{dur}}}[[Category:5e Concentration Spells]]|{{#ifeq: {{{dur}}}|i|Instantaneous|{{{dur}}} | }} | }}
|-
!style="text-align:left;"|Scales:
|{{#if: {{{scales|}}}|Yes[[Category:5e Scalable Spells]]|No}}
|-
!style="text-align:left;"|Casters:
|{{#if: {{{casters|}}}|{{5e Casters|{{{casters}}}}}|}}
|}<!--  Non-switch Semantic Bits Here
-->{{#if: {{{summary|}}} |<nowiki />
'''Unofficial Description:''' {{{summary}}}| }}<!--
-- Cargo Store --
-->{{#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}}
|Domain_Spell={{#if: {{{domainspell|}}}|{{{domainspell}}}|}}
|Casters={{{casters|}}}
}}}}
</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

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:


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