Difference between revisions of "User:FlareKyn/DragonTableEntryName"

From Dragalia Lost Wiki
Jump to navigation Jump to search
imported>Elaeagnifolia
>FlareKyn
 
(19 intermediate revisions by one other user not shown)
Line 1: Line 1:
<noinclude>[[Category:Templates]]<noinclude><includeonly><!--
+
<noinclude>[[Category:Templates]]</noinclude><includeonly><!--
  
# First, check the cargo database that stores all the Dragon data to see how many alts there are
+
# First, determine which dragon needs to use FullName
-->{{#vardefine:numberOfAlts|{{#cargo_query:tables=Dragons
+
-->{{#switch:{{{Name|}}}
|fields=COUNT(*)
+
|Rathalos
|where=Name="{{{Name|}}}"
+
|Midgardsormr
|no html
+
|Brunhilda
}}
+
|Mercury
 +
|Jupiter
 +
|Zodiark={{#switch:{{{FullName|}}}
 +
  |For dragons that break the rules, if it ever happens.={{{Name|}}}
 +
  |#default={{{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|}}} | : {{{Title|}}} }}</includeonly>
+
-->{{#if:{{{Title|}}} |<nowiki/>: {{{Title|}}} }}</includeonly>

Latest revision as of 19:03, 6 August 2020