Difference between revisions of "Template:Spellcasting Levels"

From Compendium of Worldly Lore

Jump to: navigation, search
Line 1: Line 1:
<noinclude><!--
Get all spellcasting classes
{{#ask:[[Category:Spellcasting Class]]|? # -|mainlabel=-|headers=hide|format=plainlist|sep=§}}
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=-|default=none}}
Iterate through all spellcasting classes:
{{#arraymap:<ITERABLE>|§|<Class>|[[<Class>|<Class> <Level>]]|,\s}}
Yield a link only if a query is empty:
{{#ifeq:{{#ask: [[~{{{Name}}}]]|?<Class> Spell|format=plainlist|link=none|order=asc|headers=hide|mainlabel=-|default=none}}|none||[[Wizard|Wizard {{#ask: [[~{{{Name}}}]]|?<Class> Spell|format=plainlist|link=none|order=asc|headers=hide|mainlabel=-|default=none}}]]}}
--></noinclude>
{{#arraymap:{{#ask:[[Category:Spellcasting Class]]|mainlabel=-|headers=hide|? # -|sep=§}}|§|<Class>|{{#ifeq:{{#ask: [[~{{{Name}}}]]|?<Class> Spell|format=plainlist|link=none|order=asc|headers=hide|mainlabel=-|default=none}}|none||[[Wizard|Wizard {{#ask: [[~{{{Name}}}]]|?<Class> Spell|format=plainlist|link=none|order=asc|headers=hide|mainlabel=-|default=none}}]]}}|,\s}}
{{#arraymap:{{#ask:[[Category:Spellcasting Class]]|mainlabel=-|headers=hide|? # -|sep=§}}|§|<Class>|{{#ifeq:{{#ask: [[~{{{Name}}}]]|?<Class> Spell|format=plainlist|link=none|order=asc|headers=hide|mainlabel=-|default=none}}|none||[[Wizard|Wizard {{#ask: [[~{{{Name}}}]]|?<Class> Spell|format=plainlist|link=none|order=asc|headers=hide|mainlabel=-|default=none}}]]}}|,\s}}

Revision as of 00:10, 2 October 2022

{{#ifeq:{{#ask: [[~{{{Name}}}]]|?Urban Druid[[:Special:Ask/-5B-5BCategory:Spellcasting-20Class-5D-5D/-3F-2D/mainlabel=-2D/limit=50/offset=50/format=plainlist/headers=hide/sep= Spell|format=plainlist|link=none|order=asc|headers=hide|mainlabel=-|default=none}}|none||[[Wizard|Wizard