698
edits
(toosmall) |
(add show name parameter; don't change small size to medium size when medium size already exists) |
||
Line 14: | Line 14: | ||
{{#explode:{{#explode:{{{userparam}}}|,|2}}|=|1}} | {{#explode:{{#explode:{{{userparam}}}|,|2}}|=|1}} | ||
|}} | |}} | ||
}} | |||
{{#vardefine:companion icon result format show name|{{#if:{{{userparam|}}}| | |||
{{#explode:{{#explode:{{{userparam}}}|,|3}}|=|1}} | |||
|n}} | |||
}} | }} | ||
Line 32: | Line 37: | ||
| small | | small | ||
|#default = {{#ifeq:{{#var:companion icon result format frame}}|n| | |#default = {{#ifeq:{{#var:companion icon result format frame}}|n| | ||
[[{{{?Has icon|File:Unknown icon.png}}}|20x20px|link={{#var:companion icon result format link|{{{?Companion icon subobject|}}} | [[{{{?Has icon|File:Unknown icon.png}}}|20x20px|link={{#var:companion icon result format link|{{{?Companion icon subobject|}}}}}]] | ||
|<span style="position: relative; display: inline-block; width: | |<span style="position: relative; display: inline-block; width: 20px; height: 20px; vertical-align: top;"><span style="position: absolute; top: 0px; left: 0px">[[File:{{Element|{{{?Has element|None}}}}} element icon.png|20x20px|link={{#var:companion icon result format link|{{{?Companion icon subobject|}}}}}]]</span><span style="position:absolute; top: 0px; left: 0px;">[[File:{{Weapon type|{{{?Has weapon type|None}}}}} weapon icon.png|20x20px|link={{#var:companion icon result format link|{{{?Companion icon subobject|}}}}}]]</span></span>[[{{{?Has icon|File:Unknown icon.png}}}|20x20px|link={{#var:companion icon result format link|{{{?Companion icon subobject|}}}}}]] | ||
}} | }} | ||
}}{{#ifeq: {{#var:companion icon result format show name}}|y| | |||
 [[{{#var:companion icon result format link|{{{?Companion icon subobject|}}}}}|{{{?Has English name}}} {{#ifeq:{{{?Has variant|}}} | Standard | | ({{{?Has variant}}})}}]] | |||
}}</includeonly><noinclude>== Description == | }}</includeonly><noinclude>== Description == | ||
edits