Template:Sandbox/Aurelain/HeroesWithSpell: Difference between revisions

From Heroes of Might and Magic: Olden Era Official Wiki
No edit summary
No edit summary
Line 24: Line 24:
     T.name = text,
     T.name = text,
     T.language = lang,
     T.language = lang,
     CASE WHEN H.id LIKE '%special%' THEN 'yellow' ELSE "" END = color
     IF(H.id LIKE '%special%', 'yellow', '') = color
| format =
| format =
     template
     template

Revision as of 10:36, 28 June 2026


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