Template:Sandbox/Aurelain/LinkIcon

From Heroes of Might and Magic: Olden Era Official Wiki
Revision as of 07:18, 26 June 2026 by Aurelain (talk | contribs)


This template is meant to handle the linking of articles in a way that is language-agnostic, meaning that it can be used in language-aware infoboxes and other contexts which need to be able to handle multiple languages. This template only works with concepts which have their translation managed by Cargo.

The default assumption for the icon's filename is that it is identical to the id, plus the .png extension. This can be further configured with the prefix and suffix parameters, or be completely overridden by the filename parameter.

Usage

1. Basic (rarely used, as you usually also need to specify type and suffix):

Input: {{Sandbox/Aurelain/LinkIcon | id=magic_demon}}

Output:


2. With type:

Input: {{Sandbox/Aurelain/LinkIcon | id=skill_assault | type=skill}}

Output:


3. With suffix:

Input: {{Sandbox/Aurelain/LinkIcon | id=angel | suffix=_icon.png}}

Output:


4. With lang:

Input: {{Sandbox/Aurelain/LinkIcon | id=magic_demon || lang=ja}}

Output:


5. With size:

Input: {{Sandbox/Aurelain/LinkIcon | id=magic_demon | size=64px}}

Output:


6. With filename, to override the automated file path:

Input: {{Sandbox/Aurelain/LinkIcon | id=human_hero_1 | type=hero | filename=Ister.png}}

Output:


7. With empty filename, to disable the icon:

Input: {{Sandbox/Aurelain/LinkIcon | id=human_hero_1 | type=hero | filename=Ister.png}}

Output:


8. With text, to override the automated text:

Input: {{Sandbox/Aurelain/LinkIcon | id=human_hero_1 | type=hero | filename=Ister.png}}

Output:


9. With empty text, to disable the text:

Input: {{Sandbox/Aurelain/LinkIcon | id=human_hero_1 | type=hero | filename=Ister.png}}

Output:


10. With link, to override the automated link:

Input: {{Sandbox/Aurelain/LinkIcon | id=human_hero_1 | type=hero | filename=Ister.png}}

Output:


11. With empty link, to disable the link:

Input: {{Sandbox/Aurelain/LinkIcon | id=human_hero_1 | type=hero | filename=Ister.png}}

Output: