Difference between revisions of "Template:PersonalCollectionIcon"

From Dragalia Lost Wiki
Jump to navigation Jump to search
>FlareKyn
>FlareKyn
Line 2: Line 2:
 
-->{{#switch: {{{1|}}}
 
-->{{#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:c1|{{#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}}}}
 
{{#vardefine:c5|{{{Nodes|}}}}}
 
{{#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:c1|{{#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}}}}
 
{{#vardefine:c5|[[File:{{{Unbind|}}} Unbind.png]]}}
 
{{#vardefine:c5|[[File:{{{Unbind|}}} Unbind.png]]}}
 
|Wyrmprint=
 
|Wyrmprint=
{{#vardefine:c1|{{#cargo_query:tables=Wyrmprints|where=Name='{{{2|}}}'|fields=CONCAT('[[File:', BaseId, ' 0{{#ifexpr:{{{Unbind|}}}>1|2|1}}.png|link=',{{{link|_pageName}}},']]')|group by=_pageName}}}}
+
{{#vardefine:c1|{{#cargo_query:tables=Wyrmprints|where=_pageName="{{#titleparts:{{{2}}}}}" OR Name="{{#titleparts:{{{2}}}}}"|fields=CONCAT('[[File:', BaseId, ' 0{{#ifexpr:{{{Unbind|}}}>1|2|1}}.png|link=',{{{link|_pageName}}},']]')|group by=_pageName}}}}
 
{{#vardefine:c5|[[File:{{{Unbind|}}} Unbind.png]]}}
 
{{#vardefine:c5|[[File:{{{Unbind|}}} 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:c1|{{#cargo_query:tables=Dragons|where=_pageName="{{#titleparts:{{{2}}}}}" OR FullName="{{#titleparts:{{{2}}}}}"|fields=CONCAT('[[File:', BaseId, ' 01.png|link=',{{{link|_pageName}}},']]')|group by=_pageName}}}}
 
{{#vardefine:c5|[[File:{{{Unbind|}}} Unbind.png]]}}
 
{{#vardefine:c5|[[File:{{{Unbind|}}} Unbind.png]]}}
 
}}<!--
 
}}<!--

Revision as of 08:53, 7 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}}

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

3 Unbind.png

+52

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

Lv. 9

1 Unbind.png

+1

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

Lv. 100

4 Unbind.png

+122

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

Lv. 100

4 Unbind.png

+200

Error: Table Dragons not found.