6,366
editsAd placeholder
Template:Item icon: Difference between revisions
Jump to navigation
Jump to search
implement no-padding properly
(add no padding) |
(implement no-padding properly) |
||
Line 1: | Line 1: | ||
<includeonly><onlyinclude>{{#lvardef:margin|{{#expr:0.01 * {{{size|40}}} }} }} | <includeonly><onlyinclude>{{#lvardef:margin|{{#expr:0.01 * {{{size|40}}} }} }}{{#lvardef:margin_style|{{#if:{{{no_padding|}}}||style="margin-left: {{#lvar:margin}}rem"}}<span class="bg3wiki-itemicon-wrapper" {{#lvar:margin_style}}>{{#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" | }} <span class="bg3wiki-itemicon-link" {{#lvar:margin_style}}>{{#if:{{{show_name|}}}|[[{{{name}}}]] }}</span></span></onlyinclude></includeonly><noinclude> | ||
{{/doc}} | {{/doc}} |