Difference between revisions of "Template:PersonalCollectionIcon"

From Dragalia Lost Wiki
Jump to navigation Jump to search
>Boblers
(dragon and weapon text color logic. very similar to print logic.)
>Boblers
(adventurer color text logic. Next step is mana circles and augments)
Line 17: Line 17:
 
-->{{#switch: {{{1|}}}
 
-->{{#switch: {{{1|}}}
 
|Adventurer=
 
|Adventurer=
 +
{{#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
 +
|{{#vardefine:HardMaxLevel|80}}
 +
{{#switch: {{Rarity|}}
 +
|4={{#vardefine:SoftMaxLevel|70}}
 +
|3={{#vardefine:SoftMaxLevel|60}}
 +
}}
 +
|{{#vardefine:HardMaxLevel|100}}
 +
{{#vardefine:SoftMaxLevel|({{{Nodes|}}} - 50) + 80}}
 +
}}
 
|Weapon=
 
|Weapon=
 
{{#vardefine:derivedRarity|{{#cargo_query:tables=Weapons|where=_pageName="{{#titleparts:{{{2}}}}}" OR WeaponName="{{#titleparts:{{{2}}}}}"|fields=Rarity|group by=_pageName|no html}}}}
 
{{#vardefine:derivedRarity|{{#cargo_query:tables=Weapons|where=_pageName="{{#titleparts:{{{2}}}}}" OR WeaponName="{{#titleparts:{{{2}}}}}"|fields=Rarity|group by=_pageName|no html}}}}

Revision as of 05:28, 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.

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: 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: 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: 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: 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.