6,366
editsMore actions
Use rarity icon, combine icon cell and item name cell
(sk) |
(Use rarity icon, combine icon cell and item name cell) |
||
Line 1: | Line 1: | ||
<onlyinclude><includeonly><tr> | <onlyinclude><includeonly><tr> | ||
{{#lvardef:has_icon| {{#expr:{{#if:{{{icon|}}}|1|0}} or {{#if:{{{icon_override|}}}|1|0}} }} }} | {{#lvardef:has_icon| {{#expr:{{#if:{{{icon|}}}|1|0}} or {{#if:{{{icon_override|}}}|1|0}} }} }} | ||
<th>{{#ifeq: {{#lvar:has_icon}} | 1 | <th style="text-align: left; padding: 0.8rem" colspan="2">{{#ifeq: {{#lvar:has_icon}} | 1 | ||
<!-- if it has an icon explicitly defined... --> | <!-- if it has an icon explicitly defined... --> | ||
|{{#if: {{{icon|}}} | {{icon|{{{icon}}} }} }}{{#if: {{{icon_override|}}} | {{{icon_override}}} }} | |{{#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}}} }} | |{{ItemIcon|name={{{item}}}|show_rarity=true|no_padding=true}} | ||
}} | }} [[{{{item}}}]] {{#if: {{{note|}}}|{{{note}}} }}</th> | ||
<td style="text-align:center">{{{quantity}}}</td> | <td style="text-align:center">{{{quantity}}}</td> | ||
{{#if:{{{skip_chance|}}}||<td style="text-align:center">{{{rarity|}}}{{{chance|}}}</td>}}</tr></includeonly></onlyinclude><noinclude> | {{#if:{{{skip_chance|}}}||<td style="text-align:center">{{{rarity|}}}{{{chance|}}}</td>}}</tr></includeonly></onlyinclude><noinclude> |