Difference between revisions of "Template:Item icon result format"
Jump to navigation
Jump to search
SurtrFan8511 (talk | contribs) (we lazy) |
SurtrFan8511 (talk | contribs) |
||
Line 16: | Line 16: | ||
}} | }} | ||
{{#vardefine:item display name|{{{ | {{#vardefine:item display name|{{{Has English name}}}}} | ||
{{#ifeq:{{#var:item display name|}}|| | {{#ifeq:{{#var:item display name|}}|| | ||
{{#vardefine:item display name|{{{ | {{#vardefine:item display name|{{{Has Japanese name}}}}} | ||
}} | }} | ||
}}<!-- end vardefine -->{{#switch:{{#var:item icon result format size}} | }}<!-- end vardefine -->{{#switch:{{#var:item icon result format size}} | ||
| medium = {{#if:{{{ | | medium = {{#if:{{{Has filename|}}}|{{#tag:mediator|https://cdn.housamo.xyz/housamo/unity/Android/icon_item/icon_item_{{lc:{{{Has filename}}}}}.png|width="50"|height="50"|loading=lazy}}|[[{{{Has icon|File:Unknown icon.png}}}|50x50px|link={{#var:item icon result format link|{{{Item icon subobject|}}}}}]]}} | ||
| large = {{#if:{{{ | | large = {{#if:{{{Has filename|}}}|{{#tag:mediator|https://cdn.housamo.xyz/housamo/unity/Android/icon_item/icon_item_{{lc:{{{Has filename}}}}}.png|width="116"|height="116"|loading=lazy}}|[[{{{Has icon|File:Unknown icon.png}}}|link={{#var:item icon result format link|{{{Item icon subobject|}}}}}]]}} | ||
| small | | small | ||
|#default = {{#if:{{{ | |#default = {{#if:{{{Has filename|}}}|{{#tag:mediator|https://cdn.housamo.xyz/housamo/unity/Android/icon_item/icon_item_{{lc:{{{Has filename}}}}}.png|width="20"|height="20"|loading=lazy}}|[[{{{Has icon|File:Unknown icon.png}}}|20x20px|link={{#var:item icon result format link|{{{Item icon subobject|}}}}}]]}}{{#ifeq: {{#var:item icon result format show name}}|y| <abbr title="{{{Has description}}}">{{#var:item display name|Unknown item}}</abbr>}}}}</includeonly><noinclude>== Description == | ||
This template creates a item icon using query results. Used by [[Template:Item icon]]. | This template creates a item icon using query results. Used by [[Template:Item icon]]. |
Revision as of 05:05, 10 October 2021
Description
This template creates a item icon using query results. Used by Template:Item icon.