Bureaucrats, Interface administrators, Administrators (Semantic MediaWiki), Curators (Semantic MediaWiki), Editors (Semantic MediaWiki), Administrators
10,686
edits
m (Mrquiggles moved page Template:Companion icon result format to Template:Transient icon result format) |
|||
Line 1: | Line 1: | ||
<includeonly>{{#if: <!-- define vars --> | <includeonly>{{#if: <!-- define vars --> | ||
{{#vardefine: | {{#vardefine:transient icon result format frame|{{#if:{{{userparam|}}}| | ||
{{#explode:{{#explode:{{{userparam}}}|,|0}}|=|1}} | {{#explode:{{#explode:{{{userparam}}}|,|0}}|=|1}} | ||
|n}} | |n}} | ||
}} | }} | ||
{{#vardefine: | {{#vardefine:transient icon result format size|{{#if:{{{userparam|}}}| | ||
{{#explode:{{#explode:{{{userparam}}}|,|1}}|=|1}} | {{#explode:{{#explode:{{{userparam}}}|,|1}}|=|1}} | ||
|small}} | |small}} | ||
}} | }} | ||
{{#vardefine: | {{#vardefine:transient icon result format link|{{#if:{{{userparam|}}}| | ||
{{#explode:{{#explode:{{{userparam}}}|,|2}}|=|1}} | {{#explode:{{#explode:{{{userparam}}}|,|2}}|=|1}} | ||
|}} | |}} | ||
}} | }} | ||
{{#vardefine: | {{#vardefine:transient icon result format show name|{{#if:{{{userparam|}}}| | ||
{{#explode:{{#explode:{{{userparam}}}|,|3}}|=|1}} | {{#explode:{{#explode:{{{userparam}}}|,|3}}|=|1}} | ||
|n}} | |n}} | ||
}} | }} | ||
}}<!-- end vardefine -->{{#switch:{{#var: | }}<!-- end vardefine -->{{#switch:{{#var:transient icon result format size}} | ||
| medium = {{#ifeq:{{#var: | | medium = {{#ifeq:{{#var:transient icon result format frame}}|n| | ||
[[{{{?Has icon|File:Unknown icon.png}}}|50x50px|link={{#var: | [[{{{?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;">[[{{{?Has icon|File:Unknown icon.png}}}|50x50px|link={{#var: | |<span style="position:relative; display: inline-block; width:58px; height:58px; vertical-align: middle;"><span style="position:absolute; left: 4px; top: 4px;">[[{{{?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: | | large = {{#ifeq:{{#var:transient icon result format frame}}|n|[[{{{?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;">[[{{{?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: | |#default = {{#ifeq:{{#var:transient icon result format frame}}|n|[[{{{?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>[[{{{?Has icon|File:Unknown icon.png}}}|20x20px|link={{#var:transient icon result format link|{{{?Transient icon subobject|}}}}}]]}}}}{{#ifeq: {{#var:transient icon result format show name}}|y| [[{{#var:transient icon result format link|{{{?Transient icon subobject|}}}}}|{{{?Has English name}}}{{#ifeq:{{{?Has variant|}}}|Standard||{{spaces|1}}({{{?Has variant}}})}}]]}}</includeonly><noinclude>== Description == | ||
This template creates a | This template creates a transient icoon using query results. Used by [[Template:Transient icon]]. | ||
[[Category:Formatting Templates]] | [[Category:Formatting Templates]] | ||
</noinclude> | </noinclude> |