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 lang, to override the default (en) and thus change the link:

Input:

{{Sandbox/Aurelain/Link/stack
| filename=Ister.png
| link=Ister
| text=イスター
| lang=ja
}}

Output: /ja|Ister]]


3. With size, to override the default (64px):

Input:

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

Output: |Ister]]


4. With empty or missing filename, to disable the icon (not really useful):

Input:

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

Output: [[File:{{{filename}}} | 64px | link=Ister]]|Ister]]


5. With empty or missing text, to disable the text:

Input:

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

Output: |{{{text}}}]]