Difference between revisions of "User:Caledor92/Sandbox4"
Jump to navigation
Jump to search
>Caledor92 (dragoon roost stuff, takemika's name overlap fix) |
>Caledor92 |
||
| Line 1: | Line 1: | ||
| − | {{# | + | <div class="latest-events-mp">{{#css: |
| − | | | + | .latest-events-mp .tabberlive, |
| − | | | + | .latest-events-mp .tabberlive .tabbertab { |
| − | | | + | <!--border: none !important;--> |
| − | | | + | } |
| + | |||
| + | .latest-events-mp .tabberlive .tabbertab { | ||
| + | padding-top: 15px; | ||
| + | } | ||
| + | |||
| + | .latest-events-mp .tabbernav { | ||
| + | <!--border-bottom: none !important;--> | ||
| + | display: flex; | ||
| + | justify-content: space-between; | ||
| + | } | ||
| + | |||
| + | .latest-events-mp .tabbernav li { | ||
| + | padding-top: 0; | ||
| + | width: 100%; | ||
| + | } | ||
| + | |||
| + | .latest-events-mp .tabbernav li a, | ||
| + | .latest-events-mp .tabbernav li a:link { | ||
| + | background-color: #fff; | ||
| + | border: 1px solid #1f4c1f !important; | ||
| + | color: #000; | ||
| + | display: block; | ||
| + | <!--margin: 0;--> | ||
| + | padding: 6px; | ||
| + | font-size: 1.1em; | ||
| + | } | ||
| + | |||
| + | .latest-events-mp .tabbernav li a:hover { | ||
| + | background-color: #e4e4e4 !important; | ||
| + | } | ||
| + | |||
| + | .latest-events-mp .tabbernav li.tabberactive a { | ||
| + | /** Remove the !important here if you want the active tab to also change color on hover */ | ||
| + | background-color: #1f4c1f !important; | ||
| + | color: #fff !important; | ||
| + | } | ||
| + | }} | ||
| + | <div style="padding-bottom:10px;text-align:center"> | ||
| + | {{#tag:tabber | ||
| + | |Ongoing= | ||
| + | {{#invoke:CargoQuery|main | ||
| + | |q?tables=Events | ||
| + | |q?fields=Name,StartDate,EndDate | ||
| + | |q?orderBy=StartDate DESC, Name ASC | ||
| + | |q?groupBy=_pageName | ||
| + | |q?where=NOW() between StartDate and EndDate | ||
| + | |template=EventsMP | ||
| + | |default= | ||
| + | |more results text= | ||
| + | }} | ||
| + | <div class="mp-menu-item-body"> | ||
| + | {{#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=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"> | ||
| + | {{#invoke:CargoQuery|main | ||
| + | |q?tables=Events | ||
| + | |q?fields=Name,StartDate,EndDate | ||
| + | |q?orderBy=StartDate DESC, Name ASC | ||
| + | |q?groupBy=_pageName | ||
| + | |q?where=StartDate >= NOW() | ||
| + | |template=EventsMP | ||
| + | |default= | ||
| + | |more results text= | ||
| + | }} | ||
| + | </div> | ||
| + | {{#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> | ||
Revision as of 05:36, 24 January 2020
{{#css:
.latest-events-mp .tabberlive, .latest-events-mp .tabberlive .tabbertab { }
.latest-events-mp .tabberlive .tabbertab {
padding-top: 15px;
}
.latest-events-mp .tabbernav {
display: flex; justify-content: space-between;
}
.latest-events-mp .tabbernav li {
padding-top: 0; width: 100%;
}
.latest-events-mp .tabbernav li a, .latest-events-mp .tabbernav li a:link {
background-color: #fff; border: 1px solid #1f4c1f !important; color: #000; display: block; padding: 6px; font-size: 1.1em;
}
.latest-events-mp .tabbernav li a:hover {
background-color: #e4e4e4 !important;
}
.latest-events-mp .tabbernav li.tabberactive a {
/** Remove the !important here if you want the active tab to also change color on hover */ background-color: #1f4c1f !important; color: #fff !important;
} }}
Lua error: Error: Table Events not found..
Lua error: Error: Table SecondaryEvents not found..