Template:Sandbox/Aurelain/HeroesWithSpell

From Heroes of Might and Magic: Olden Era Official Wiki
Revision as of 06:07, 28 June 2026 by Aurelain (talk | contribs) (Created page with "<includeonly><!-- --> id={{{id|-}}},lang={{{lang|-}}}, {{#cargo_query: tables = Hero = H, Translation = T, Translation = E | join on = H.id = T.target_id, H.id = E.target_id | where = (H.start_magics HOLDS '{{{id}}}' OR H.start_magics HOLDS '{{{id}}}_special') AND H.id NOT LIKE 'campaign%' AND H.id NOT LIKE 'tutorial%' AND H.id NOT LIKE 'cm_fun%' AND T.type = 'hero' AND T.language = '{{{lang|en}}}' AND E.type = 'hero' A...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


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=-, Leira


2. With lang:

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

Output: id=primal_3_magic_wean,lang=ja, レイラ


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=-, None