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