Template:Sandbox/Aurelain/SpellKnownBy

From Heroes of Might and Magic: Olden Era Official Wiki
Revision as of 14:16, 27 June 2026 by Aurelain (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


This template enumerates the heroes starting with a particular spell.

Usage

1. Basic, by passing the spell internal id):

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

Output:

<p>Error: No field named "H.id = id

</p> <pre> 'lang' = en" found for any of the specified database tables.

</pre>

2. With lang:

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

Output:

<p>Error: No field named "H.id = id

</p> <pre> 'lang' = ja" found for any of the specified database tables.

</pre>

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:

<p>Error: No field named "H.id = id

</p> <pre> 'lang' = en" found for any of the specified database tables.

</pre>