Template:Sandbox/Aurelain/SpellKnownBy: Difference between revisions

From Heroes of Might and Magic: Olden Era Official Wiki
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 13: Line 13:
     AND H.id NOT LIKE 'tutorial%'
     AND H.id NOT LIKE 'tutorial%'
     AND H.id NOT LIKE 'cm_fun%'
     AND H.id NOT LIKE 'cm_fun%'
    AND T.type = 'hero'
    AND T.language = '{{{lang|en}}}'
    AND E.type = 'hero'
    AND E.language = 'en'
| fields =
| fields =
     CONCAT(E.name, '.png') = filename,
     CONCAT(E.name, '.png') = filename,
Line 24: Line 28:
| named args =
| named args =
     yes
     yes
| default = nimic
| default =
<!-- | default = {{Label|none|{{{lang|en}}}|nolink}} -->
    {{Label|none|{{{lang|en}}}|nolink}}
}}<!--
}}<!--
################################################################################
################################################################################

Latest revision as of 15:01, 27 June 2026


This template enumerates the heroes starting with a particular spell.

Usage

1. Basic:

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

Output: Leira


2. With lang:

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

Output: レイラ


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

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

Output: None