Toggle menu
1.3K
1.7K
703
23.9K
Veloren Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

User:Horblegorble/Sandbox/Template/LootHeaderVariable: Difference between revisions

From Veloren Wiki
Content added Content deleted
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>


{{#if: {{#expr: {{{depth|0}}} == 0 }}
<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>
</tr>

| <tr>
<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}}} }}
<div style="width=10%; padding-left:0.5em;"><b>[[{{{title|}}}]]</b></div>
}}%
</div>
| {{{image|}}} | {{{name|}}} }}
| <td {{#if: {{{quantity|}}}
</td>
| width=52%
|<td colspan=2 width=71% style="padding-left:1em;">
| colspan=2 width={{#expr: 70 + {{{depth|1}}} }}%
<b>{{{title|}}}</b>
}}
</td>
style="padding-left:1em;">
<b>{{{name|}}}</b>
</td>
}}
}}
{{#if: {{{quantity|}}}
{{#if: {{{n|}}}
| <td width={{#expr: 18 + {{{depth|1}}} }}%
|<td width={{#expr: 20 + {{{depth|1}}} }}% style="padding-left:1em;">
style="padding-left:1em;">
<b>{{{n|}}}</b>
<b>{{{quantity|}}}</b>
</td>
</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 | }} }} }} }}">
<b>{{#if: {{{p}}} | {{{p}}}% | }}</b>
</td>
|
|
}}
}}
<td width={{#expr: 30 - {{{depth|1}}} }}%
style="padding-left:1em;" class="rarity-{{{color|}}}">
<b>{{{rarity|}}}</b>
</td>
</tr>
</tr>
}}


</includeonly><noinclude>
</table>
</td>
</tr>


</includeonly>

<noinclude>
[[Category:Templates]] [[Category: Loot templates]]
[[Category:Templates]] [[Category: Loot templates]]

</noinclude>
</noinclude>

Revision as of 15:08, 27 September 2023


Cookies help us deliver our services. By using our services, you agree to our use of cookies.