Difference between revisions of "Template:ST"

From Dragalia Lost Wiki
Jump to navigation Jump to search
>Mornsta-gpuser
>Mornsta-gpuser
 
(44 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>Generates adventurer story portrait icons with no spacing or alignment.
+
<noinclude>(Story) - Generates story portrait icons with no spacing or alignment, used on dialogue pages.  
{{ST|Euden}} Hey there!
+
 
{{ST|Elisanne}} Really?
+
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.
{{ST|Halloween Elisanne}} There's more to this costume than meets the eye!
+
 
{{ST|???}} Turn back...You're making a terrible mistake...
+
For the replacement template, see [[Template:NPCIcon]].
{{ST|Euden}} Huh? Who said that?!
+
{{ST|Shishimai}} Dragon
{{ST|Ranzal & Zace}} Right!
+
{{ST|Mym}} NPC
{{ST|Notte}} SWEET SASSY MOLASSY!
+
{{ST|Elisanne}} Adventurer
{{ST|Euden}} Here goes!
+
{{ST|???}} Non-existent Adventurer, Dragon, NPC
{{ST|Empress Zethia}}
+
{{ST|Mym}}
{{ST|Valyx}}
+
{{ST|Aurelius}}
{{ST|Harle}}
+
{{ST|Chelle}}
 +
{{ST|Phares}}
 
[[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>
|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|link=Zethia]]</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:-222px; top:-115px">[[File:100019 01 base portrait.png|512px|link=Harle]]</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>
 
|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:-234px; top:-78px">[[File:100016 01 base portrait.png|512px|link=Valyx]]</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.