Difference between revisions of "Template:PersonalCollectionIcon"

From Dragalia Lost Wiki
Jump to navigation Jump to search
>Boblers
(adventurer color text logic. Next step is mana circles and augments)
>Boblers
(adding level and spiral logic for adventurers)
Line 18: Line 18:
 
|Adventurer=
 
|Adventurer=
 
{{#vardefine:MaxLimitBreakCount|{{#cargo_query:tables=Adventurers|where=_pageName="{{#titleparts:{{{2}}}}}" OR FullName="{{#titleparts:{{{2}}}}}"|fields=MaxLimitBreakCount|group by=_pageName|no html}}}}
 
{{#vardefine:MaxLimitBreakCount|{{#cargo_query:tables=Adventurers|where=_pageName="{{#titleparts:{{{2}}}}}" OR FullName="{{#titleparts:{{{2}}}}}"|fields=MaxLimitBreakCount|group by=_pageName|no html}}}}
{{#ifexpr:{{#var:MaxLimitBreakCount}} = 4
+
{{#ifexpr:{{#var:MaxLimitBreakCount}} = 5|{{#vardefine:HardMaxLevel|100}}|{{#vardefine:HardMaxLevel|80}}}}
|{{#vardefine:HardMaxLevel|80}}  
+
{{#switch: {{{Rarity|}}}
{{#switch: {{Rarity|}}
+
|3={{#vardefine:SoftMaxLevel|60}}
 
|4={{#vardefine:SoftMaxLevel|70}}
 
|4={{#vardefine:SoftMaxLevel|70}}
|3={{#vardefine:SoftMaxLevel|60}}
+
|5=
 +
{{#if:{{{SpiralUnlocked|}}}
 +
|{{#vardefine:SoftMaxLevel
 +
|{{#ifexpr:{{{Nodes|}}} > 64|100
 +
|{{#ifexpr:{{{Nodes|}}} > 59|95
 +
|{{#ifexpr:{{{Nodes|}}} > 54|90
 +
|85}} }} }} }}
 +
|{{#vardefine:SoftMaxLevel|80}}
 +
}}
 +
}}
 +
{{#ifexpr:{{#var:MaxLimitBreakCount}} = 5|{{#vardefine:HardMaxNodes|70}}|{{#vardefine:HardMaxNodes|50}}}}
 +
{{#switch: {{{Rarity|}}}
 +
|3={{#vardefine:SoftMaxNodes|30}}
 +
|4={{#vardefine:SoftMaxNodes|40}}
 +
|5={{#if:{{{SpiralUnlocked|}}}|{{#vardefine:SoftMaxNodes|50}}|{{#vardefine:SoftMaxNodes|99}}}}
 +
}}
 +
{{#ifexpr: {{{Nodes|}}} = {{#var:HardMaxNodes}}|{{#vardefine:nodeColor|#36f2f1}}
 +
|{{#ifexpr: {{{Nodes|}}} = {{#var:SoftMaxNodes}}|{{#vardefine:nodeColor|#f8c933}}
 +
|{{#vardefine:nodeColor|#ffffff}}
 
}}
 
}}
|{{#vardefine:HardMaxLevel|100}}
 
{{#vardefine:SoftMaxLevel|({{{Nodes|}}} - 50) + 80}}
 
 
}}
 
}}
 
|Weapon=
 
|Weapon=
Line 88: Line 104:
 
| x4=22
 
| x4=22
 
| y4=121
 
| y4=121
| c5=<p style="opacity: 1; color: #ffffff; font-weight:bold">{{#var:c5}}</p>
+
| c5=<p style="opacity: 1; color: {{#var:nodeColor}}; font-weight:bold">{{#var:c5}}</p>
 
| x5={{#ifeq:{{{1|}}}|Adventurer|119|88}}
 
| x5={{#ifeq:{{{1|}}}|Adventurer|119|88}}
 
| y5={{#ifeq:{{{1|}}}|Adventurer|121|119}}
 
| y5={{#ifeq:{{{1|}}}|Adventurer|121|119}}

Revision as of 07:08, 8 April 2020

50px Documentation

Details

A template to create icons for personal collections. Still a work in progress, but it's usable as it is.

Text will be colored like how it is in game.
Level and Nodes: Blue if hard capped, orange if soft capped, white otherwise.
Augments: Blue if capped, orange otherwise.

Examples

{{PersonalCollectionIcon|Adventurer|Elisanne}}

Expression error: Unexpected < operator.

Expression error: Unexpected < operator.

Expression error: Unexpected = operator.Expression error: Unexpected = operator.

Icon CircleRelease 02.png

Lv.

<p style="opacity: 1; color: Expression error: Unexpected > operator.; font-weight:bold; -webkit-text-stroke: 1px black; position: absolute; right:0;">+

Error: Table Adventurers not found.
{{PersonalCollectionIcon|Adventurer|Laxi|Rarity=5|Level=80|Nodes=50|Augments=3}}

Expression error: Unexpected < operator.

Expression error: Unexpected < operator.

Expression error: Missing operand for =.Expression error: Missing operand for =.

Icon CircleRelease 02.png

Lv. 80

50

+3

Error: Table Adventurers not found.
{{PersonalCollectionIcon|Adventurer|Cleo|Rarity=5|Level=80|Nodes=50|Augments=18|Size=Normal}}

Expression error: Unexpected < operator.

Expression error: Unexpected < operator.

Expression error: Missing operand for =.Expression error: Missing operand for =.

Icon CircleRelease 02.png

Lv. 80

50

+18

Error: Table Adventurers not found.
{{PersonalCollectionIcon|Adventurer|Su Fang|Rarity=5|Level=80|Nodes=50|Spiral|Size=Big}}

Expression error: Unexpected < operator.

Expression error: Unexpected < operator.

Expression error: Missing operand for =.Expression error: Missing operand for =.

Icon CircleRelease 02.png

Lv. 80

50

<p style="opacity: 1; color: Expression error: Unexpected > operator.; font-weight:bold; -webkit-text-stroke: 1px black; position: absolute; right:0;">+

Error: Table Adventurers not found.
{{PersonalCollectionIcon|Adventurer|The Prince|Rarity=5|Level=95|Nodes=64|Spiral|Augments=200|Size=Giant}}

Expression error: Unexpected < operator.

Expression error: Unexpected < operator.

Expression error: Missing operand for =.Expression error: Missing operand for =.

Icon CircleRelease 02.png

Lv. 95

64

+200

Error: Table Adventurers not found.
{{PersonalCollectionIcon|Weapon|Absolute Crimson|Level=95|Unbind=3|Augments=52|Size=Large}}
Expression error: Missing operand for =.

Lv. 95

3 Unbind.png

+52

Error: Table Weapons not found.
{{PersonalCollectionIcon|Wyrmprint|Valiant Crown|Level=9|Unbind=1|Augments=1|Size=Medium}}
Expression error: Missing operand for =.

Lv. 9

1 Unbind.png

+1

Error: Table Wyrmprints not found.
{{PersonalCollectionIcon|Wyrmprint|Valiant Crown|Level=100|Unbind=4|Augments=122}}
Expression error: Missing operand for =.

Lv. 100

4 Unbind.png

+122

Error: Table Wyrmprints not found.
{{PersonalCollectionIcon|Dragon|Cerberus|Level=100|Unbind=4|Augments=200}}
Expression error: Missing operand for =.

Lv. 100

4 Unbind.png

+200

Error: Table Dragons not found.