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,
     IF(H.id LIKE '%special%', 'yellow', '') = color
     IF(H.id LIKE '%special%', 'yellow', "") = color
| format =
| format =
     template
     template
Line 43: Line 43:
1. Basic, with the {{b|id}} of the spell:
1. Basic, with the {{b|id}} of the spell:


{{Color|yellow|Input:}} <code><nowiki>{{Sandbox/Aurelain/HeroesWithSpell | id=primal_3_magic_wean}}</nowiki></code>
{{Color|yellow|Input:}} <code><nowiki>{{Sandbox/Aurelain/HeroesWithSpell | id=night_6_magic_deaths_grip}}</nowiki></code>


{{Color|lime|Output:}} {{Sandbox/Aurelain/HeroesWithSpell | id=primal_3_magic_wean}}
{{Color|lime|Output:}} {{Sandbox/Aurelain/HeroesWithSpell | id=night_6_magic_deaths_grip}}


----<!--=====================================================================-->
----<!--=====================================================================-->
Line 51: Line 51:
2. With {{b|lang}}:
2. With {{b|lang}}:


{{Color|yellow|Input:}} <code><nowiki>{{Sandbox/Aurelain/HeroesWithSpell | id=primal_3_magic_wean | lang=ja}}</nowiki></code>
{{Color|yellow|Input:}} <code><nowiki>{{Sandbox/Aurelain/HeroesWithSpell | id=night_6_magic_deaths_grip | lang=ja}}</nowiki></code>


{{Color|lime|Output:}} {{Sandbox/Aurelain/HeroesWithSpell | id=primal_3_magic_wean | lang=ja}}
{{Color|lime|Output:}} {{Sandbox/Aurelain/HeroesWithSpell | id=night_6_magic_deaths_grip | lang=ja}}


----<!--=====================================================================-->
----<!--=====================================================================-->
Line 59: Line 59:
3. When there are no heroes to match the criteria, the `wiki_none` text is displayed:
3. When there are no heroes to match the criteria, the `wiki_none` text is displayed:


{{Color|yellow|Input:}} <code><nowiki>{{Sandbox/Aurelain/HeroesWithSpell | id=neutral_magic_dimension_door}}</nowiki></code>
{{Color|yellow|Input:}} <code><nowiki>{{Sandbox/Aurelain/HeroesWithSpell | id=foo}}</nowiki></code>


{{Color|lime|Output:}} {{Sandbox/Aurelain/HeroesWithSpell | id=neutral_magic_dimension_door}}
{{Color|lime|Output:}} {{Sandbox/Aurelain/HeroesWithSpell | id=foo}}


</noinclude>
</noinclude>

Revision as of 10:37, 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=night_6_magic_deaths_grip}}

Output: id=night_6_magic_deaths_grip,lang=-, Shadespinner
Oona
Sister
Keiri


2. With lang:

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

Output: id=night_6_magic_deaths_grip,lang=ja, 影紡ぎのウーナ修道女ケイリ


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

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

Output: id=foo,lang=-, None