Ad placeholder

Template:Drop table row: Difference between revisions

Jump to navigation Jump to search
add icon override
(Use rarity icon, combine icon cell and item name cell)
(add icon override)
Line 1: Line 1:
<onlyinclude><includeonly><tr>
<onlyinclude><includeonly><tr>
{{#lvardef:has_icon| {{#expr:{{#if:{{{icon|}}}|1|0}} or {{#if:{{{icon_override|}}}|1|0}} }} }}
<!-- handle override -->
<th style="text-align: left; padding: 0.8rem" colspan="2">{{#ifeq: {{#lvar:has_icon}} | 1
<th style="text-align: left; padding: 0.8rem" colspan="2">{{#if: {{{icon|}}} |{{ItemIcon|name={{{item}}}|override_icon={{{icon}}}|override_rarity={{{override_rarity|common}}}|show_rarity=true|no_padding=true}}
<!-- if it has an icon explicitly defined... -->
|{{#if: {{{icon|}}} | <span class="bg3-itemicon">{{icon|{{{icon}}} }}</span> }}{{#if: {{{icon_override|}}} | {{{icon_override}}} }}
<!-- otherwise fetch icon with cargo -->
<!-- otherwise fetch icon with cargo -->
|{{ItemIcon|name={{{item}}}|show_rarity=true|no_padding=true}}
|{{ItemIcon|name={{{item}}}|show_rarity=true|no_padding=true}}

Navigation menu