Ad placeholder

Template:Item icon: Difference between revisions

Jump to navigation Jump to search
add no padding
(Add link to icon)
(add no padding)
Line 1: Line 1:
<includeonly><onlyinclude>{{#lvardef:margin|{{#expr:0.01 * {{{size|40}}} }} }}<span class="bg3wiki-itemicon-wrapper" style="margin-left: {{#lvar:margin}}rem">{{#cargo_query:
<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:
tables=item_icon
tables=item_icon
|fields=TRIM(icon),CONCAT('', '{{{size|40}}}'),rarity,CONCAT('', '{{{show_rarity|}}}'),CONCAT('', "{{{name}}}")
|fields=TRIM(icon),CONCAT('', '{{{size|40}}}'),rarity,CONCAT('', '{{{show_rarity|}}}'),CONCAT('', "{{{name}}}")
Line 9: Line 9:
|format=template
|format=template
|template=ItemIcon Internal
|template=ItemIcon Internal
}} <span class="bg3wiki-itemicon-link" style="margin-left: {{#lvar:margin}}rem;">{{#if:{{{show_name|}}}|[[{{{name}}}]] }}</span></span></onlyinclude></includeonly><noinclude>
}} <span class="bg3wiki-itemicon-link" {{#if:{{{no_padding|}}}|style="margin-left: {{#lvar:margin}}rem"}}>{{#if:{{{show_name|}}}|[[{{{name}}}]] }}</span></span></onlyinclude></includeonly><noinclude>


{{/doc}}
{{/doc}}

Navigation menu