Difference between revisions of "Dragalia Lost Wiki/Latest Events"
Jump to navigation
Jump to search
>Teg (Created page with "400px|link=Loyalty's Requiem <div>Time Remaining: <span class="countdown"><span class="countdowndate" style="font-weight:bold">Octobe...") |
>Eave (adding flex styling for a more grid-like layout) |
||
| Line 1: | Line 1: | ||
| − | + | <div class="latest-events-mp">{{#widget:Dragalia Lost Wiki/Latest Events/css}} | |
| − | <div> | + | <div style="padding-bottom:10px;text-align:center"> |
| + | {{#tag:tabber | ||
| + | |Ongoing= | ||
| + | <div class="mp-menu-item-body" style="display:flex;flex-wrap:wrap;justify-content:center"> | ||
| + | {{#invoke:CargoQuery|main | ||
| + | |q?tables=Events | ||
| + | |q?fields=Name,StartDate,EndDate | ||
| + | |q?orderBy=EndDate ASC, Name ASC | ||
| + | |q?groupBy=_pageName | ||
| + | |q?where=NOW() between StartDate and EndDate | ||
| + | |template=EventsMP | ||
| + | |default= | ||
| + | |more results text= | ||
| + | }} | ||
| + | {{#invoke:CargoQuery|main | ||
| + | |q?tables=SecondaryEvents | ||
| + | |q?fields=Name,ImageFile,PageLink,OfficialLink,StartDate,EndDate,_rowID | ||
| + | |q?orderBy=EndDate ASC, Name ASC | ||
| + | |q?groupBy= | ||
| + | |q?where=NOW() between StartDate and EndDate AND _pageName='Dragalia Lost Wiki/Secondary Events' | ||
| + | |template=SecondaryEventsMP | ||
| + | |default= | ||
| + | |more results text= | ||
| + | }} | ||
| + | </div> | ||
| + | {{!}}-{{!}} | ||
| + | Upcoming= | ||
| + | <div class="mp-menu-item-body" style="display:flex;flex-wrap:wrap;justify-content:center"> | ||
| + | {{#invoke:CargoQuery|main | ||
| + | |q?tables=Events | ||
| + | |q?fields=Name,StartDate,EndDate | ||
| + | |q?orderBy=StartDate ASC, Name ASC | ||
| + | |q?groupBy=_pageName | ||
| + | |q?where=StartDate >= NOW() | ||
| + | |template=EventsMP | ||
| + | |default= | ||
| + | |more results text= | ||
| + | }} | ||
| + | {{#invoke:CargoQuery|main | ||
| + | |q?tables=SecondaryEvents | ||
| + | |q?fields=Name,ImageFile,PageLink,OfficialLink,StartDate,EndDate,_rowID | ||
| + | |q?orderBy=StartDate ASC, Name ASC | ||
| + | |q?groupBy= | ||
| + | |q?where=StartDate >= NOW() AND _pageName='Dragalia Lost Wiki/Secondary Events' | ||
| + | |template=SecondaryEventsMP | ||
| + | |default= | ||
| + | |more results text= | ||
| + | }} | ||
| + | }} | ||
| + | </div> | ||
| + | </div> | ||
| + | </div> | ||
Latest revision as of 13:46, 27 March 2020