Difference between revisions of "Template:ST"

From Dragalia Lost Wiki
Jump to navigation Jump to search
>Mornsta-gpuser
(Created page with "Generates story portrait icons with no spacing or alignment. <includeonly> {{#cargo_query: tables=Adventurers |fields=_pageName=Name,Id=InternalId,VariationId |where=_pageName...")
 
>Mornsta-gpuser
 
(89 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Generates story portrait icons with no spacing or alignment.
+
<noinclude>(Story) - Generates story portrait icons with no spacing or alignment, used on dialogue pages.
<includeonly>
+
 
{{#cargo_query:
+
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.
tables=Adventurers
+
 
|fields=_pageName=Name,Id=InternalId,VariationId
+
For the replacement template, see [[Template:NPCIcon]].
|where=_pageName="{{{1|}}}"
+
{{ST|Shishimai}} Dragon
|group by=_pageName
+
{{ST|Mym}} NPC
|format=template
+
{{ST|Elisanne}} Adventurer
|template=TierListGridEntryDisplay
+
{{ST|???}} Non-existent Adventurer, Dragon, NPC
|named args=yes
+
{{ST|Mym}}
|limit=1
+
{{ST|Aurelius}}
|more results text=
+
{{ST|Chelle}}
}}
+
{{ST|Phares}}
</includeonly>
+
[[Category:Templates]]
 +
</noinclude>
 +
<includeonly>{{#if:{{#cargo_query:tables=Dragons|fields=FullName|where=FullName="{{{1}}}"|limit=1|more results text=|no html|default=}}|{{STD|{{{1}}}}}|{{STC|{{{1}}}}}}}</includeonly>

Latest revision as of 12:33, 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

Error: Table Dragons not found.
Error: Table Dragons not found.
Error: Table Dragons not found.
Error: Table Dragons not found.