Template:5e Spell Pointer: Difference between revisions

From Rlyehwiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
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|}}}
|Domain_Spell=List (, ) of String
|domainspell={{{domainspell|}}}
|Racial_Spell=List (, ) of String
|racespell={{{racespell|}}}
}}--></noinclude><includeonly>
|fluff={{{fluff|}}}
{{#if: {{{pub|}}}|'''{{{name|}}}''' is a spell published in {{pub|{{{pub}}}}}.|}}
|rules={{{rules|}}}
 
|higherlevels={{{highterlevels|}}}
<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 />
|scales={{{scales|}}}
''{{#switch: {{{level}}}
|casters={{{casters|}}}
  |0 = {{ucfirst:{{SRD5|{{{school}}}}}}} {{srd5lc|Cantrip}} [[Category:5e Cantrips]]
|canon={{#if|noncanon|<!--skip-->|true|}}
  |1 = 1st-level {{srd5lc|{{{school}}}}} [[Category:5e Spells 1st Level]]
|pointer=true
  |2 = 2nd-level {{srd5lc|{{{school}}}}} [[Category:5e Spells 2nd Level]]
|nodb={{{nodb|}}}
  |3 = 3rd-level {{srd5lc|{{{school}}}}} [[Category:5e Spells 3rd Level]]
  |Cantrip = {{ucfirst: {{SRD5|{{{school}}}}}}} {{srd5lc|Cantrip}}
  |{{{level}}}th-level {{srd5lc|{{{school}}}}} [[Category:5e Spells {{{level}}}th Level]]
  }}{{#if: {{{ritual|}}}|&nbsp;({{srd5lc|Ritual}})|}}''{{#if: {{{school|}}}|[[Category:5e {{{school}}} Spells]]| }}<br />
<span style="display:inline-block; width:7rem; text-align:left; background:WhiteSmoke;">Casting&nbsp;Time:</span> {{#switch: {{{casttime}}}
  |action = 1 {{srd5lc|Action}}
  |reaction = 1 {{srd5lc|Reaction}}
  |bonus = 1 {{srd5lc|Bonus Action}}
  |minute = 1 {{srd5lc|Minute}}
  |hour = 1 hour
  |{{{casttime}}}
}}{{#if: {{{casttext|}}}|, {{{casttext}}}| }}<br />
<span style="display:inline-block; width:7rem; text-align:left; background:WhiteSmoke;">Range:&nbsp;</span> {{{range}}}<br />
<span style="display:inline-block; width:7rem; text-align:left; background:WhiteSmoke;">Components:</span> {{{comp}}}{{#if: {{{material|}}}|&nbsp;({{{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]]|}}<!--
-- 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}}}|}}
|Racial_Spell={{#if: {{{racespell|}}}|{{{racespell}}}|}}
|Casters={{{casters|}}}
}}}}
</includeonly><noinclude>
</includeonly><noinclude>
<!-- Tech note:
<!-- Tech note:

Latest revision as of 06: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

  1. Cannot access the database: :real_connect(): (HY000/1226): User 'a1618b_wiki5' has exceeded the 'max_user_connections' resource (current value: 10)
     p. 157.