Template:Sandbox/Aurelain/Link/stack

From Heroes of Might and Magic: Olden Era Official Wiki


This template is called by Template:LinkIcon to display the results of its Cargo query.

Usage

1. Normal:

Input:

{{Sandbox/Aurelain/Link/stack
| filename=Ister.png
| link=Ister
| text=Ister
}}

Output: Ister


2. With type:

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

Output: Offense


3. With suffix, to override the default (.png):

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

Output: Angel


4. With lang, to override the default (en):

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

Output: ヘラルド


5. With size, to override the default (32px):

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

Output: Herald


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

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

Output: Ister


7. With empty filename, to disable the icon:

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

Output: Herald


8. With text, to override the automated text:

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

Output: Hello


9. With empty text, to disable the text:

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

Output: Herald


10. With link, to override the automated link:

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

Output: Herald


11. With empty link, to disable the link:

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

Output: Herald


12. With stack=1, to switch to a vertical layout:

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

Output: Herald