Difference between revisions of "Template:Spellcasting Levels"

From Compendium of Worldly Lore

Jump to: navigation, search
Tag: Manual revert
Line 3: Line 3:
{{#ask:[[Category:Spellcasting Class]]|? # -|mainlabel=-|headers=hide|format=plainlist|sep=§}}
{{#ask:[[Category:Spellcasting Class]]|? # -|mainlabel=-|headers=hide|format=plainlist|sep=§}}


Get a spellcasting class' level for a given spell
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}}
{{#ask: [[~{{{Name}}}]]|?<Class> Spell|format=plainlist|link=none|order=asc|headers=hide|mainlabel=-|class=sortable wikitable smwtable|default=none}}


Iterate through all spellcasting classes:
Iterate through all spellcasting classes:
{{#arraymap:<ITERABLE>|§|<Class>|[[<Class>|<Class> <Level>]]|,\s}}
{{#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>
--><noinclude>
{{#arraymap:{{#ask:[[Category:Spellcasting Class]]|mainlabel=-|headers=hide|? # -|sep=§}}|§|<Class>|[[<Class>|<Class> `{{#ask: [[~{{{Name}}}]]|?<Class> Spell|format=plainlist|link=none|order=asc|headers=hide|mainlabel=-|class=sortable wikitable smwtable}}`]]|,\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=-|class=sortable wikitable smwtable|default=none}}|none|[[<Class>|<Class> ``]]|}}|,\s}}

Revision as of 22:32, 1 October 2022

Anagakok ``, Archivist ``, Bard ``, Battle Mage ``, Beguiler ``, Blackguard ``, Blighter ``, Bone Knight ``, Cleric ``, Corrupt Avenger ``, Demonologist ``, Disciple of Thrym ``, Dread Necromancer ``, Druid ``, Ebonmar Infiltrator ``, Eldritch Warrior ``, Fatemaker ``, Gutter Mage ``, Harbinger ``, Healer ``, Herald of the Abyss ``, Hexblade ``, Holy Liberator ``, Jester ``, Justice of Weald and Woe ``, Knight of the Chalice ``, Knight of the Wild ``, Maho-Tsukai ``, Merchant Prince ``, Miko ``, Mortal Hunter ``, Paladin ``, Prime Underdark Guide ``, Ranger ``, Runescarred Berserker ``, Runethane ``, Savant ``, Scaled Horror ``, Shadowcaster ``, Shugenja ``, Sidhe Scholar ``, Silvertongue Charmer ``, Sohei ``, Sorcerer ``, Spellthief ``, Spirit Shaman ``, Suel Arcanamach ``, Telepath ``, Trapsmith ``, {{#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=-|class=sortable wikitable smwtable|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 DruidSpecial:Ask/-5B-5BCategory:Spellcasting-20Class-5D-5D/-3F-2D/mainlabel=-2D/limit=50/offset=50/format=plainlist/headers=hide/sep= ``|}}, [[|... further results]]