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:
<includeonly>
<templatestyles src="https://wiki.veloren.net/wiki/User:Horblegorble/MyStyle.css" />
{{#ifeq: {{{depth|0}}} | 0
| <table class="wikitable sortable" style="text-align:left;" cellpadding="2" cellspacing="0" width="fit">
Line 9 ⟶ 11:
| <tr>
<td colspan=3>
<table class="wikitable mw-collapsible {{#ifexpr: {{Bool| {{{collapsed|1}}} }} | mw-collapsed | }}" style="text-align:left;" data-expandtext="
<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}}} }} }} }}%
Line 49 ⟶ 51:
{{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=
{{User:Horblegorble/Sandbox/Template/LootEndNested}}
{{User:Horblegorble/Sandbox/Template/LootEndNested}}
Line 69 ⟶ 71:
<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 class="mw-collapsible-toggle-placeholder">Expand</div>
</div>
</td>
|