Difference between revisions of "Template:Item icon result format"
Jump to navigation
Jump to search
SurtrFan8511 (talk | contribs) |
|||
(9 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#if: <!-- define vars --> | <includeonly>{{#if: <!-- define vars --> | ||
{{#vardefine:item icon result format size|{{#if:{{{userparam|}}}| | {{#vardefine:item icon result format size|{{#if:{{{#userparam|}}}| | ||
{{#explode:{{#explode:{{{userparam}}}|,|0}}|=|1}} | {{#explode:{{#explode:{{{#userparam}}}|,|0}}|=|1}} | ||
|small}} | |small}} | ||
}} | }} | ||
{{#vardefine:item icon result format link|{{#if:{{{userparam|}}}| | {{#vardefine:item icon result format link|{{#if:{{{#userparam|}}}| | ||
{{#explode:{{#explode:{{{userparam}}}|,|1}}|=|1}} | {{#explode:{{#explode:{{{#userparam}}}|,|1}}|=|1}} | ||
|}} | |}} | ||
}} | }} | ||
{{#vardefine:item icon result format show name|{{#if:{{{userparam|}}}| | {{#vardefine:item icon result format show name|{{#if:{{{#userparam|}}}| | ||
{{#explode:{{#explode:{{{userparam}}}|,|2}}|=|1}} | {{#explode:{{#explode:{{{#userparam}}}|,|2}}|=|1}} | ||
|y}} | |y}} | ||
}} | |||
{{#vardefine:item display name|{{{Has English name}}}}} | |||
{{#ifeq:{{#var: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]]. |
Latest revision as of 05:30, 10 October 2021
Description
This template creates a item icon using query results. Used by Template:Item icon.