User:Electricsheep/sandbox: Difference between revisions

Jump to navigation Jump to search
No edit summary
Line 1:
__TOC__
=Cargo query test=
TODO: account for daily reset at 4
fix UL css
 
<ul>
{{#cargo_query:
tables = bannersevents
| fields = Image, Rateup_character=Rateup_characterNameEN, date_format(Start_date, '%m/%d')=sdate, date_format(End_date, '%m/%d')=edate
| where = End_date > NOW() AND Start_date < DATE_ADD(NOW(), INTERVAL 24 DAY) AND Category="Event" AND Server="JP"
| order by = Start_date DESCASC
| format = template
| template = FrontpageBannerFrontpageEvent
| named args = yes
| default =
}}
</ul>
 
<ul>
{{#cargo_query:
tables = events
| fields = Image, NameEN, date_format(Start_date, '%m/%d')=sdate, date_format(End_date, '%m/%d')=edate
| where = End_date > NOW() AND Start_date < DATE_ADD(NOW(), INTERVAL 4 DAY) AND Category="Rewards" AND Server="JP"
| order by = Start_date ASC
| format = template
| template = FrontpageEvent
| named args = yes
| default =
}}
</ul>
<ul>
{{#cargo_query:
tables = events
| fields = Image, NameEN, date_format(Start_date, '%m/%d')=sdate, date_format(End_date, '%m/%d')=edate
| where = End_date > NOW() AND Start_date < DATE_ADD(NOW(), INTERVAL 24 DAY) AND Category="Login" AND Server="JP"
| order by = Category ASC, Start_date ASC
| format = template
| template = FrontpageEvent
| named args = yes
| intro = ----
| default =
}}
</ul>
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu