Difference between revisions of "Template:Transient icon result format"

no edit summary
(Fixed icons for protag 4*)
Line 26: Line 26:
}}
}}


{{#vardefine:icon filename|{{lc:{{{?Has filename}}}}}}}{{#ifeq: {{#explode:{{#var:icon filename|}}|0|0}} | player | {{#vardefine:icon filename|{{#var:icon filename}}_bodytype{{#expr:1+{{Random number|5}}}}}} }}
{{#vardefine:icon filename|{{lc:{{{Has filename}}}}}}}{{#ifeq: {{#explode:{{#var:icon filename|}}|0|0}} | player | {{#vardefine:icon filename|{{#var:icon filename}}_bodytype{{#expr:1+{{Random number|5}}}}}} }}


}}<!-- end vardefine -->{{#switch:{{#var:transient icon result format size}}
}}<!-- end vardefine -->{{#switch:{{#var:transient icon result format size}}


| medium = {{#ifeq:{{#var:transient icon result format frame}}|n|
| medium = {{#ifeq:{{#var:transient icon result format frame}}|n|
  {{#if:{{{?Has filename|}}}|{{#tag:mediator|https://cdn.housamo.xyz/housamo/unity/Android/icon/icon_{{#var:icon filename}}.png|width="50"|height="50"|loading=lazy}}|[[{{{?Has icon|File:Unknown icon.png}}}|50x50px|link={{#var:transient icon result format link|{{{?Transient icon subobject|}}}}}]]}}
  {{#if:{{{Has filename|}}}|{{#tag:mediator|https://cdn.housamo.xyz/housamo/unity/Android/icon/icon_{{#var:icon filename}}.png|width="50"|height="50"|loading=lazy}}|[[{{{Has icon|File:Unknown icon.png}}}|50x50px|link={{#var:transient icon result format link|{{{Transient icon subobject|}}}}}]]}}


  |<span style="position:relative; display: inline-block; width:58px; height:58px; vertical-align: middle;"><span style="position:absolute; left: 4px; top: 4px;">{{#if:{{{?Has filename|}}}|{{#tag:mediator|https://cdn.housamo.xyz/housamo/unity/Android/icon/icon_{{#var:icon filename}}.png|width="50"|height="50"|loading=lazy}}|[[{{{?Has icon|File:Unknown icon.png}}}|50x50px|link={{#var:transient icon result format link|{{{?Transient icon subobject|}}}}}]]}}</span><span style="position:absolute; width:58px; height:58px; top: 0px; left: 0px;">[[File:Icon frame rarity {{{?Has rarity|0}}}.png|58x58px|link={{#var:transient icon result format link|{{{?Transient icon subobject|}}}}}]]</span><span style="position:absolute; top: -2px; left: 3px;">[[File:{{Energy|{{{?Has energy|None}}}}} element icon.png|14x14px|link={{#var:transient icon result format link|{{{?Transient icon subobject|}}}}}]]</span><span style="position:absolute; top: -2px; left: 3px;">[[File:{{Weapon type|{{{?Has weapon type|None}}}}} weapon icon.png|14x14px|link={{#var:transient icon result format link|{{{?Transient icon subobject|}}}}}]]</span></span>
  |<span style="position:relative; display: inline-block; width:58px; height:58px; vertical-align: middle;"><span style="position:absolute; left: 4px; top: 4px;">{{#if:{{{Has filename|}}}|{{#tag:mediator|https://cdn.housamo.xyz/housamo/unity/Android/icon/icon_{{#var:icon filename}}.png|width="50"|height="50"|loading=lazy}}|[[{{{Has icon|File:Unknown icon.png}}}|50x50px|link={{#var:transient icon result format link|{{{Transient icon subobject|}}}}}]]}}</span><span style="position:absolute; width:58px; height:58px; top: 0px; left: 0px;">[[File:Icon frame rarity {{{Has rarity|0}}}.png|58x58px|link={{#var:transient icon result format link|{{{Transient icon subobject|}}}}}]]</span><span style="position:absolute; top: -2px; left: 3px;">[[File:{{Energy|{{{Has energy|None}}}}} element icon.png|14x14px|link={{#var:transient icon result format link|{{{Transient icon subobject|}}}}}]]</span><span style="position:absolute; top: -2px; left: 3px;">[[File:{{Weapon type|{{{Has weapon type|None}}}}} weapon icon.png|14x14px|link={{#var:transient icon result format link|{{{Transient icon subobject|}}}}}]]</span></span>
}}
}}
| large = {{#ifeq:{{#var:transient icon result format frame}}|n|{{#if:{{{?Has filename|}}}|{{#tag:mediator|https://cdn.housamo.xyz/housamo/unity/Android/icon/icon_{{#var:icon filename}}.png|width="116"|height="116"|loading=lazy}}|[[{{{?Has icon|File:Unknown icon.png}}}|link={{#var:transient icon result format link|{{{?Transient icon subobject|}}}}}]]}}|<span style="position:relative; display: inline-block; width:116px; height:116px; vertical-align: middle;"><span style="position:absolute; left: 8px; top: 8px;">{{#if:{{{?Has filename|}}}|{{#tag:mediator|https://cdn.housamo.xyz/housamo/unity/Android/icon/icon_{{#var:icon filename}}.png|width="116"|height="116"|loading=lazy}}|[[{{{?Has icon|File:Unknown icon.png}}}|link={{#var:transient icon result format link|{{{?Transient icon subobject|}}}}}]]}}</span><span style="position:absolute; width:116px; height:116px; top: 0px; left: 0px;">[[File:Icon frame rarity {{{?Has rarity|0}}}.png|116x116px|link={{#var:transient icon result format link|{{{?Transient icon subobject|}}}}}]]</span><span style="position:absolute; top: 6px; left: 6px;">[[File:{{Energy|{{{?Has energy|None}}}}} element icon.png|29x29px|link={{#var:transient icon result format link|{{{?Transient icon subobject|}}}}}]]</span><span style="position:absolute; top: 6px; left: 6px;">[[File:{{Weapon type|{{{?Has weapon type|None}}}}} weapon icon.png|29x29px|link={{#var:transient icon result format link|{{{?Transient icon subobject|}}}}}]]</span></span>
| large = {{#ifeq:{{#var:transient icon result format frame}}|n|{{#if:{{{Has filename|}}}|{{#tag:mediator|https://cdn.housamo.xyz/housamo/unity/Android/icon/icon_{{#var:icon filename}}.png|width="116"|height="116"|loading=lazy}}|[[{{{Has icon|File:Unknown icon.png}}}|link={{#var:transient icon result format link|{{{Transient icon subobject|}}}}}]]}}|<span style="position:relative; display: inline-block; width:116px; height:116px; vertical-align: middle;"><span style="position:absolute; left: 8px; top: 8px;">{{#if:{{{Has filename|}}}|{{#tag:mediator|https://cdn.housamo.xyz/housamo/unity/Android/icon/icon_{{#var:icon filename}}.png|width="116"|height="116"|loading=lazy}}|[[{{{Has icon|File:Unknown icon.png}}}|link={{#var:transient icon result format link|{{{Transient icon subobject|}}}}}]]}}</span><span style="position:absolute; width:116px; height:116px; top: 0px; left: 0px;">[[File:Icon frame rarity {{{Has rarity|0}}}.png|116x116px|link={{#var:transient icon result format link|{{{Transient icon subobject|}}}}}]]</span><span style="position:absolute; top: 6px; left: 6px;">[[File:{{Energy|{{{Has energy|None}}}}} element icon.png|29x29px|link={{#var:transient icon result format link|{{{Transient icon subobject|}}}}}]]</span><span style="position:absolute; top: 6px; left: 6px;">[[File:{{Weapon type|{{{Has weapon type|None}}}}} weapon icon.png|29x29px|link={{#var:transient icon result format link|{{{Transient icon subobject|}}}}}]]</span></span>
}}
}}
| small
| small
|#default = {{#ifeq:{{#var:transient icon result format frame}}|n|{{#if:{{{?Has filename|}}}|{{#tag:mediator|https://cdn.housamo.xyz/housamo/unity/Android/icon/icon_{{#var:icon filename}}.png|width="20"|height="20"|loading=lazy}}|[[{{{?Has icon|File:Unknown icon.png}}}|20x20px|link={{#var:transient icon result format link|{{{?Transient icon subobject|}}}}}]]}}|<span style="position: relative; display: inline-block; width: 20px; height: 20px; vertical-align: top;"><span style="position: absolute; top: 0px; left: 0px">[[File:{{Energy|{{{?Has energy|None}}}}} element icon.png|20x20px|link={{#var:transient icon result format link|{{{?Transient icon subobject|}}}}}]]</span><span style="position:absolute; top: 0px; left: 0px;">[[File:{{Weapon type|{{{?Has weapon type|None}}}}} weapon icon.png|20x20px|link={{#var:transient icon result format link|{{{?Transient icon subobject|}}}}}]]</span></span>{{#if:{{{?Has filename|}}}|{{#tag:mediator|https://cdn.housamo.xyz/housamo/unity/Android/icon/icon_{{#var:icon filename}}.png|width="20"|height="20"|loading=lazy}}|[[{{{?Has icon|File:Unknown icon.png}}}|20x20px|link={{#var:transient icon result format link|{{{?Transient icon subobject|}}}}}]]}}}}}}<!--name control-->{{#ifeq: {{#var:transient icon result format show name}}|y|&#32;[[{{#var:transient icon result format link|{{{?Transient icon subobject|}}}}}{{#if:{{{?Has English name|}}}|{{!}}{{{?Has English name}}}{{#ifeq:{{{?Has variant|}}}|Standard||&#32;({{{?Has variant}}})}}}}]]}}</includeonly><noinclude>== Description ==
|#default = {{#ifeq:{{#var:transient icon result format frame}}|n|{{#if:{{{Has filename|}}}|{{#tag:mediator|https://cdn.housamo.xyz/housamo/unity/Android/icon/icon_{{#var:icon filename}}.png|width="20"|height="20"|loading=lazy}}|[[{{{Has icon|File:Unknown icon.png}}}|20x20px|link={{#var:transient icon result format link|{{{Transient icon subobject|}}}}}]]}}|<span style="position: relative; display: inline-block; width: 20px; height: 20px; vertical-align: top;"><span style="position: absolute; top: 0px; left: 0px">[[File:{{Energy|{{{Has energy|None}}}}} element icon.png|20x20px|link={{#var:transient icon result format link|{{{Transient icon subobject|}}}}}]]</span><span style="position:absolute; top: 0px; left: 0px;">[[File:{{Weapon type|{{{Has weapon type|None}}}}} weapon icon.png|20x20px|link={{#var:transient icon result format link|{{{Transient icon subobject|}}}}}]]</span></span>{{#if:{{{Has filename|}}}|{{#tag:mediator|https://cdn.housamo.xyz/housamo/unity/Android/icon/icon_{{#var:icon filename}}.png|width="20"|height="20"|loading=lazy}}|[[{{{Has icon|File:Unknown icon.png}}}|20x20px|link={{#var:transient icon result format link|{{{Transient icon subobject|}}}}}]]}}}}}}<!--name control-->{{#ifeq: {{#var:transient icon result format show name}}|y|&#32;[[{{#var:transient icon result format link|{{{Transient icon subobject|}}}}}{{#if:{{{Has English name|}}}|{{!}}{{{Has English name}}}{{#ifeq:{{{Has variant|}}}|Standard||&#32;({{{Has variant}}})}}}}]]}}</includeonly><noinclude>== Description ==


This template creates a transient icon using query results. Used by [[Template:Transient icon]].
This template creates a transient icon using query results. Used by [[Template:Transient icon]].
trusted
5,920

edits