User:Horblegorble/Sandbox/Template/LootHeaderVariable: Difference between revisions
From Veloren Wiki
Content added Content deleted
Horblegorble (talk | contribs) No edit summary |
Horblegorble (talk | contribs) No edit summary |
||
Line 6: | Line 6: | ||
<th width=50%>Item</th> |
<th width=50%>Item</th> |
||
<th width=20%>Quantity</th> |
<th width=20%>Quantity</th> |
||
<th width=30%>Rarity</th> |
<th width=30% colspan=2>Rarity</th> |
||
</tr> |
</tr> |
||
| <tr> |
| <tr> |
||
Line 34: | Line 34: | ||
}} |
}} |
||
{{#if: {{{p|}}} |
{{#if: {{{p|}}} |
||
|<td width={{#expr: 30 - {{{depth|1}}} }}% style="padding-left:0.8em;" class="rarity-{{#ifexpr: {{{p|0}}} >= 24.999 | green | {{#ifexpr: {{{p|0}}} >= 9.999 | yellow | {{#ifexpr: {{{p|0}}} >= 2.499 | orange | {{#ifexpr: {{{p|0}}} <= 2.5 | red | }} }} }} }}"> |
|<td colspan=2 width={{#expr: 30 - {{{depth|1}}} }}% style="padding-left:0.8em;" class="rarity-{{#ifexpr: {{{p|0}}} >= 24.999 | green | {{#ifexpr: {{{p|0}}} >= 9.999 | yellow | {{#ifexpr: {{{p|0}}} >= 2.499 | orange | {{#ifexpr: {{{p|0}}} <= 2.5 | red | }} }} }} }}"> |
||
<div><b>{{IfFalse | {{{hidep|0}}} | {{{p}}}% }}</b></div> |
<div><b>{{IfFalse | {{{hidep|0}}} | {{{p}}}% }}</b></div> |
||
</td> |
</td> |
||
|<td></td> |
|<td colspan=2></td> |
||
}} |
}} |
||