Difference between revisions of "User:FlareKyn/DragonTableEntryName"

From Dragalia Lost Wiki
Jump to navigation Jump to search
imported>Elaeagnifolia
imported>Elaeagnifolia
Line 2: Line 2:
  
 
# First, check the cargo database that stores all the Dragon data to see how many alts there are
 
# First, check the cargo database that stores all the Dragon data to see how many alts there are
-->{{#vardefine:numberOfAlts|{{#cargo_query:tables=Dragons
+
-->{{#switch:{{{Name|}}}
|fields=COUNT(*)
+
|Rathalos
|where=Name="{{{Name|}}}"
+
|Midgardsormr
|no html
+
|Brunhilda
}}
+
|Mercury
 +
|Jupiter
 +
|Zodiark={{{FullName|}}}
 +
|#default={{{Name|}}}
 
}}<!--
 
}}<!--
 
# If there are no alts (so only 1), use Name, otherwise, use FullName.
 
-->{{#ifeq:{{#var:numberOfAlts}} | 1 | {{{Name|}}} | {{{FullName|}}} }}<!--
 
  
 
# If there's a title, tack it on.
 
# If there's a title, tack it on.
 
-->{{#if:{{{Title|}}} |<nowiki/>: {{{Title|}}} }}</includeonly>
 
-->{{#if:{{{Title|}}} |<nowiki/>: {{{Title|}}} }}</includeonly>

Revision as of 23:54, 26 March 2020