Difference between revisions of "Template:Transient icon result format"
Jump to navigation
Jump to search
SurtrFan8511 (talk | contribs) (Undo revision 36199 by SurtrFan8511 (talk) pls mama no lag) |
|||
(3 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#if: <!-- define vars --> | <includeonly>{{#if: <!-- define vars --> | ||
{{#vardefine:transient icon result format frame|{{#if:{{{userparam|}}}| | {{#vardefine:transient icon result format frame|{{#if:{{{#userparam|}}}| | ||
{{#explode:{{#explode:{{{userparam}}}|,|0}}|=|1}} | {{#explode:{{#explode:{{{#userparam}}}|,|0}}|=|1}} | ||
|n}} | |n}} | ||
}} | }} | ||
{{#vardefine:transient icon result format size|{{#if:{{{userparam|}}}| | {{#vardefine:transient icon result format size|{{#if:{{{#userparam|}}}| | ||
{{#explode:{{#explode:{{{userparam}}}|,|1}}|=|1}} | {{#explode:{{#explode:{{{#userparam}}}|,|1}}|=|1}} | ||
|small}} | |small}} | ||
}} | }} | ||
{{#vardefine:transient icon result format link|{{#if:{{{userparam|}}}| | {{#vardefine:transient icon result format link|{{#if:{{{#userparam|}}}| | ||
{{#explode:{{#explode:{{{userparam}}}|,|2}}|=|1}} | {{#explode:{{#explode:{{{#userparam}}}|,|2}}|=|1}} | ||
|}} | |}} | ||
}} | }} | ||
{{#vardefine:transient icon result format show name|{{#if:{{{userparam|}}}| | {{#vardefine:transient icon result format show name|{{#if:{{{#userparam|}}}| | ||
{{#explode:{{#explode:{{{userparam}}}|,|3}}|=|1}} | {{#explode:{{#explode:{{{#userparam}}}|,|3}}|=|1}} | ||
|n}} | |n}} | ||
}} | }} | ||
{{#vardefine:transient icon result format skin|{{#if:{{{userparam|}}}| | {{#vardefine:transient icon result format skin|{{#if:{{{#userparam|}}}| | ||
{{#explode:{{#explode:{{{userparam}}}|,|4}}|=|1}} | {{#explode:{{#explode:{{{#userparam}}}|,|4}}|=|1}} | ||
|}} | |}} | ||
}} | }} | ||
{{#vardefine:icon filename|{{lc:{{{ | {{#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:{{{ | {{#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 class="transient-icon-medium"><span class="transient-icon-char">{{#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 class="transient-icon-rarity">[[File:Icon frame rarity {{{Has rarity|0}}}.png|58x58px|link={{#var:transient icon result format link|{{{Transient icon subobject|}}}}}]]</span><span class="transient-icon-energy">[[File:{{Energy|{{{Has energy|None}}}}} element icon.png|14x14px|link={{#var:transient icon result format link|{{{Transient icon subobject|}}}}}]]</span><span class="transient-icon-weapon">[[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:{{{ | | 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 class="transient-icon-large"><span class="transient-icon-char">{{#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 class="transient-icon-rarity">[[File:Icon frame rarity {{{Has rarity|0}}}.png|116x116px|link={{#var:transient icon result format link|{{{Transient icon subobject|}}}}}]]</span><span class="transient-icon-energy">[[File:{{Energy|{{{Has energy|None}}}}} element icon.png|29x29px|link={{#var:transient icon result format link|{{{Transient icon subobject|}}}}}]]</span><span class="transient-icon-weapon">[[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:{{{ | |#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 class="transient-icon-small"><span class="transient-icon-energy">[[File:{{Energy|{{{Has energy|None}}}}} element icon.png|20x20px|link={{#var:transient icon result format link|{{{Transient icon subobject|}}}}}]]</span><span class="transient-icon-weapon">[[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| [[{{#var:transient icon result format link|{{{Transient icon subobject|}}}}}{{#if:{{{Has English name|}}}|{{!}}{{{Has English name}}}{{#ifeq:{{{Has variant|}}}|Standard|| ({{{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]]. |
Latest revision as of 23:14, 20 June 2022
Description
This template creates a transient icon using query results. Used by Template:Transient icon.