Difference between revisions of "Template:SummonShowcaseMP/doc"

From Dragalia Lost Wiki
Jump to navigation Jump to search
>Caledor92
>Caledor92
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{doc/start}}
 
{{doc/start}}
(Summon Showcase Main Page) - Parses summon showcase cargo field into a formatted banner, used on the [[Main Page]].
+
<div style="width:100%;margin:5px;text-align:center;border:1px solid #9aa99a;">
==Example==
+
<div style="margin:5px 5px 0;font-weight:bold;background-color:orange;">[[Summon Showcase]]s</div>
 +
<div style="padding:10px;text-align:center">
 
{{#invoke:CargoQuery|main
 
{{#invoke:CargoQuery|main
 
|q?tables=SummonShowcase
 
|q?tables=SummonShowcase
 
|q?fields=Title,StartDate,EndDate
 
|q?fields=Title,StartDate,EndDate
|q?orderBy=StartDate DESC, Title ASC
+
|q?orderBy=Type DESC, StartDate ASC, Title ASC
 
|q?groupBy=_pageName
 
|q?groupBy=_pageName
 
|q?where=NOW() between StartDate and EndDate OR StartDate >= NOW()  
 
|q?where=NOW() between StartDate and EndDate OR StartDate >= NOW()  
Line 12: Line 13:
 
|more results text=
 
|more results text=
 
}}
 
}}
 +
</div>
 +
</div>
 
{{Doc/end}}
 
{{Doc/end}}

Latest revision as of 10:04, 25 July 2020

50px Documentation

Lua error: Error: Table SummonShowcase not found..