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 |
||
Line 1: | Line 1: | ||
<includeonly> |
<includeonly> |
||
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}}} }} }} }} |
|||
{{#ifeq: {{{depth|0}}} | 0 |
{{#ifeq: {{{depth|0}}} | 0 |
||
Line 11: | Line 13: | ||
<td colspan=3> |
<td colspan=3> |
||
<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%> |
<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> |
<tr style=""> |
||
<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 style="" 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|}}} |
||
| > |
| > |
||
Line 39: | Line 41: | ||
</includeonly><noinclude> |
</includeonly><noinclude> |
||
{{User:Horblegorble/Sandbox/Template/LootHeaderVariable}} |
|||
{{User:Horblegorble/Sandbox/Template/LootHeaderVariable|depth=1|title=Stuff|n=1|p=50}} |
|||
{{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:1em;"><b>1</b></td> |
|||
<td width=29% style="padding-left:1em;" 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]] |