Template:Skill: Difference between revisions

From Heroes of Might and Magic: Olden Era Official Wiki
N (talk | contribs)
No edit summary
No edit summary
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><!--
<includeonly><!--
-->{{LinkIcon
-->{{LinkIcon
     |id=skill_{{#replace:{{{1}}}|skill_|}}
    |lang={{#if:{{{lang|}}}|{{{lang}}}|{{{2}}}}}
     |type=skill
     |id={{#switch:{{#if:{{{id|}}}|{{{id}}}|{{{1}}}}}
     |lang={{{2}}}
        |faction_human <!-- fall -->
        |faction_humans <!-- fall -->
        |skill_faction_humans = skill_faction_humans
        |faction_demon <!-- fall -->
        |faction_demons <!-- fall -->
        |skill_faction_demons = skill_faction_demons
        |#default=skill_{{#replace:{{{1|{{{id}}}}}}|skill_|}}
        }}
     |type={{#switch:{{{level|}}}
        |=skill<!-- empty, meaning the skill family-->
        |#default=skill_level
        }}
    |variant={{#switch:{{{level|}}}
        |=<!-- empty, meaning the basic level-->
        |#default={{{level}}}
        }}
    |suffix={{#switch:{{{level|}}}
        |1<!-- fall -->
        |=<!-- empty, meaning no suffix needed for the basic level-->
        |#default=_{{{level}}}.png
        }}
     |stack={{{stack|}}}
    |width={{{width|}}}
    |wrap={{{wrap|}}}
    |size={{{size|}}}
}}<!--
}}<!--
--></includeonly><!--
--></includeonly><!--
Line 9: Line 33:
--><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 64:
* <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==
Line 64: Line 83:
{{Color|green|Output:}} {{Skill|skill_logistic|en}}
{{Color|green|Output:}} {{Skill|skill_logistic|en}}


==4. Advanced, with {{b|level}} and {{b|stack}}==
{{Color|yellow|Input:}} <code><nowiki>{{Skill|skill_logistic|en|level=3|stack=1}}</nowiki></code>
{{Color|green|Output:}} {{Skill|skill_logistic|en|level=3|stack=1}}
__NOTOC__
</noinclude>
</noinclude>

Latest revision as of 08:05, 25 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

4. Advanced, with level and stack

Input: {{Skill|skill_logistic|en|level=3|stack=1}}

Output: Expert
Logistics