Template:Skill: Difference between revisions

From Heroes of Might and Magic: Olden Era Official Wiki
N (talk | contribs)
No edit summary
No edit summary
Line 1: Line 1:
<includeonly><!--
<includeonly><!--
-->{{LinkIcon
-->{{LinkIcon
     |id=skill_{{#replace:{{{1}}}|skill_|}}
     |id={{#switch:{{{1}}}
        |logistics <!-- fall -->
        |logistic <!-- fall -->
        |skill_logistic = skill_logistic
        |humans <!-- fall -->
        |human <!-- fall -->
        |skill_human = skill_human
        |demons <!-- fall -->
        |demon <!-- fall -->
        |skill_demon = skill_demon
        |#default=skill_{{#replace:{{{1}}}|skill_|}}
    }}
     |type=skill
     |type=skill
     |lang={{{2}}}
     |lang={{{2}}}
Line 9: Line 20:
--><noinclude>
--><noinclude>


A short way of linking to a skill, with localization support. The {{b|id}} is the internal ID and can be one of:
A short way of linking to a skill, with localization support. The {{b|first parameter}} is the internal ID and can be one of:
<div class="mw-collapsible mw-collapsed" style='width:max-content'>
&nbsp;
<div class="mw-collapsible-content">
* <code>assault</code> for {{Skill|assault|en}}
* <code>assault</code> for {{Skill|assault|en}}
* <code>protection</code> for {{Skill|protection|en}}
* <code>protection</code> for {{Skill|protection|en}}
Line 43: Line 51:
* <code>faction_dungeon</code> for {{Skill|faction_dungeon|en}}
* <code>faction_dungeon</code> for {{Skill|faction_dungeon|en}}
* <code>faction_nature</code> for {{Skill|faction_nature|en}}
* <code>faction_nature</code> for {{Skill|faction_nature|en}}
</div>
</div>


==1. English==
==1. English==

Revision as of 12:33, 6 August 2026


A short way of linking to a skill, with localization support. The first parameter is the internal ID and can be one of:

1. English

Input: {{Skill|logistic|en}}

Output: Logistics

2. Japanese

Input: {{Skill|logistic|ja}}

Output: 兵站学

3. With full id (including the skill_ prefix)

Input: {{Skill|skill_logistic|en}}

Output: Logistics