Template:Sandbox/Aurelain/Link/stack: Difference between revisions
From Heroes of Might and Magic: Olden Era Official Wiki
No edit summary |
No edit summary |
||
| Line 42: | Line 42: | ||
---- | ---- | ||
2. With {{b| | 2. With {{b|lang}}, to override the default (<code>en</code>): | ||
{{Color|yellow|Input:}} < | {{Color|yellow|Input:}} | ||
<pre><nowiki> | |||
{{Sandbox/Aurelain/Link/stack | |||
| filename=Ister.png | |||
| link=Ister | |||
| text=Ister | |||
| lang=ja | |||
}}</nowiki></pre> | |||
{{Color|lime|Output:}} {{Sandbox/Aurelain/ | {{Color|lime|Output:}} | ||
{{Sandbox/Aurelain/Link/stack | |||
| filename=Ister.png | |||
| link=Ister | |||
| text=Ister | |||
| lang=ja | |||
}} | |||
---- | ---- | ||
3. With {{b| | 3. With {{b|size}}, to override the default (<code>64px</code>): | ||
{{Color|yellow|Input:}} < | {{Color|yellow|Input:}} | ||
<pre><nowiki> | |||
{{Sandbox/Aurelain/Link/stack | |||
| filename=Ister.png | |||
| link=Ister | |||
| text=Ister | |||
| size=128px | |||
}}</nowiki></pre> | |||
{{Color|lime|Output:}} {{Sandbox/Aurelain/ | {{Color|lime|Output:}} | ||
{{Sandbox/Aurelain/Link/stack | |||
| filename=Ister.png | |||
| link=Ister | |||
| text=Ister | |||
| size=128px | |||
}} | |||
---- | ---- | ||
4. With {{b| | 4. With empty or missing {{b|filename}}, to disable the icon: | ||
{{Color|yellow|Input:}} < | {{Color|yellow|Input:}} | ||
<pre><nowiki> | |||
{{Sandbox/Aurelain/Link/stack | |||
| link=Ister | |||
| text=Ister | |||
}}</nowiki></pre> | |||
{{Color|lime|Output:}} {{Sandbox/Aurelain/ | {{Color|lime|Output:}} | ||
{{Sandbox/Aurelain/Link/stack | |||
| link=Ister | |||
| text=Ister | |||
}} | |||
---- | ---- | ||
5. With {{b| | 5. With empty or missing {{b|text}}, to disable the text: | ||
{{Color|yellow|Input:}} < | {{Color|yellow|Input:}} | ||
<pre><nowiki> | |||
{{Sandbox/Aurelain/Link/stack | |||
| filename=Ister.png | |||
| link=Ister | |||
}}</nowiki></pre> | |||
{{Color|lime|Output:}} {{Sandbox/Aurelain/ | {{Color|lime|Output:}} | ||
{{Sandbox/Aurelain/Link/stack | |||
| filename=Ister.png | |||
| link=Ister | |||
}} | |||
---- | ---- | ||
6. With {{b| | 6. With empty {{b|link}}, to disable the link: | ||
{{Color|yellow|Input:}} < | {{Color|yellow|Input:}} | ||
<pre><nowiki> | |||
{{Sandbox/Aurelain/Link/stack | |||
| filename=Ister.png | |||
| text=Ister | |||
}}</nowiki></pre> | |||
{{Color|lime|Output:}} | {{Color|lime|Output:}} | ||
{{Sandbox/Aurelain/Link/stack | |||
| filename=Ister.png | |||
| text=Ister | |||
}} | |||
</noinclude> | </noinclude> | ||
Revision as of 08:02, 26 June 2026
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):
Input:
{{Sandbox/Aurelain/Link/stack
| filename=Ister.png
| link=Ister
| text=Ister
| lang=ja
}}
Output:
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:
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}}}
6. With empty link, to disable the link:
Input:
{{Sandbox/Aurelain/Link/stack
| filename=Ister.png
| text=Ister
}}


