Difference between revisions of "Template:PersonalCollectionIcon"
Jump to navigation
Jump to search
>FlareKyn (Whoops, missed another error) |
>Eave (remove all newlines) |
||
| Line 23: | Line 23: | ||
|where=FullName="{{#titleparts:{{{2}}}}}" | |where=FullName="{{#titleparts:{{{2}}}}}" | ||
|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 | |
|where=FullName="{{#titleparts:{{{2}}}}}" | |where=FullName="{{#titleparts:{{{2}}}}}" | ||
| − | + | |fields=MaxLimitBreakCount|group by=_pageName|no html}}}}<!-- | |
| + | -->{{#vardefine:derivedRarity|{{{Rarity|{{#cargo_query:tables=Adventurers | ||
|where=FullName="{{#titleparts:{{{2}}}}}" | |where=FullName="{{#titleparts:{{{2}}}}}" | ||
| − | |fields=Rarity|group by=_pageName|no html}}}}}}} | + | |fields=Rarity|group by=_pageName|no html}}}}}}}<!-- |
| − | + | -->{{#vardefine:HardMaxNodes|{{#ifexpr:{{#var:MaxLimitBreakCount}} = 5|{{#ifeq:{{{3|}}}|Spiral|70|99}}|50}}}}<!-- | |
| − | + | -->{{#vardefine:SoftMaxNodes|{{#ifeq:{{{3|}}}|Spiral|70|{{#expr:{{#var:derivedRarity}}*10}}}}}}<!-- | |
| − | + | -->{{#vardefine:Nodes|{{#ifexpr:{{{Nodes|0}}}>={{#var:SoftMaxNodes}}|{{#var:SoftMaxNodes}}|{{{Nodes|0}}}}}}}<!-- | |
| − | + | -->{{#vardefine:HardMaxLevel|{{#ifexpr:{{#var:MaxLimitBreakCount}} = 5|100|80}}}}<!-- | |
| − | + | -->{{#vardefine:SoftMaxLevel|{{#ifeq:{{{3|}}}|Spiral | |
| − | + | |{{#switch: {{#Nodes}} | |
| − | + | | 50 = 85 | |
| − | + | | #default = {{#invoke:Adventurer|effectiveMaxLevel|{{{2}}}|{{#var:Nodes}}|{{#var:derivedRarity}}}} | |
| − | + | }} | |
| − | + | |{{#expr:{{#var:derivedRarity}}*10+30}}}}}}<!-- | |
| + | -->{{#vardefine:nodeColor|{{#switch: {{#var:Nodes}} | ||
| {{#var:HardMaxNodes}} = {{#var:cyan}} | | {{#var:HardMaxNodes}} = {{#var:cyan}} | ||
| {{#var:SoftMaxNodes}} = {{#var:gold}} | | {{#var:SoftMaxNodes}} = {{#var:gold}} | ||
| #fff | | #fff | ||
| − | }}}} | + | }}}}<!-- |
| − | + | -->{{#vardefine:bottomRightContent|<!-- | |
-->color:{{#var:nodeColor}};display:flex;justify-content:center;font-size:{{#var:Size}}em">[[File:Icon CircleRelease 02.png|x{{#expr:{{#var:Size}}*22}}px|link=]]{{#var:Nodes}}}} | -->color:{{#var:nodeColor}};display:flex;justify-content:center;font-size:{{#var:Size}}em">[[File:Icon CircleRelease 02.png|x{{#expr:{{#var:Size}}*22}}px|link=]]{{#var:Nodes}}}} | ||
|Weapon= | |Weapon= | ||
| Line 50: | Line 52: | ||
|where=_pageName="{{#titleparts:{{{2}}}}}" OR WeaponName="{{#titleparts:{{{2}}}}}" | |where=_pageName="{{#titleparts:{{{2}}}}}" OR WeaponName="{{#titleparts:{{{2}}}}}" | ||
|fields=CONCAT(BaseId, ' 01 ', FormId) | |fields=CONCAT(BaseId, ' 01 ', FormId) | ||
| − | |group by=_pageName|no html}}}} | + | |group by=_pageName|no html}}}}<!-- |
| − | + | -->{{#vardefine:overlayStyles|border-radius: 0 0 6% 6%/39%;}}<!-- | |
| − | + | -->{{#vardefine:derivedRarity|{{#cargo_query:tables=Weapons | |
|where=_pageName="{{#titleparts:{{{2}}}}}" OR WeaponName="{{#titleparts:{{{2}}}}}" | |where=_pageName="{{#titleparts:{{{2}}}}}" OR WeaponName="{{#titleparts:{{{2}}}}}" | ||
| − | |fields=Rarity|group by=_pageName|no html}}}} | + | |fields=Rarity|group by=_pageName|no html}}}}<!-- |
| − | + | -->{{#switch: {{#var:derivedRarity}} | |
|6={{#vardefine:HardMaxLevel|200}} {{#vardefine:SoftMaxLevel|{{#expr:100+({{#var:Unbind}}*25)}}}} | |6={{#vardefine:HardMaxLevel|200}} {{#vardefine:SoftMaxLevel|{{#expr:100+({{#var:Unbind}}*25)}}}} | ||
|5={{#vardefine:HardMaxLevel|100}} {{#vardefine:SoftMaxLevel|{{#expr:80+({{#var:Unbind}}*5)}}}} | |5={{#vardefine:HardMaxLevel|100}} {{#vardefine:SoftMaxLevel|{{#expr:80+({{#var:Unbind}}*5)}}}} | ||
| Line 66: | Line 68: | ||
|where=_pageName="{{#titleparts:{{{2}}}}}" OR Name="{{#titleparts:{{{2}}}}}" | |where=_pageName="{{#titleparts:{{{2}}}}}" OR Name="{{#titleparts:{{{2}}}}}" | ||
|fields=CONCAT(BaseId, ' 0{{#ifexpr:{{#var:Unbind}}>1|2|1}}') | |fields=CONCAT(BaseId, ' 0{{#ifexpr:{{#var:Unbind}}>1|2|1}}') | ||
| − | |group by=_pageName|no html}}}} | + | |group by=_pageName|no html}}}}<!-- |
| − | + | -->{{#vardefine:overlayStyles|border-radius: 0 0 6% 6%/39%;}}<!-- | |
| − | + | -->{{#vardefine:derivedRarity|{{#cargo_query:tables=Wyrmprints | |
|where=_pageName="{{#titleparts:{{{2}}}}}" OR Name="{{#titleparts:{{{2}}}}}" | |where=_pageName="{{#titleparts:{{{2}}}}}" OR Name="{{#titleparts:{{{2}}}}}" | ||
| − | |fields=Rarity|group by=_pageName|no html}}}} | + | |fields=Rarity|group by=_pageName|no html}}}}<!-- |
| − | + | -->{{#switch: {{#var:derivedRarity}} | |
|5={{#vardefine:HardMaxLevel|100}} {{#vardefine:SoftMaxLevel|{{#expr:40+({{#var:Unbind}}*15)}}}} | |5={{#vardefine:HardMaxLevel|100}} {{#vardefine:SoftMaxLevel|{{#expr:40+({{#var:Unbind}}*15)}}}} | ||
|4={{#vardefine:HardMaxLevel|80}} {{#vardefine:SoftMaxLevel|{{#ifexpr:{{#var:Unbind}}<2|{{#expr:30+({{#var:Unbind}}*10)}}|{{#expr:30+20+({{#var:Unbind}}-2)*15)}}}}}} | |4={{#vardefine:HardMaxLevel|80}} {{#vardefine:SoftMaxLevel|{{#ifexpr:{{#var:Unbind}}<2|{{#expr:30+({{#var:Unbind}}*10)}}|{{#expr:30+20+({{#var:Unbind}}-2)*15)}}}}}} | ||
| Line 80: | Line 82: | ||
{{#vardefine:bgIcon|{{#cargo_query:tables=Dragons | {{#vardefine:bgIcon|{{#cargo_query:tables=Dragons | ||
|where=_pageName="{{#titleparts:{{{2}}}}}" OR FullName="{{#titleparts:{{{2}}}}}" | |where=_pageName="{{#titleparts:{{{2}}}}}" OR FullName="{{#titleparts:{{{2}}}}}" | ||
| − | |fields=CONCAT(BaseId, ' 01')|group by=_pageName|no html}}}} | + | |fields=CONCAT(BaseId, ' 01')|group by=_pageName|no html}}}}<!-- |
| − | + | -->{{#vardefine:overlayStyles| | |
clip-path:polygon(0 0, 100% 0, 100% 75%, 95.5% 75%, 95.5% 100%, 4% 100%, 4% 75%, 0 75%); | clip-path:polygon(0 0, 100% 0, 100% 75%, 95.5% 75%, 95.5% 100%, 4% 100%, 4% 75%, 0 75%); | ||
| − | height:13.75%;}} | + | height:13.75%;}}<!-- |
| − | + | -->{{#vardefine:derivedRarity|{{#cargo_query:tables=Dragons | |
|where=_pageName="{{#titleparts:{{{2}}}}}" OR FullName="{{#titleparts:{{{2}}}}}" | |where=_pageName="{{#titleparts:{{{2}}}}}" OR FullName="{{#titleparts:{{{2}}}}}" | ||
| − | |fields=Rarity|group by=_pageName|no html}}}} | + | |fields=Rarity|group by=_pageName|no html}}}}<!-- |
| − | + | -->{{#switch: {{#var:derivedRarity}} | |
|5={{#vardefine:HardMaxLevel|100}} {{#vardefine:SoftMaxLevel|{{#expr:40+({{#var:Unbind}}*15)}}}} | |5={{#vardefine:HardMaxLevel|100}} {{#vardefine:SoftMaxLevel|{{#expr:40+({{#var:Unbind}}*15)}}}} | ||
|4={{#vardefine:HardMaxLevel|80}} {{#vardefine:SoftMaxLevel|{{#ifexpr:{{#var:Unbind}}<2|{{#expr:30+({{#var:Unbind}}*10)}}|{{#expr:30+20+(({{#var:Unbind}}-2)*15)}}}}}} | |4={{#vardefine:HardMaxLevel|80}} {{#vardefine:SoftMaxLevel|{{#ifexpr:{{#var:Unbind}}<2|{{#expr:30+({{#var:Unbind}}*10)}}|{{#expr:30+20+(({{#var:Unbind}}-2)*15)}}}}}} | ||
| Line 106: | Line 108: | ||
position:absolute;bottom:6.25%;left:6.25%; | position:absolute;bottom:6.25%;left:6.25%; | ||
display:grid;grid-template-columns:1fr 1fr;text-align:center;align-items:center; | display:grid;grid-template-columns:1fr 1fr;text-align:center;align-items:center; | ||
| − | {{#var:overlayStyles}}"> | + | {{#var:overlayStyles}}"><!-- |
| − | + | --><div style="color:{{#var:levelColor}};font-size:{{#var:Size}}em;margin-right:-15%;">Lv. {{#var:Level}}</div><!-- | |
| − | + | --><div style="font-size:{{#var:Size}}em;{{#var:bottomRightContent}}</div><!-- | |
| − | + | --></div><!-- | |
| − | + | -->{{#ifexpr:{{{Augments|0}}} > 0 | | |
<div style="color:{{#ifeq:{{#var:Augments}}|200|{{#var:cyan}}|{{#var:gold}}}}; | <div style="color:{{#ifeq:{{#var:Augments}}|200|{{#var:cyan}}|{{#var:gold}}}}; | ||
text-shadow:-1px -1px black,1px -1px black,-1px 1px black,1px 1px black; | text-shadow:-1px -1px black,1px -1px black,-1px 1px black,1px 1px black; | ||
position:absolute;bottom:17.5%;right:12.5%; | position:absolute;bottom:17.5%;right:12.5%; | ||
| − | text-align:right;font-size:{{#expr:{{#var:Size}}*1.5}}em;">+{{#var:Augments}}</div> | + | text-align:right;font-size:{{#expr:{{#var:Size}}*1.5}}em;">+{{#var:Augments}}</div>}}<!-- |
| − | + | --></div><!-- | |
| − | </div><!-- | + | --></div><!-- |
| − | --></includeonly> | + | --></includeonly><noinclude>{{Doc}}</noinclude> |
| − | <noinclude>{{Doc}}</noinclude> | ||
Revision as of 16:01, 27 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:
Expression error: Unexpected < operator.
Error: Table Adventurers not found.
.png|link=Elisanne|80px]]Lv. Expression error: Unexpected < operator.
{{PersonalCollectionIcon|Adventurer|Laxi|Rarity=5|Level=80|Nodes=50|Augments=3}}
[[File:
50
Error: Table Adventurers not found.
.png|link=Laxi|80px]]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|160px]]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|240px]]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|320px]]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}}