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|}}}
 
<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=}}}}
 
|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=}}}}
|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=}}}}<!--
+
|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=}}}}
 
|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=}}}}}}
+
|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:version|{{#ifexpr:{{{unbind|}}}>1|2|1}}}}}}<!--
 
-->{{#vardefine:box|{{#switch{{{1|}}}
 
-->{{#vardefine:box|{{#switch{{{1|}}}
Line 21: Line 21:
 
-->{{#invoke:Superimpose|main
 
-->{{#invoke:Superimpose|main
 
| c1={{#var:Icon}}
 
| c1={{#var:Icon}}
| c2=<div style="background-color: rgba(0, 0, 0, 0.6); width: 140px; text-align: center{{#var:box}}"><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; 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>
 
| x2=10
 
| x2=10
 
| y2=121
 
| y2=121
 
{{#var:box2}}
 
{{#var:box2}}
}}</includeonly><noinclude>{{PersonalCollectionIcon|Adventurer|The Prince}}{{PersonalCollectionIcon|Weapon|Absolute Crimson}}</noinclude>
+
}}</includeonly><noinclude>{{PersonalCollectionIcon|Adventurer|The Prince}}{{PersonalCollectionIcon|Weapon|Absolute Crimson}}{{PersonalCollectionIcon|Wyrmprint|Valiant Crown}}{{PersonalCollectionIcon|Dragon|Cerberus}}</noinclude>

Revision as of 03:12, 7 April 2020

 

Error: Table Adventurers not found.

 

Error: Table Weapons not found.

 

{{#cargo_query=Wyrmprint|where=_pageName="}}

 

{{#cargo_query=Wyrmprint|where=_pageName="}}