Difference between revisions of "Template:PersonalCollectionIcon"

From Dragalia Lost Wiki
Jump to navigation Jump to search
>FlareKyn
>FlareKyn
Line 1: Line 1:
<includeonly>{{#switch:{{{1|}}}
+
<!--
|Adventurer={{#vardefine:Icon|{{#cargo_query:tables=Adventurers|where=_pageName="{{#titleparts:{{{2}}}}}" OR FullName="{{#titleparts:{{{2}}}}}"|fields=CONCAT('[[File:', Id, ' 0', VariationId, ' r0', {{{rarity|Rarity}}}, '.png|link=',{{{link|_pageName}}},']]')|group by=_pageName|limit=1|more results text=|default=}}}}
+
-->{{#switch: {{{1|}}}
|Weapon={{#vardefine:Icon|{{#cargo_query:tables=Weapons|where=_pageName="{{#titleparts:{{{2}}}}}" OR WeaponName="{{#titleparts:{{{2}}}}}"|fields=CONCAT('[[File:', BaseId, ' 01 ', FormId, '.png|link=',{{{link|_pageName}}},']]')|group by=_pageName|limit=1|more results text=|default=}}}}
 
|Wyrmprint={{#vardefine:Icon|{{#cargo_query=Wyrmprint|where=_pageName="{{#titleparts:|{{{2}}} OR FullName="{{#titleparts:{{{2}}}}}"|fields=CONCAT('[[File:', BaseId, ' 0', {{#var:version}}, '.png|link='.{{{link|_pageName}}},']]')|group by=_pagename|limit=1|more results text=|default=}}}}
 
|Dragon={{#vardefine:Icon|{{#cargo_query:tables=Dragons|where=_pageName="{{#titleparts:{{{2}}}}}" OR FullName="{{#titleparts:{{{2}}}}}"|fields=CONCAT('[[File:', BaseId, ' 01.png|link=',{{{link|_pageName}}},']]')|group by=_pageName|limit=1|more results text=|default=}}}}}}<!--
 
-->{{#vardefine:version|{{#ifexpr:{{{unbind|}}}>1|2|1}}}}}}<!--
 
-->{{#vardefine:box|{{#switch{{{1|}}}
 
|Adventurer=
 
|Weapon
 
|Wyrmprint=; border-radius: 0px 0px 9px 9px
 
|Dragon=; height: 16px
 
}}}}<!--
 
-->{{#vardefine:box2|{{#switch{{{1|}}}
 
 
|Adventurer=
 
|Adventurer=
 +
{{#vardefine:c1|{{#cargo_query:tables=Adventurers|where=FullName='{{{2|}}}'|fields=CONCAT('[[File:', Id, ' 0', VariationId, ' r0', {{{Rarity|Rarity}}}, '.png|link=',{{{link|_pageName}}},']]')|group by=_pageName}}}}
 +
{{#vardefine:c5|{{{Nodes|}}}}}
 
|Weapon=
 
|Weapon=
 +
{{#vardefine:c1|{{#cargo_query:tables=Weapons|where=WeaponName='{{{2|}}}'|fields=CONCAT('[[File:', BaseId, ' 01 ', FormId, '.png|link=',{{{link|_pageName}}},']]')|group by=_pageName}}}}
 +
{{#vardefine:c5|[[File:{{{Unbinds|}}} Unbind.png]]}}
 
|Wyrmprint=
 
|Wyrmprint=
 +
{{#vardefine:c1|{{#cargo_query:tables=Wyrmprints|where=Name='{{{2|}}}'|fields=CONCAT('[[File:', BaseId, ' 01.png|link=',{{{link|_pageName}}},']]')|group by=_pageName}}}}
 +
{{#vardefine:c5|[[File:{{{Unbinds|}}} Unbind.png]]}}
 
|Dragon=
 
|Dragon=
}}}}<!--
+
{{#vardefine:c1|{{#cargo_query:tables=Dragons|where=FullName='{{{2|}}}'|fields=CONCAT('[[File:', BaseId, ' 01.png|link=',{{{link|_pageName}}},']]')|group by=_pageName}}}}
 +
{{#vardefine:c5|[[File:{{{Unbinds|}}} Unbind.png]]}}
 +
}}<!--
  
 
+
-->{{#ifeq:{{{1|}}}|Dragon|
-->{{#invoke:Superimpose|main
+
{{#invoke:Superimpose|main
| c1={{#var:Icon}}
+
| c1={{#var:c1}}
| c2=<div style="background-color: rgba(0, 0, 0, 0.6); width: 140px; text-align: center; {{#ifeq:{{{1|}}}|Weapon|border-radius: 0px 0px 9px 9px|}}{{#ifeq:{{{1|}}}|Wyrmprint|border-radius: 0px 0px 9px 9px|}}{{#ifeq:{{{1|}}}|Dragon|height: 16px|}}"><p style="opacity: 1; color: #ffffff; font-weight:bold;">&nbsp;</p></div>
+
| c2=<div style="background-color: rgba(0, 0, 0, 0.6); width: 140px; ; height: 16px; text-align: center"><p style="opacity: 1; color: #000000; font-weight:bold;">&#8203;</p></div>
 +
| x2=10
 +
| y2=121
 +
| c3=<div style="background-color: rgba(0, 0, 0, 0.6); width: 128px; height: 6px; text-align: center"><p style="opacity: 1; color: #000000; font-weight:bold;">&#8203;</p></div>
 +
| x3=16
 +
| y3=137
 +
| c4=<p style="opacity: 1; color: #ffffff; font-weight:bold">Lv. {{{Level|}}}</p>
 +
| x4=35
 +
| y4=121
 +
| c5=<p style="opacity: 1; color: #ffffff; font-weight:bold">{{#var:c5}}</p>
 +
| x5=88
 +
| y5=119
 +
| c6=<p style="opacity: 1; color: {{#ifexpr:{{{Augments|}}}>199|#3de1e0|#f5c831}}; font-weight:bold; -webkit-text-stroke: 1px black; position: absolute; right:0;"><big>+{{{Augments|}}}</big></p>
 +
| x6=143
 +
| y6=100}}
 +
|{{#invoke:Superimpose|main
 +
| c1={{#var:c1}}
 +
| c2=<div style="background-color: rgba(0, 0, 0, 0.6); width: 140px; text-align: center; {{#ifeq:{{{1|}}}|Adventurer||border-radius: 0px 0px 7px 7px;}}"><p style="opacity: 1; color: #ffffff; font-weight:bold; >&#8203;</p></div>
 
| x2=10
 
| x2=10
 
| y2=121
 
| y2=121
{{#var:box2}}
+
| c3={{#ifeq:{{{1|}}}|Adventurer|[[File:Icon CircleRelease 02.png|22x23px]]}}
}}</includeonly><noinclude>{{PersonalCollectionIcon|Adventurer|The Prince}}{{PersonalCollectionIcon|Weapon|Absolute Crimson}}{{PersonalCollectionIcon|Wyrmprint|Valiant Crown}}{{PersonalCollectionIcon|Dragon|Cerberus}}</noinclude>
+
| x3=95
 +
| y3=127
 +
| c4=<p style="opacity: 1; color: #ffffff; font-weight:bold">Lv. {{{Level|}}}</p>
 +
| x4=35
 +
| y4=121
 +
| c5=<p style="opacity: 1; color: #ffffff; font-weight:bold">{{#var:c5}}</p>
 +
| x5={{#ifeq:{{{1|}}}|Adventurer|117|88}}
 +
| y5={{#ifeq:{{{1|}}}|Adventurer|121|119}}
 +
| c6=<p style="opacity: 1; color: {{#ifexpr:{{{Augments|}}}>199|#3de1e0|#f5c831}}; font-weight:bold; -webkit-text-stroke: 1px black; position: absolute; right:0;"><big>+{{{Augments|}}}</big></p>
 +
| x6=143
 +
| y6=100}}
 +
}}<!--
 +
-->
 +
<noinclude>{{doc}}</noinclude>

Revision as of 07:57, 7 April 2020

Lv.

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

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}}

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}}

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}}

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}}

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}}

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}}

Lv. 95

File:Unbind.png

+52

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

Lv. 9

File:Unbind.png

+1

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

Lv. 100

File:Unbind.png

+122

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

Lv. 100

File:Unbind.png

+200

Error: Table Dragons not found.