Toggle menu
1.3K
1.7K
705
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:
<includeonly>
 
{{#if: <td width={{#expr: 30 - {{{depth|10}}} == 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>
</tdtr>
 
| <tr>
<td colspan=3>
<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%>
<tr>
{{#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:1em0.5em;" class="rarity-><b>[[{{{colortitle|}}}"]]</b></div>
}}%
| </div>
| {{{image|}}} | {{{name|}}} }}
| </td {{#if: {{{quantity|}}}>
|<td |colspan=2 width=5271% style="padding-left:1em;">
| colspan=2 width=<b>{{#expr: 70 + {{{depthtitle|1}}} }}%</b>
}}</td>
style="padding-left:1em;">
<b>{{{name|}}}</b>
</td>
}}
{{#if: {{{quantityn|}}}
| <td width={{#expr: 1820 + {{{depth|1}}} }}% style="padding-left:1em;">
style="padding-left:1em;"<b>{{{n|}}}</b>
<b>{{{quantity|}}}</btd>
</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: {name{{p}}} | {{{p}}}% | }}</b>
</td>
|
}}
<td width={{#expr: 30 - {{{depth|1}}} }}%
style="padding-left:1em;" class="rarity-{{{color|}}}">
<b>{{{rarity|}}}</b>
</td>
</tr>
}}
 
</includeonly><noinclude>
</table>
</td>
</tr>
 
</includeonly>
 
<noinclude>
[[Category:Templates]] [[Category: Loot templates]]
 
</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.