Difference between revisions of "Template:Spellcasting Levels"

From Compendium of Worldly Lore

Jump to: navigation, search
Line 4: Line 4:


Get a spellcasting class' level for a given spell, or "none" if there is no such level
Get a spellcasting class' level for a given spell, or "none" if there is no such level
{{#ask: [[~{{{Name}}}]]|?<Class> Spell|format=plainlist|link=none|order=asc|headers=hide|mainlabel=-|class=sortable wikitable smwtable|default=none}}
{{#ask: [[~{{{Name}}}]]|?<Class> Spell|format=plainlist|link=none|order=asc|headers=hide|mainlabel=-|default=none}}


Iterate through all spellcasting classes:
Iterate through all spellcasting classes:
Line 13: Line 13:


--><noinclude>
--><noinclude>
{{#arraymap:{{#ask:[[Category:Spellcasting Class]]|mainlabel=-|headers=hide|? # -|sep=§}}|§|<Class>|{{#ifeq:<Class>|Adventure Chef||<Class>}}|,\s}}
{{#arraymap:{{#ask:[[Category:Spellcasting Class]]|mainlabel=-|headers=hide|? # -|sep=§}}|§|<Class>|<Output>|,\s}}
 
{{#ifeq:{{#ask: [[~Chain Lightning]]|?Wizard Spell|format=plainlist|link=none|order=asc|headers=hide|mainlabel=-|default=none}}|none|[[Wizard|Wizard {{#ask: [[~Chain Lightning]]|?Wizard Spell|format=plainlist|link=none|order=asc|headers=hide|mainlabel=-|default=none}}]]|}}

Revision as of 22:37, 1 October 2022

<Output>, <Output>, <Output>, <Output>, <Output>, <Output>, <Output>, <Output>, <Output>, <Output>, <Output>, <Output>, <Output>, <Output>, <Output>, <Output>, <Output>, <Output>, <Output>, <Output>, <Output>, <Output>, <Output>, <Output>, <Output>, <Output>, <Output>, <Output>, <Output>, <Output>, <Output>, <Output>, <Output>, <Output>, <Output>, <Output>, <Output>, <Output>, <Output>, <Output>, <Output>, <Output>, <Output>, <Output>, <Output>, <Output>, <Output>, <Output>, <Output>, <Output>, <Output>