User:Horblegorble/Sandbox/Template/LootHeaderVariable: Difference between revisions
From Veloren Wiki
Content added Content deleted
Horblegorble (talk | contribs) (Created page with "<includeonly> <tr> <td colspan=3> <table class="wikitable mw-collapsible {{#if: {{{User:Horblegorble/Sandbox/Template/Bool | {{{collapsed|1}}} | mw-collapsed | }}" data-expandtext="+" data-collapsetext="-" style="text-align:left;" cellpadding="0" cellspacing="0" width=100%> <tr> {{#if: {{{image}}} | {{User:Horblegorble/Sandbox/Template/ThumbnailCell | width={{#if: {{{quantity}}}...") |
Horblegorble (talk | contribs) No edit summary |
||
(63 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 |
|||
⚫ | |||
| <table class="wikitable" style="text-align:left; width:35vw; min-width:30%; max-width:70%;" cellpadding="2" cellspacing="0"> |
|||
⚫ | |||
<tr> |
|||
<table class="wikitable mw-collapsible {{#if: {{{User:Horblegorble/Sandbox/Template/Bool | {{{collapsed|1}}} | mw-collapsed | }}" |
|||
<th width=50% style="padding-left:10px;">Item</th> |
|||
⚫ | |||
<th width=20%>Quantity</th> |
|||
<th width=30% colspan=2>Rarity</th> |
|||
⚫ | |||
</tr> |
|||
⚫ | |||
⚫ | |||
| {{#expr: 70 + {{{depth|1}}} }} |
|||
<td colspan=4> |
|||
| 52 |
|||
<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%> |
|||
}}% |
|||
⚫ | |||
| {{{image}}} | {{{name|}}} }} |
|||
<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}}} }} }} }}% |
|||
| <td width={{#if: {{{quantity}}} |
|||
{{#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="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;"> |
|||
<div><b>{{{title|}}}</b></div> |
|||
}} |
}} |
||
</td> |
|||
{{#if: {{{n|}}} |
|||
|<td width={{#expr: 20 + {{{depth|1}}} }}% style="padding-left:0.8em;"> |
|||
<div><b>{{{n|}}}</b></div> |
|||
</td> |
|||
| |
| |
||
}} |
}} |
||
{{#if: {{{p|}}} |
|||
style="padding-left: |
|<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>{{{ |
<div><b>{{IfFalse | {{{hidep|0}}} | {{{p}}}% }}</b></div> |
||
</td> |
|||
| |
|||
}} |
|||
</tr> |
|||
}} |
|||
⚫ | |||
{{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/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> |
|||
⚫ | |||
⚫ | |||
<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> |
||
<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> |
</tr> |
||
</table> |
|||
</td> |
|||
</tr> |
|||
{{User:Horblegorble/Sandbox/Template/LootEnd}} |
|||
⚫ | |||
<noinclude> |
|||
[[Category:Templates]] [[Category: Loot templates]] |
[[Category:Templates]] [[Category: Loot templates]] |
||
</noinclude> |
</noinclude> |