Ad placeholder

Template:Drop table row: Difference between revisions

Jump to navigation Jump to search
m
trial and erroring
(fix icon_override)
m (trial and erroring)
Line 1: Line 1:
<onlyinclude><includeonly><tr>
<onlyinclude><includeonly><tr>
{{#lvardef:has_icon|{{#expr:{{{icon|}}} or {{{icon_override|}}} }} }}
{{#lvardef:has_icon|{{#expr:{{{icon|}}} or {{{icon_override|}}} }} }}
<th>{{#if: {{#lvar:has_icon}}
<th>{{#ifeq: {{#lvar:has_icon}} | 1
|{{#if: {{{icon|}}} | {{icon|{{{icon}}} }} }} {{#if: {{{icon_override|}}} | {{{icon_override}}} }}
<!-- if it has an icon explicitly defined... -->
|{{#if: {{{icon|}}} | {{icon|{{{icon}}} }} }}{{#if: {{{icon_override|}}} | {{{icon_override}}} }}
<!-- otherwise fetch icon with cargo -->
|{{ItemIcon|name={{{item}}} }}  
|{{ItemIcon|name={{{item}}} }}  
}}</th>
}}</th>

Navigation menu