Template:Sandbox/Aurelain/HeroesWithSpell

From Heroes of Might and Magic: Olden Era Official Wiki
Revision as of 10:34, 28 June 2026 by Aurelain (talk | contribs)


This template enumerates the heroes starting with a particular spell.

Usage

1. Basic, with the id of the spell:

Input: {{Sandbox/Aurelain/HeroesWithSpell | id=primal_3_magic_wean}}

Output: id=primal_3_magic_wean,lang=-,

Error: No field named "CASE WHEN H.id LIKE '%special%' THEN 'yellow' ELSE "" END" found for any of the specified database tables.

2. With lang:

Input: {{Sandbox/Aurelain/HeroesWithSpell | id=primal_3_magic_wean | lang=ja}}

Output: id=primal_3_magic_wean,lang=ja,

Error: No field named "CASE WHEN H.id LIKE '%special%' THEN 'yellow' ELSE "" END" found for any of the specified database tables.

3. When there are no heroes to match the criteria, the `wiki_none` text is displayed:

Input: {{Sandbox/Aurelain/HeroesWithSpell | id=neutral_magic_dimension_door}}

Output: id=neutral_magic_dimension_door,lang=-,

Error: No field named "CASE WHEN H.id LIKE '%special%' THEN 'yellow' ELSE "" END" found for any of the specified database tables.