Ad placeholder

Template:Item icon: Difference between revisions

Jump to navigation Jump to search
fix css style name
(Change margin between icon and text to be "1ch" instead of dynamic)
(fix css style name)
Line 1: Line 1:
<includeonly><onlyinclude>{{#lvardef:margin|{{#expr:0.015 * {{{size|40}}} }} }}{{#lvardef:size|{{{size|40}}} }}<span class="bg3wiki-itemicon-wrapper" style="{{#if:{{{no_padding|}}}||"margin-left: {{#lvar:margin}}rem;}}{{#if:{{{wrap|}}}|white-space:normal;|white-space:no-wrap;}}">{{#if:{{{override_icon|}}}|{{ItemIcon Internal|{{{override_icon}}}|{{#lvar:size}}|{{{override_rarity}}}|{{{show_rarity|}}}|{{{name}}} }}|{{#cargo_query:
<includeonly><onlyinclude>{{#lvardef:margin|{{#expr:0.015 * {{{size|40}}} }} }}{{#lvardef:size|{{{size|40}}} }}<span class="bg3wiki-itemicon-wrapper" style="{{#if:{{{no_padding|}}}||"margin-left: {{#lvar:margin}}rem;}}{{#if:{{{wrap|}}}|white-space:normal;|white-space:nowrap;}}">{{#if:{{{override_icon|}}}|{{ItemIcon Internal|{{{override_icon}}}|{{#lvar:size}}|{{{override_rarity}}}|{{{show_rarity|}}}|{{{name}}} }}|{{#cargo_query:
tables=item_icon
tables=item_icon
|fields=TRIM(icon),CONCAT('', '{{#lvar:size}}'),LOWER(rarity),CONCAT('', '{{{show_rarity|}}}'),CONCAT('', "{{{name}}}")
|fields=TRIM(icon),CONCAT('', '{{#lvar:size}}'),LOWER(rarity),CONCAT('', '{{{show_rarity|}}}'),CONCAT('', "{{{name}}}")

Navigation menu