Toggle menu
1.3K
1.7K
703
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/LootRowVariable: Difference between revisions

From Veloren Wiki
Content added Content deleted
No edit summary
No edit summary
Line 2: Line 2:
<tr>
<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}}} }} }} }}%>
<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}}} }} }} }}%>
{{#ifeq: {{Bool| {{{noimg|0}}} }} | 1
{{#ifeq: {{Bool| {{{noimg|0}}} }} | 1 <!--'IfTrue' template causes issues doesn't work properly here-->
|<div style="padding-left:{{#ifeq: {{{depth|0}}} | 0 | 1.3 | 0.5 }}em;">[[{{{item|}}}]]</div>
|<div style="padding-left:{{#ifeq: {{{depth|0}}} | 0 | 1.3 | 0.5 }}em;">[[{{{item|}}}]]</div>
|{{#ifexist: File:Veloren {{{item|}}}.png
|{{#ifexist: File:Veloren {{{item|}}}.png
|<div style="display:flex; align-items:center; justify-content:left; height:100%; width:100%;">
|<div style="display:flex; align-items:center; justify-content:left; height:100%; width:100%;">
<div style="width=10%; padding-left:{{#ifeq: {{{depth|0}}} | 0 | 0.8 | 0 }}em;">[[Image:veloren_{{{item|}}}.png|32px]]</div>
<div style="width=10%; padding-left:{{#ifeq: {{{depth|0}}} | 0 | 0.8 | 0 }}em;"><!--
<div style="width=90%; padding-left:0.5em;">[[{{{item|}}}]]</div>
-->[[Image:veloren_{{{item|}}}.png|32px]]
</div>
<div style="width=90%; padding-left:0.5em;"><!--
-->{{IfFalse| {{{nolink|0}}} | [[{{{item|}}}]] | {{{item|}}} }}
</div>
</div>
|<div style="margin-left:32px; padding-left:{{#ifeq: {{{depth|0}}} | 0 | 1.3 | 0.5 }}em;"><!--
-->{{IfFalse| {{{nolink|0}}} | [[{{{item|}}}]] | {{{item|}}} }}
</div>
</div>
|<div style="margin-left:32px; padding-left:{{#ifeq: {{{depth|0}}} | 0 | 1.3 | 0.5 }}em;">[[{{{item|}}}]]</div>
}}
}}
}}
}}
Line 17: Line 23:
|
|
}}
}}
{{#ifeq: {{Bool| {{{nop|0}}} }} | 0
{{#ifeq: {{Bool| {{{nop|0}}} }} | 0 <!--'IfFalse' template causes issues doesn't work properly here-->
|<td rowspan={{{pspan|1}}} style="padding-left:{{#ifeq: {{{depth|0}}} | 0 | 0.8 | 1 }}em;" 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 rowspan={{{pspan|1}}} style="padding-left:{{#ifeq: {{{depth|0}}} | 0 | 0.8 | 1 }}em;" 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 | }} }} }} }}"><!--
<div>{{IfFalse| {{{hidep|0}}} | {{{p}}}% }}</div>
-->{{IfFalse| {{{hidep|0}}} | {{{p}}}% }}
</td>
</td>
|
|
Line 33: Line 39:
{{User:Horblegorble/Sandbox/Template/LootRowVariable|depth=0|item=Apple|n=1|p=50}}
{{User:Horblegorble/Sandbox/Template/LootRowVariable|depth=0|item=Apple|n=1|p=50}}
{{User:Horblegorble/Sandbox/Template/LootRowVariable|depth=0|item=Apples|n=1|p=50}}
{{User:Horblegorble/Sandbox/Template/LootRowVariable|depth=0|item=Apples|n=1|p=50}}
{{User:Horblegorble/Sandbox/Template/LootRowVariable|depth=0|item=Apple|n=1|p=50}}
{{User:Horblegorble/Sandbox/Template/LootRowVariable|depth=0|item=Apple|n=1|p=50|nolink=1}}
{{User:Horblegorble/Sandbox/Template/LootRowSpacer}}
{{User:Horblegorble/Sandbox/Template/LootRowSpacer}}
{{User:Horblegorble/Sandbox/Template/LootRowVariable|depth=0|item=Apple|p=50|pspan=3|noimg=1}}
{{User:Horblegorble/Sandbox/Template/LootRowVariable|depth=0|item=Apple|p=50|pspan=3|noimg=1}}

Revision as of 05:02, 18 October 2023



Item Quantity Rarity
1 50%
1 50%
Apple
1 50%
50%
Apple
50%
1
Apple
50%
1
Apple
50%
1
1
Cookies help us deliver our services. By using our services, you agree to our use of cookies.