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 29: | Line 29: | ||
</td> |
</td> |
||
{{#if: {{{n|}}} |
{{#if: {{{n|}}} |
||
|<td width={{#expr: 20 + {{{depth|1}}} }}% style="padding-left: |
|<td width={{#expr: 20 + {{{depth|1}}} }}% style="padding-left:0.7em;"> |
||
<div><b>{{{n|}}}</b></div> |
<div><b>{{{n|}}}</b></div> |
||
</td> |
</td> |
||
Line 35: | Line 35: | ||
}} |
}} |
||
{{#if: {{{p|}}} |
{{#if: {{{p|}}} |
||
|<td width={{#expr: 30 - {{{depth|1}}} }}% style="padding-left:0. |
|<td width={{#expr: 30 - {{{depth|1}}} }}% style="padding-left:0.5em;" 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>{{#ifeq: {{Bool| {{{hidep|0}}} }} | 1 | | {{{p}}}% }}</b></div> |
<div><b>{{#ifeq: {{Bool| {{{hidep|0}}} }} | 1 | | {{{p}}}% }}</b></div> |
||
</td> |
</td> |