791
editsAd placeholder
User:Toancaro/Cleric/Template:ExtraSpellTable: Difference between revisions
Jump to navigation
Jump to search
m
User:Toancaro/Cleric/Template:ExtraSpellTable (edit)
Revision as of 11:04, 7 January 2024
, 7 Januaryno edit summary
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{#arraydefine: allDomainSpells | Aid,Animal Friendship,Barkskin,Beacon of Hope,Bestow Curse,Bless,Burning Hands,Call Lightning,Calm Emotions,Charm Person,Command,Confusion,Crusader's Mantle,Cure Wounds,Daylight,Death Ward,Destructive Wave,Dimension Door,Disguise Self,Divine Favour,Dominate Beast,Dominate Person,Faerie Fire,Fear,Fireball,Flame Strike,Flaming Sphere,Fog Cloud,Freedom of Movement,Grasping Vine,Greater Restoration,Guardian of Faith,Gust of Wind,Hold Monster,Hold Person,Ice Storm,Insect Plague,Lesser Restoration,Light,Magic Weapon,Mass Cure Wounds,Mirror Image,Otiluke's Resilient Sphere,Pass Without Trace,Plant Growth,Poison Spray,Polymorph,Produce Flame,Revivify,Scorching Ray,Seeming,Shatter,Shield of Faith,Shillelagh,Sleep,Sleet Storm,Slow,Speak with Animals,Speak with Dead,Spike Growth,Spirit Guardians,Spiritual Weapon,Stoneskin,Telekinesis,Thorn Whip,Thunderwave,Wall of Fire,Wall of Stone}} | <includeonly>{{#arraydefine: allDomainSpells | Aid,Animal Friendship,Barkskin,Beacon of Hope,Bestow Curse,Bless,Burning Hands,Call Lightning,Calm Emotions,Charm Person,Command,Confusion,Crusader's Mantle,Cure Wounds,Daylight,Death Ward,Destructive Wave,Dimension Door,Disguise Self,Divine Favour,Dominate Beast,Dominate Person,Faerie Fire,Fear,Fireball,Flame Strike,Flaming Sphere,Fog Cloud,Freedom of Movement,Grasping Vine,Greater Restoration,Guardian of Faith,Gust of Wind,Hold Monster,Hold Person,Ice Storm,Insect Plague,Lesser Restoration,Light,Magic Weapon,Mass Cure Wounds,Mirror Image,Otiluke's Resilient Sphere,Pass Without Trace,Plant Growth,Poison Spray,Polymorph,Produce Flame,Revivify,Scorching Ray,Seeming,Shatter,Shield of Faith,Shillelagh,Sleep,Sleet Storm,Slow,Speak with Animals,Speak with Dead,Spike Growth,Spirit Guardians,Spiritual Weapon,Stoneskin,Telekinesis,Thorn Whip,Thunderwave,Wall of Fire,Wall of Stone}} | ||
{{#arrayslice: domainSpells1 | allDomainSpells | 0 | 25}} | {{#arrayslice: domainSpells1 | allDomainSpells | 0 | 25}} | ||
{{#vardefine: query1 | {{#arrayprint: domainSpells1 | OR | @ | _pageName = "@" }}}} | {{#vardefine: query1 | {{#arrayprint: domainSpells1 | OR | @ | _pageName = "@" }}}} | ||
{{#vardefine: spellNamesQuery1 | {{#replace:{{#var: query1}} | OR | <nowiki/> <nowiki/>OR<nowiki/> <nowiki/>}}}} | {{#vardefine: spellNamesQuery1 | {{#replace:{{#var: query1}} | OR | <nowiki/> <nowiki/>OR<nowiki/> <nowiki/>}}}} | ||
{{#arrayslice: domainSpells2 | allDomainSpells | 25 | 25}} | {{#arrayslice: domainSpells2 | allDomainSpells | 25 | 25}} | ||
{{#vardefine: query2 | {{#arrayprint: domainSpells2 | OR | @ | _pageName = "@" }}}} | {{#vardefine: query2 | {{#arrayprint: domainSpells2 | OR | @ | _pageName = "@" }}}} | ||
{{#vardefine: spellNamesQuery2 | {{#replace:{{#var: query2}} | OR | <nowiki/> <nowiki/>OR<nowiki/> <nowiki/>}}}} | {{#vardefine: spellNamesQuery2 | {{#replace:{{#var: query2}} | OR | <nowiki/> <nowiki/>OR<nowiki/> <nowiki/>}}}} | ||
{{#arrayslice: domainSpells3 | allDomainSpells | 50 | 25}} | {{#arrayslice: domainSpells3 | allDomainSpells | 50 | 25}} | ||
{{#vardefine: query3 | {{#arrayprint: domainSpells3 | OR | @ | _pageName = "@" }}}} | {{#vardefine: query3 | {{#arrayprint: domainSpells3 | OR | @ | _pageName = "@" }}}} | ||
{{#vardefine: spellNamesQuery3 | {{#replace:{{#var: query3}} | OR | <nowiki/> <nowiki/>OR<nowiki/> <nowiki/>}}}} | {{#vardefine: spellNamesQuery3 | {{#replace:{{#var: query3}} | OR | <nowiki/> <nowiki/>OR<nowiki/> <nowiki/>}}}} | ||
{{#vardefine: spellNamesQuery | {{#var: spellNamesQuery1}} OR {{#var: spellNamesQuery2}} OR {{#var: spellNamesQuery3}} }} | {{#vardefine: spellNamesQuery | {{#var: spellNamesQuery1}} OR {{#var: spellNamesQuery2}} OR {{#var: spellNamesQuery3}} }} | ||
{{#vardefine: finalQuery | ({{#var: spellNamesQuery}}) AND classes HOLDS NOT "Cleric" AND {{#if: {{{where|}}} | {{{where}}} | TRUE}} }} | {{#vardefine: finalQuery | ({{#var: spellNamesQuery}}) AND classes HOLDS NOT "Cleric" AND {{#if: {{{where|}}} | {{{where}}} | TRUE}} }} | ||
{{#cargo_query: | |||
tables = spells | tables = spells | ||
| fields=_pageName=spell,name,classes,description,spell_school,damage_type=damage | | fields=_pageName=spell,name,classes,description,spell_school,damage_type=damage | ||
Line 28: | Line 23: | ||
{{User:Toancaro/Cleric/Template:ExtraSpellTable | {{User:Toancaro/Cleric/Template:ExtraSpellTable | ||
| where=spell_level="4" | | where=spell_level="4" | ||
}} | }}</noinclude> | ||
</noinclude> |