Difference between revisions of "Template:PersonalCollectionIcon"

From Dragalia Lost Wiki
Jump to navigation Jump to search
>FlareKyn
(Can't believe I didn't think such a simple solution existed! Thanks to User:Wong8888 for helping me out.)
>FlareKyn
(Fixed an error where Adventurer would use the overlayStyles variable of previous icons, as well as making {{{3|}}} specifically require "Spiral" to function instead of allowing anything that wasn't a value specification to work.)
Line 9: Line 9:
 
       |fields=CONCAT(Id, ' 0', VariationId, ' r0', {{{Rarity|Rarity}}})
 
       |fields=CONCAT(Id, ' 0', VariationId, ' r0', {{{Rarity|Rarity}}})
 
       |group by=_pageName|no html}}}}
 
       |group by=_pageName|no html}}}}
 +
  {{#vardefine:overlayStyles|}}
 
   {{#vardefine:MaxLimitBreakCount|{{#cargo_query:tables=Adventurers
 
   {{#vardefine:MaxLimitBreakCount|{{#cargo_query:tables=Adventurers
 
       |where=FullName="{{#titleparts:{{{2}}}}}"
 
       |where=FullName="{{#titleparts:{{{2}}}}}"
 
       |fields=MaxLimitBreakCount|group by=_pageName|no html}}}}
 
       |fields=MaxLimitBreakCount|group by=_pageName|no html}}}}
 
   {{#vardefine:HardMaxNodes|{{#ifexpr:{{#var:MaxLimitBreakCount}} = 5|70|50}}}}
 
   {{#vardefine:HardMaxNodes|{{#ifexpr:{{#var:MaxLimitBreakCount}} = 5|70|50}}}}
   {{#vardefine:SoftMaxNodes|{{#if:{{{3|}}}|{{#vardefine:MaxLimitBreakCount|5}}|{{#invoke:Adventurer|effectiveMaxMcNodes|{{{2}}}|{{{Rarity|}}}}}}}}}
+
   {{#vardefine:SoftMaxNodes|{{#ifeq:{{{3|}}}|Spiral|{{#vardefine:MaxLimitBreakCount|5}}|{{#invoke:Adventurer|effectiveMaxMcNodes|{{{2}}}|{{{Rarity|}}}}}}}}}
 
   {{#vardefine:HardMaxLevel|{{#ifexpr:{{#var:MaxLimitBreakCount}} = 5|100|80}}}}
 
   {{#vardefine:HardMaxLevel|{{#ifexpr:{{#var:MaxLimitBreakCount}} = 5|100|80}}}}
   {{#vardefine:SoftMaxLevel|{{#if:{{{3|}}}|{{#switch: {{{Nodes|}}}
+
   {{#vardefine:SoftMaxLevel|{{#ifeq:{{{3|}}}|Spiral|{{#switch: {{{Nodes|}}}
 
       | 50|51|52|53|54 = 85
 
       | 50|51|52|53|54 = 85
 
       | 55|56|57|58|59 = 90
 
       | 55|56|57|58|59 = 90

Revision as of 19:51, 11 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}}
[[File:
Error: Table Adventurers not found.
.png|link=Elisanne]]
Lv. 0
Icon CircleRelease 02.png0
{{PersonalCollectionIcon|Adventurer|Laxi|Rarity=5|Level=80|Nodes=50|Augments=3}}
[[File:
Error: Table Adventurers not found.
.png|link=Laxi]]
Lv. 80
Icon CircleRelease 02.png50
+3
{{PersonalCollectionIcon|Adventurer|Cleo|Rarity=5|Level=80|Nodes=50|Augments=18|Size=Normal}}
[[File:
Error: Table Adventurers not found.
.png|link=Cleo]]
Lv. 80
Icon CircleRelease 02.png50
+18
{{PersonalCollectionIcon|Adventurer|Su Fang|Rarity=5|Level=80|Nodes=50|Spiral|Size=Big}}
[[File:
Error: Table Adventurers not found.
.png|link=Su Fang]]
Lv. 80
Icon CircleRelease 02.png50
{{PersonalCollectionIcon|Adventurer|The Prince|Rarity=5|Level=95|Nodes=64|Spiral|Augments=200|Size=Giant}}
[[File:
Error: Table Adventurers not found.
.png|link=The Prince]]
Lv. 95
Icon CircleRelease 02.png64
+200
{{PersonalCollectionIcon|Weapon|Absolute Crimson|Level=95|Unbind=3|Augments=52|Size=Large}}
[[File:
Error: Table Weapons not found.
.png|link=Absolute Crimson]]
Lv. 95
3 Unbind.png
+52
{{PersonalCollectionIcon|Wyrmprint|Valiant Crown|Level=9|Unbind=1|Augments=1|Size=Medium}}
[[File:
Error: Table Wyrmprints not found.
.png|link=Valiant Crown]]
Lv. 9
1 Unbind.png
+1
{{PersonalCollectionIcon|Wyrmprint|Valiant Crown|Level=100|Unbind=4|Augments=122}}
[[File:
Error: Table Wyrmprints not found.
.png|link=Valiant Crown]]
Lv. 100
4 Unbind.png
+122
{{PersonalCollectionIcon|Dragon|Cerberus|Level=100|Unbind=4|Augments=200}}
[[File:
Error: Table Dragons not found.
.png|link=Cerberus]]
Lv. 100
4 Unbind.png
+200