Difference between revisions of "Template:Spellcasting Levels"

From Compendium of Worldly Lore

Jump to: navigation, search
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
<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||[[<Class>|<Class> {{#ask: [[~{{{Name}}}]]|?<Class> Spell|format=plainlist|link=none|order=asc|headers=hide|mainlabel=-|default=none}}]]}}|,\s}}
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=-|class=sortable wikitable smwtable|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=-|class=sortable wikitable smwtable|default=none}}|none|[[<Class>|<Class> ``]]|}}
 
--><noinclude>
{{#arraymap:{{#ask:[[Category:Spellcasting Class]]|mainlabel=-|headers=hide|? # -|sep=§}}|§|<Class>|{{#ifeq:<Class>|user:cowladmin|<Class>|}}|,\s}}

Latest revision as of 15:16, 10 May 2023

{{#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||[[Urban Druid[[:Special:Ask/-5B-5BCategory:Spellcasting-20Class-5D-5D/-3F-2D/mainlabel=-2D/limit=50/offset=50/format=plainlist/headers=hide/sep=|Urban Druid[[:Special:Ask/-5B-5BCategory:Spellcasting-20Class-5D-5D/-3F-2D/mainlabel=-2D/limit=50/offset=50/format=plainlist/headers=hide/sep=