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 1: Line 1:
<includeonly><!--
<includeonly><!--
--><span style='display:inline-block;vertical-align:top;width:100px;text-align:center;line-height:1.1'><!--
--><span style='display:inline-block;vertical-align:top;width:100px;text-align:center;line-height:1.1'><!--
   -->{{#if:{{{filename|}}
   -->{{#if:{{{filename|}}}
|[[File:{{{filename}}}|{{{size|64px}}}|link={{{link}}}{{
        |[[File:{{{filename}}} | {{{size|64px}}} | link=<!--
#switch: {{{lang|en}}}
        -->{{#if:{{{link|}}}
|en=
            |{{#switch: {{{lang|en}}}
|#default=/{{{lang}}}
                |en={{{link}}}
}}
                |#default={{{link}}}/{{{lang}}}
]]}}<!--
            }}<!-- end switch lang -->
        }}<!-- end if link -->
        ]]<!--
  -->}}<!-- end if filename --><!--
   --><span style='display:block; margin:2px 0 12px; font-size:small;'><!--
   --><span style='display:block; margin:2px 0 12px; font-size:small;'><!--
       -->[[{{{link}}}{{
       -->[[{{{link}}}{{

Revision as of 08:16, 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: 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
}}

Output: [[{{{link}}}|Ister]]