Template:Sandbox/Aurelain/Link/stack: Difference between revisions
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'><!-- | ||
-->[[File:{{{filename}}}|{{{size|64px}}}|link={{{link}}}{{ | -->{{#if:{{{filename|}} | ||
|[[File:{{{filename}}}|{{{size|64px}}}|link={{{link}}}{{ | |||
#switch: {{{lang|en}}} | #switch: {{{lang|en}}} | ||
|en= | |en= | ||
|#default=/{{{lang}}} | |#default=/{{{lang}}} | ||
}} | }} | ||
]]<!-- | ]]}}<!-- | ||
--><span style='display:block; margin:2px 0 12px; font-size:small;'><!-- | --><span style='display:block; margin:2px 0 12px; font-size:small;'><!-- | ||
-->[[{{{link}}}{{ | -->[[{{{link}}}{{ | ||
| Line 17: | Line 18: | ||
#################################################################### | #################################################################### | ||
--></includeonly><noinclude> | --></includeonly><noinclude> | ||
This template is called by [[Template:LinkIcon]] to display the results of its Cargo query. | |||
===Usage=== | |||
1. Normal: | |||
{{Color|yellow|Input:}} | {{Color|yellow|Input:}} | ||
<pre><nowiki> | <pre><nowiki> | ||
{{Sandbox/Aurelain/Link/stack | {{Sandbox/Aurelain/Link/stack | ||
| | | filename=Ister.png | ||
| | | link=Ister | ||
| | | text=Ister | ||
}}</nowiki></pre> | |||
}} | |||
</nowiki></pre> | |||
{{Color|lime|Output:}} | {{Color|lime|Output:}} | ||
{{Sandbox/Aurelain/Link/stack | {{Sandbox/Aurelain/Link/stack | ||
| | | filename=Ister.png | ||
| | | link=Ister | ||
| | | text=Ister | ||
}} | }} | ||
---- | |||
2. With {{b|type}}: | |||
{{Color|yellow|Input:}} <code><nowiki>{{Sandbox/Aurelain/LinkIcon | id=skill_assault | type=skill}}</nowiki></code> | |||
{{Color|lime|Output:}} {{Sandbox/Aurelain/LinkIcon | id=skill_assault | type=skill}} | |||
---- | |||
3. With {{b|suffix}}, to override the default (<code>.png</code>): | |||
{{Color|yellow|Input:}} <code><nowiki>{{Sandbox/Aurelain/LinkIcon | id=angel | suffix=_icon.png}}</nowiki></code> | |||
{{Color|lime|Output:}} {{Sandbox/Aurelain/LinkIcon | id=angel | suffix=_icon.png}} | |||
---- | |||
4. With {{b|lang}}, to override the default (<code>en</code>): | |||
{{Color|yellow|Input:}} <code><nowiki>{{Sandbox/Aurelain/LinkIcon | id=magic_demon || lang=ja}}</nowiki></code> | |||
{{Color|lime|Output:}} {{Sandbox/Aurelain/LinkIcon | id=magic_demon || lang=ja}} | |||
---- | |||
5. With {{b|size}}, to override the default (<code>32px</code>): | |||
{{Color|yellow|Input:}} <code><nowiki>{{Sandbox/Aurelain/LinkIcon | id=magic_demon | size=64px}}</nowiki></code> | |||
{{Color|lime|Output:}} {{Sandbox/Aurelain/LinkIcon | id=magic_demon | size=64px}} | |||
---- | |||
6. With {{b|filename}}, to override the automated file path: | |||
{{Color|yellow|Input:}} <code><nowiki>{{Sandbox/Aurelain/LinkIcon | id=human_hero_1 | type=hero | filename=Ister.png}}</nowiki></code> | |||
{{Color|lime|Output:}} {{Sandbox/Aurelain/LinkIcon | id=human_hero_1 | type=hero | filename=Ister.png}} | |||
---- | |||
7. With empty {{b|filename}}, to disable the icon: | |||
{{Color|yellow|Input:}} <code><nowiki>{{Sandbox/Aurelain/LinkIcon | id=magic_demon | filename=}}</nowiki></code> | |||
{{Color|lime|Output:}} {{Sandbox/Aurelain/LinkIcon | id=magic_demon | filename=}} | |||
---- | |||
8. With {{b|text}}, to override the automated text: | |||
{{Color|yellow|Input:}} <code><nowiki>{{Sandbox/Aurelain/LinkIcon | id=magic_demon | text=Hello}}</nowiki></code> | |||
{{Color|lime|Output:}} {{Sandbox/Aurelain/LinkIcon | id=magic_demon | text=Hello}} | |||
---- | |||
9. With empty {{b|text}}, to disable the text: | |||
{{Color|yellow|Input:}} <code><nowiki>{{Sandbox/Aurelain/LinkIcon | id=magic_demon | text=}}</nowiki></code> | |||
{{Color|lime|Output:}} {{Sandbox/Aurelain/LinkIcon | id=magic_demon | text=}} | |||
---- | |||
10. With {{b|link}}, to override the automated link: | |||
{{Color|yellow|Input:}} <code><nowiki>{{Sandbox/Aurelain/LinkIcon | id=magic_demon | link=Heroes}}</nowiki></code> | |||
{{Color|lime|Output:}} {{Sandbox/Aurelain/LinkIcon | id=magic_demon | link=Heroes}} | |||
---- | |||
11. With empty {{b|link}}, to disable the link: | |||
{{Color|yellow|Input:}} <code><nowiki>{{Sandbox/Aurelain/LinkIcon | id=magic_demon | link=}}</nowiki></code> | |||
{{Color|lime|Output:}} {{Sandbox/Aurelain/LinkIcon | id=magic_demon | link=}} | |||
---- | |||
12. With {{b|1=stack=1}}, to switch to a vertical layout: | |||
{{Color|yellow|Input:}} <code><nowiki>{{Sandbox/Aurelain/LinkIcon | id=magic_demon | stack=1}}</nowiki></code> | |||
{{Color|lime|Output:}} {{Sandbox/Aurelain/LinkIcon | id=magic_demon | stack=1}} | |||
</noinclude> | </noinclude> | ||
Revision as of 07:55, 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 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


