Difference between revisions of "Template:ST"

From Dragalia Lost Wiki
Jump to navigation Jump to search
>Mornsta-gpuser
>Mornsta-gpuser
 
(33 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>(Story) - Generates adventurer story portrait icons with no spacing or alignment, used in dialogue pages.<br>
+
<noinclude>(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]].
 
For the replacement template, see [[Template:NPCIcon]].
{{ST|Elisanne}} Really?
+
{{ST|Shishimai}} Dragon
{{ST|Halloween Elisanne}} There's more to this costume than meets the eye!
+
{{ST|Mym}} NPC
{{ST|???}} Turn back...You're making a terrible mistake...
+
{{ST|Elisanne}} Adventurer
{{ST|Euden}} Huh? Who said that?!
+
{{ST|???}} Non-existent Adventurer, Dragon, NPC
{{ST|Ranzal & Zace}} Right!
+
{{ST|Mym}}
 
{{ST|Aurelius}}
 
{{ST|Aurelius}}
{{ST|Emile}}
+
{{ST|Chelle}}
{{ST|Empress Zethia}}
+
{{ST|Phares}}
{{ST|Fiend}}
 
{{ST|Harle}}
 
{{ST|Leif}}
 
{{ST|Mym}}
 
{{ST|Notte}}
 
{{ST|Sarisse}}
 
{{ST|Valyx}}
 
{{ST|Zethia}}
 
 
[[Category:Templates]]
 
[[Category:Templates]]
</noinclude><includeonly>
+
</noinclude>
{{#switch:{{{1}}}
+
<includeonly>{{#if:{{#cargo_query:tables=Dragons|fields=FullName|where=FullName="{{{1}}}"|limit=1|more results text=|no html|default=}}|{{STD|{{{1}}}}}|{{STC|{{{1}}}}}}}</includeonly>
|Aurelius=<span style="width:50px; height:50px; overflow:hidden; display:inline-block; border-style: solid; border-width: 5px; border-color:transparent; vertical-align:middle;"><span style="position: relative;left:-167px; top:-55px">[[File:100012 02 base portrait.png|400px|link=Aurelius]]</span></span>
 
|Emile=<span style="width:50px; height:50px; overflow:hidden; display:inline-block; border-style: solid; border-width: 5px; border-color:transparent; vertical-align:middle;"><span style="position: relative;left:-125px; top:-45px">[[File:100017 01 base portrait.png|300px|link=Emile]]</span></span>
 
|Empress Zethia=<span style="width:50px; height:50px; overflow:hidden; display:inline-block; border-style: solid; border-width: 5px; border-color:transparent; vertical-align:middle;"><span style="position: relative;left:-172px; top:-88px">[[File:100009 06 base portrait.png|400px|Empress Zethia|link=Zethia]]</span></span>
 
|Fiend=<span style="width:50px; height:50px; overflow:hidden; display:inline-block; border-style: solid; border-width: 5px; border-color:transparent; vertical-align:middle;"><span style="position: relative;left:-155px; top:-150px">[[File:120007 01 base portrait.png|400px|link=Fiend]]</span></span>
 
|Harle=<span style="width:50px; height:50px; overflow:hidden; display:inline-block; border-style: solid; border-width: 5px; border-color:transparent; vertical-align:middle;"><span style="position: relative;left:-168px; top:-80px">[[File:100019 01 base portrait.png|400px|link=Harle]]</span></span>
 
|Leif=<span style="width:50px; height:50px; overflow:hidden; display:inline-block; border-style: solid; border-width: 5px; border-color:transparent; vertical-align:middle;"><span style="position: relative;left:-122px; top:-41px">[[File:100018 03 base portrait.png|300px|link=Leif]]</span></span>
 
|Mym=<span style="width:50px; height:50px; overflow:hidden; display:inline-block; border-style: solid; border-width: 5px; border-color:transparent; vertical-align:middle;"><span style="position: relative;left:-122px; top:-50px">[[File:100010 05 base portrait.png|300px|link=Mym]]</span></span>
 
|Notte=<span style="width:50px; height:50px; overflow:hidden; display:inline-block; border-style: solid; border-width: 5px; border-color:transparent; vertical-align:middle;"><span style="position: relative;left:-160px; top:-80px">[[File:100007 01 base portrait.png|400px|link=Notte]]</span></span>
 
|Sarisse=<span style="width:50px; height:50px; overflow:hidden; display:inline-block; border-style: solid; border-width: 5px; border-color:transparent; vertical-align:middle;"><span style="position: relative;left:-127px; top:-67px">[[File:100029 01 base portrait.png|300px|link=Sarisse]]</span></span>
 
|Valyx=<span style="width:50px; height:50px; overflow:hidden; display:inline-block; border-style: solid; border-width: 5px; border-color:transparent; vertical-align:middle;"><span style="position: relative;left:-177px; top:-52px">[[File:100016 01 base portrait.png|400px|link=Valyx]]</span></span>
 
|Zethia=<span style="width:50px; height:50px; overflow:hidden; display:inline-block; border-style: solid; border-width: 5px; border-color:transparent; vertical-align:middle;"><span style="position: relative;left:-127px; top:-60px">[[File:100009 01 base portrait.png|300px|link=Zethia]]</span></span>
 
|{{{1}}}={{#cargo_query:tables=Adventurers|fields=CONCAT('[[File:',Id,' 0',VariationId,' r0',Rarity,'.png|60px|link=',_pageName,']]')|where=_pageName="{{{1}}}"|group by=_pageName|default= '''{{{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.