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 7: Line 7:
             }}]]<!--
             }}]]<!--
     --><span style='display:block; margin:2px 0 12px; font-size:small;'><!--
     --><span style='display:block; margin:2px 0 12px; font-size:small;'><!--
         -->{{#switch: {{{lang|en}}}
         -->[[{{{link}}}{{#switch: {{{lang|en}}}
             |en=
             |en=
             |#default=/{{{lang}}}
             |#default=/{{{lang}}}
Line 77: Line 77:
| text=Ister
| text=Ister
| size=128px
| size=128px
}}
----
4. With empty or missing {{b|filename}}, to disable the icon (not really useful):
{{Color|yellow|Input:}}
<pre><nowiki>
{{Sandbox/Aurelain/Link/stack
| link=Ister
| text=Ister
}}</nowiki></pre>
{{Color|lime|Output:}}
{{Sandbox/Aurelain/Link/stack
| link=Ister
| text=Ister
}}
----
5. With empty or missing {{b|text}}, to disable the text:
{{Color|yellow|Input:}}
<pre><nowiki>
{{Sandbox/Aurelain/Link/stack
| filename=Ister.png
| link=Ister
}}</nowiki></pre>
{{Color|lime|Output:}}
{{Sandbox/Aurelain/Link/stack
| filename=Ister.png
| link=Ister
}}
}}


</noinclude>
</noinclude>

Revision as of 08:41, 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) and thus change the link:

Input:

{{Sandbox/Aurelain/Link/stack
| filename=Ister.png
| link=Ister
| text=イスター
| 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