Ad placeholder

Template:Item icon: Difference between revisions

Jump to navigation Jump to search
Add missing default, wip
(make no-padding only affect externally)
(Add missing default, wip)
Line 1: Line 1:
<includeonly><onlyinclude>{{#lvardef:margin|{{#expr:0.01 * {{{size|40}}} }} }}<span class="bg3wiki-itemicon-wrapper" {{#if:{{{no_padding|}}}||style="margin-left: {{#lvar:margin}}rem"}}>{{#cargo_query:
<includeonly><onlyinclude>{{#lvardef:margin|{{#expr:0.01 * {{{size|40}}} }} }}{{#lvardef:size|{{{size|40}}} }}<span class="bg3wiki-itemicon-wrapper" {{#if:{{{no_padding|}}}||style="margin-left: {{#lvar:margin}}rem"}}>{{#cargo_query:
tables=item_icon
tables=item_icon
|fields=TRIM(icon),CONCAT('', '{{{size|40}}}'),rarity,CONCAT('', '{{{show_rarity|}}}'),CONCAT('', "{{{name}}}")
|fields=TRIM(icon),CONCAT('', '{{#lvar:size}}'),rarity,CONCAT('', '{{{show_rarity|}}}'),CONCAT('', "{{{name}}}")
|where=item_icon._pageName="{{{name}}}"
|where=item_icon._pageName="{{{name}}}"
|limit=1
|limit=1
|order by=item_icon._pageName
|order by=item_icon._pageName
|default=
|default={{ItemIcon Internal|{{{name}}} Item Icon.png|{{#lvar:size}}|common| true|{{{name}}}|missing=true}}
|more results text=
|more results text=
|format=template
|format=template

Navigation menu