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 |
||
(48 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 |
||
⚫ | |||
⚫ | |||
<tr> |
<tr> |
||
<th width= |
<th width=50% style="padding-left:10px;">Item</th> |
||
<th width= |
<th width=20%>Quantity</th> |
||
<th width=30%>Rarity</th> |
<th width=30% colspan=2>Rarity</th> |
||
</tr> |
</tr> |
||
| <tr> |
| <tr> |
||
<td colspan= |
<td colspan=4> |
||
<table class="wikitable mw-collapsible {{# |
<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%> |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
{{#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= |
<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;"> |
||
<b>{{{title|}}}</b> |
<div style="margin-left:32px;"><b>[[{{{title|}}}]]</b></div> |
||
}} |
|||
| style="padding-left:1em;"> |
|||
<div><b>{{{title|}}}</b></div> |
|||
}} |
}} |
||
</td> |
|||
{{#if: {{{n|}}} |
{{#if: {{{n|}}} |
||
|<td width={{#expr: 20 + {{{depth|1}}} }}% style="padding-left: |
|<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 width={{#expr: 30 - {{{depth|1}}} }}% 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> |
</td> |
||
| |
| |
||
}} |
}} |
||
</tr> |
</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/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> |
|||
⚫ | |||
<tr> |
|||
<td wdith=52%> |
|||
⚫ | |||
<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]] |