Toggle menu
1.3K
1.7K
694
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
 
(40 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly><!--
--><templatestyles src="https://wiki.veloren.net/wiki/User:Horblegorble/MyStyle.css" /><!--

{{#ifeq: {{{depth|0}}} | 0
-->{{#ifeq: {{{depth|0}}} | 0
| <table class="wikitable sortable" style="text-align:left;" cellpadding="2" cellspacing="0" width=fit>
| <table class="wikitable" style="text-align:left; width:35vw; min-width:30%; max-width:70%;" cellpadding="2" cellspacing="0">
<tr>
<tr>
<th width=52%>Item</th>
<th width=50% style="padding-left:10px;">Item</th>
<th width=18%>Quantity</th>
<th width=20%>Quantity</th>
<th width=30%>Rarity</th>
<th width=30% colspan=2>Rarity</th>
</tr>
</tr>
| <tr>
| <tr>
<td colspan=3>
<td colspan=4>
<table class="wikitable mw-collapsible {{#ifexpr: {{Bool| {{{collapsed|1}}} }} | mw-collapsed | }}"
<table class="wikitable mw-collapsible {{#ifexpr: {{Bool| {{{collapsed|1}}} }} | mw-collapsed | }}" style="text-align:left;" data-expandtext="➕" data-collapsetext="➖" cellpadding="0" cellspacing="0" width=100%>
<tr style="">
data-expandtext="+" data-collapsetext="-" style="text-align:left;" cellpadding="0" cellspacing="0" width=100%>
<td colspan={{#expr: 3 - {{#if: {{{n|}}} | 1 | 0}} - {{#if: {{{p|}}} | 1 | 0 }} }} width={{#expr: 50 + {{#if: {{{n|}}} | 0 | {{#expr: 20 + {{{depth|1}}} }} }} + {{#if: {{{p|}}} | 0 | {{#expr: 30 - {{{depth|1}}} }} }} }}%
<tr>
<td colspan={{#expr: 3 - {{#if:n|1|0}} - {{#if:p|1|0}} }} width={{#expr: 50 + {{#if: {{{n|}}} | 0 | {{#expr: 20 + {{{depth|1}}} }} }} + {{#if: {{{p|}}} | 0 | {{#expr: 30 - {{{depth|1}}} }} }} }}%
{{#if: {{{image|}}}
{{#if: {{{image|}}}
| >
|{{#ifexist: File:Veloren {{{image|}}}
| >
<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>
<div style="display:flex; align-items:center; justify-content:left; height:100%; width:100%;">
<div style="width=10%; padding-left:0.5em;"><b>[[{{{title|}}}]]</b></div>
<div style="width=90%; padding-left:0;">[[File:Veloren {{{image|}}}|32px|link=]]</div>
</div>
<div style="width=10%; padding-left:0.5em;"><b>[[{{{title|}}}]]</b></div>
</div>
|style="padding-left:1em;">
<div style="margin-left:32px;"><b>[[{{{title|}}}]]</b></div>
}}
| style="padding-left:1em;">
| style="padding-left:1em;">
<b>{{{title|}}}</b>
<div><b>{{{title|}}}</b></div>
}}
}}
</td>
</td>
{{#if: {{{n|}}}
{{#if: {{{n|}}}
|<td colspan=1 width={{#expr: 20 + {{{depth|1}}} }}% style="padding-left:1em;">
|<td width={{#expr: 20 + {{{depth|1}}} }}% style="padding-left:0.8em;">
<b>{{{n|}}}</b>
<div><b>{{{n|}}}</b></div>
</td>
</td>
|
|
}}
}}
{{#if: {{{p|}}}
{{#if: {{{p|}}}
|<td colspan=1 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 colspan=2 width={{#expr: 30 - {{{depth|1}}} }}% style="padding-left:0.8em;" 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>
<div><b>{{IfFalse | {{{hidep|0}}} | {{{p}}}% }}</b></div>
</td>
</td>
|
|
}}
}}

</tr>
</tr>
}}
}}

</includeonly><noinclude>
</includeonly><noinclude>

{{User:Horblegorble/Sandbox/Template/LootHeaderVariable}}
{{User:Horblegorble/Sandbox/Template/LootHeaderVariable|depth=1|collapsed=0|title=depth=1 {{!}} collapsed=1 {{!}} title=... {{!}} n=1 {{!}} p=50|n=1|p=50}}
{{User:Horblegorble/Sandbox/Template/LootRowVariable|depth=1|item=Apple|n=1|p=50}}
{{User:Horblegorble/Sandbox/Template/LootRowVariable|depth=1|item=Apple|n=1|p=50}}
{{User:Horblegorble/Sandbox/Template/LootHeaderVariable|depth=2|collapsed=0|title=Stuff|n=1|p=50}}
{{User:Horblegorble/Sandbox/Template/LootRowVariable|depth=2|item=Apple|n=1|p=50}}
{{User:Horblegorble/Sandbox/Template/LootRowVariable|depth=2|item=Apple|n=1|p=50}}
{{User:Horblegorble/Sandbox/Template/LootEndNested}}
{{User:Horblegorble/Sandbox/Template/LootHeaderVariable|depth=2|collapsed=0|title=Stuff|p=50}}
{{User:Horblegorble/Sandbox/Template/LootHeaderVariable|depth=3|collapsed=0|title=Stuff|p=20.05|nop=1}}
{{User:Horblegorble/Sandbox/Template/LootRowVariable|depth=3|item=Apple|n=1|p=50}}
{{User:Horblegorble/Sandbox/Template/LootRowVariable|depth=3|item=Apple|n=1|p=50}}
{{User:Horblegorble/Sandbox/Template/LootHeaderVariable|depth=4|collapsed=0|title=Stuff|p=10.05|nop=1}}
{{User:Horblegorble/Sandbox/Template/LootEndNested}}
{{User:Horblegorble/Sandbox/Template/LootEndNested}}
{{User:Horblegorble/Sandbox/Template/LootEndNested}}
{{User:Horblegorble/Sandbox/Template/LootHeaderVariable|depth=2|collapsed=0|title=Stuff|p=50|nop=1}}
{{User:Horblegorble/Sandbox/Template/LootEndNested}}
{{User:Horblegorble/Sandbox/Template/LootHeaderVariable|depth=2|collapsed=0|title=Stuff|p=50}}
{{User:Horblegorble/Sandbox/Template/LootEndNested}}
{{User:Horblegorble/Sandbox/Template/LootEndNested}}
{{User:Horblegorble/Sandbox/Template/LootHeaderVariable|depth=1|collapsed=0|title=Apple|image=Apple.png|n=1|p=50}}
{{User:Horblegorble/Sandbox/Template/LootEndNested}}
{{User:Horblegorble/Sandbox/Template/LootHeaderVariable|depth=1|collapsed=0|title=Apples|image=Apples.png|n=1|p=50|hidep=1}}
{{User:Horblegorble/Sandbox/Template/LootEndNested}}
<tr>
<td colspan=3>
<table class="wikitable mw-collapsible mw-collapsed" data-expandtext="+" data-collapsetext="-" style="text-align:left;" cellpadding="0" cellspacing="0" width=100%>
<tr>
<td wdith=52%>
<div style="display:flex; align-items:center; justify-content:left; height:100%; width:100%;">
<div style="width=90%; padding-left:0;">[[File:Veloren Apple.png|32px|link=]]</div>
<div style="width=10%; padding-left:0.5em;"><b>[[Apple]]</b></div>
</div>
</td>
<td width=19% style="padding-left:0.8em;"><b>1</b></td>
<td width=29% style="padding-left:0.8em;" class="rarity-green"><b>50</b></td>
</tr>
</table>
</td>
</tr>
{{User:Horblegorble/Sandbox/Template/LootEnd}}



[[Category:Templates]] [[Category: Loot templates]]
[[Category:Templates]] [[Category: Loot templates]]

Latest revision as of 10:56, 6 January 2024


Item Quantity Rarity
depth=1 | collapsed=1 | title=... | n=1 | p=50
1
50%
1 50%
1 50%
Stuff
1
50%
1 50%
1 50%
Stuff
50%
Stuff
20.05%
1 50%
1 50%
Stuff
10.05%
Stuff
50%
Stuff
50%
1
50%
1
1 50


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