Template:Sandbox/Aurelain/SpellKnownBy: Difference between revisions

From Heroes of Might and Magic: Olden Era Official Wiki
Created page with "<includeonly><!-- -->{{#cargo_query: tables = Hero = H | where = H.start_magics HOLDS LIKE '%{{{id}}}%' | fields = H.id = id 'lang' = {{{lang|en}}} | format = template | template = LinkIcon | default = {{Label|wiki_none|{{{lang|en}}}}} }}<!-- ################################################################################ --></includeonly><noinclude> This template enumerates the heroes starting with a particular spell. ===Usage=== 1. Basic, by..."
 
No edit summary
Line 6: Line 6:
     H.start_magics HOLDS LIKE '%{{{id}}}%'
     H.start_magics HOLDS LIKE '%{{{id}}}%'
| fields =
| fields =
     H.id = id
     H.id = id,
     'lang' = {{{lang|en}}}
     'lang' = {{{lang|en}}}
| format =
| format =
Line 21: Line 21:
===Usage===
===Usage===


1. Basic, by passing the spell internal {{b|id}}):
1. Basic:


{{Color|yellow|Input:}} <code><nowiki>{{Sandbox/Aurelain/SpellKnownBy | id=day_2_magic_sharp_edge}}</nowiki></code>
{{Color|yellow|Input:}} <code><nowiki>{{Sandbox/Aurelain/SpellKnownBy | id=day_2_magic_sharp_edge}}</nowiki></code>

Revision as of 14:17, 27 June 2026


This template enumerates the heroes starting with a particular spell.

Usage

1. Basic:

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

Output:

Identifier must not contain quote, dot or null characters: got lang

2. With lang:

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

Output:

Identifier must not contain quote, dot or null characters: got lang

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:

Identifier must not contain quote, dot or null characters: got lang