Difference between revisions of "Template:PersonalCollectionIcon"
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|{{# | + | {{#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|{{# | + | {{#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
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:
0
Error: Table Adventurers not found.
.png|link=Elisanne]]Lv. 0
{{PersonalCollectionIcon|Adventurer|Laxi|Rarity=5|Level=80|Nodes=50|Augments=3}}
[[File:
50
Error: Table Adventurers not found.
.png|link=Laxi]]Lv. 80
+3
{{PersonalCollectionIcon|Adventurer|Cleo|Rarity=5|Level=80|Nodes=50|Augments=18|Size=Normal}}
[[File:
50
Error: Table Adventurers not found.
.png|link=Cleo]]Lv. 80
+18
{{PersonalCollectionIcon|Adventurer|Su Fang|Rarity=5|Level=80|Nodes=50|Spiral|Size=Big}}
[[File:
50
Error: Table Adventurers not found.
.png|link=Su Fang]]Lv. 80
{{PersonalCollectionIcon|Adventurer|The Prince|Rarity=5|Level=95|Nodes=64|Spiral|Augments=200|Size=Giant}}
[[File:
64
Error: Table Adventurers not found.
.png|link=The Prince]]Lv. 95
+200
{{PersonalCollectionIcon|Weapon|Absolute Crimson|Level=95|Unbind=3|Augments=52|Size=Large}}
{{PersonalCollectionIcon|Wyrmprint|Valiant Crown|Level=9|Unbind=1|Augments=1|Size=Medium}}
{{PersonalCollectionIcon|Wyrmprint|Valiant Crown|Level=100|Unbind=4|Augments=122}}
{{PersonalCollectionIcon|Dragon|Cerberus|Level=100|Unbind=4|Augments=200}}