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 1:
<includeonly>
<tr>▼
| <table class="wikitable sortable" style="text-align:left;" cellpadding="2" cellspacing="0" width=fit>
<tr>
<th width=52%>Item</th>
<th width=18%>Quantity</th>
<th width=30%>Rarity</th>
<td colspan=3>
<table class="wikitable mw-collapsible {{#if: {{Bool| {{{collapsed|1}}} }} | mw-collapsed | }}"
| ▼
}}"▼
data-expandtext="+" data-collapsetext="-" style="text-align:left;" cellpadding="0" cellspacing="0" width=100%>
<tr>
{{#if: {{{image|}}}
|<td wdith={{#expr: 50 + {{#if: {{{n|}}} | 0 | {{#expr: 20 + {{{depth|1}}} }} + {{#if: {{{p|}}} | 0 | {{#expr: 30 - {{{depth|1}}} }} }}%>
<div style="display:flex; align-items:center; justify-content:left; height:100%; width:100%;">
<div style="width=90%; padding-left:0;">[[File:Veloren {{{image|}}}|32px|link=]]</div>
|<td
<b>{{{name|}}}</b>▼
</td>▼
}}
{{#if: {{{
|
{{#if: {{{p|}}}
|<td width={{#expr: 30 - {{{depth|1}}} }}% style="padding-left:1em;" 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 width={{#expr: 30 - {{{depth|1}}} }}%
▲ style="padding-left:1em;" class="rarity-{{{color|}}}">
▲ <b>{{{rarity|}}}</b>
</tr>
}}
</includeonly><noinclude>▼
▲ </td>
▲ </tr>
▲</includeonly>
[[Category:Templates]] [[Category: Loot templates]]
</noinclude>
|
Revision as of 15:08, 27 September 2023