Difference between revisions of "Template:ST"

From Dragalia Lost Wiki
Jump to navigation Jump to search
>Mornsta-gpuser
>Mornsta-gpuser
Line 10: Line 10:
 
[[Category:Templates]]
 
[[Category:Templates]]
 
</noinclude>
 
</noinclude>
<includeonly>{{#ifexist:{{#cargo_query:tables=Dragons|fields=CONCAT('File:',BaseId,' 0',VariationId,'.png')|where=_pageName="{{{1}}}"|limit=1|more results text=|no html}}|
+
<includeonly>{{#if:{{#cargo_query:tables=Dragons|fields=FullName|where=FullName="{{{1}}}"|limit=1|more results text=|no html|default=}}|{{STD|{{{1}}}}}|{{STC|{{{1}}}}}}}</includeonly>
{{STD|{{{1}}}}}|
 
{{STC|{{{1}}}}}}}</includeonly>
 

Revision as of 11:39, 4 March 2019

(Story) - Generates story portrait icons with no spacing or alignment, used on dialogue pages.

First checks if a dragon's portrait exists. If yes, parse into Template:STD and display dragon icon. If no, parse into Template:STC and display NPC icon, Adventurer icon, or default.

For the replacement template, see Template:NPCIcon.

Error: Table Dragons not found.

Dragon

Error: Table Dragons not found.

NPC

Error: Table Dragons not found.

Adventurer

Error: Table Dragons not found.

Non-existent Adventurer, Dragon, NPC