Difference between revisions of "Home/ask/assignments"
m (ASC -> DESC on previous month) |
(Let's try descending order) |
||
Line 3: | Line 3: | ||
<div class="month-container"> | <div class="month-container"> | ||
<div class="month"> | <div class="month"> | ||
− | <p>''' | + | |
+ | <div class="month-container"> | ||
+ | <div class="month"> | ||
+ | <p>'''July'''</p> | ||
</div> | </div> | ||
<table style="max-width: 100%; min-width: 100%; margin: 0 auto; border: 0; border-spacing: 0 10px;"> | <table style="max-width: 100%; min-width: 100%; margin: 0 auto; border: 0; border-spacing: 0 10px;"> | ||
Line 9: | Line 12: | ||
tables=Assignments | tables=Assignments | ||
|fields=Game,Status,Release_Date | |fields=Game,Status,Release_Date | ||
− | |where=DATEDIFF(Release_Date, '2019- | + | |where=DATEDIFF(Release_Date, '2019-07-01') >= 0 AND DATEDIFF(Release_Date, '2019-08-01') < 0 |
|format=template | |format=template | ||
|template=:Home/ask/assignments/row | |template=:Home/ask/assignments/row | ||
− | |order by=Release_Date | + | |order by=Release_Date DESC |
|more results text= | |more results text= | ||
}} | }} | ||
Line 18: | Line 21: | ||
</div> | </div> | ||
− | + | <p>'''June'''</p> | |
− | |||
− | <p>''' | ||
</div> | </div> | ||
<table style="max-width: 100%; min-width: 100%; margin: 0 auto; border: 0; border-spacing: 0 10px;"> | <table style="max-width: 100%; min-width: 100%; margin: 0 auto; border: 0; border-spacing: 0 10px;"> | ||
Line 26: | Line 27: | ||
tables=Assignments | tables=Assignments | ||
|fields=Game,Status,Release_Date | |fields=Game,Status,Release_Date | ||
− | |where=DATEDIFF(Release_Date, '2019- | + | |where=DATEDIFF(Release_Date, '2019-06-01') >= 0 AND DATEDIFF(Release_Date, '2019-07-01') < 0 |
|format=template | |format=template | ||
|template=:Home/ask/assignments/row | |template=:Home/ask/assignments/row | ||
− | |order by=Release_Date | + | |order by=Release_Date DESC |
|more results text= | |more results text= | ||
}} | }} | ||
</table> | </table> | ||
</div> | </div> | ||
− | |||
− | |||
<div class="month-container"> | <div class="month-container"> |
Revision as of 08:05, 19 June 2019
July
11 | [[]] | |
11 | [[]] | |
11 | [[]] | |
11 | [[]] | |
11 | [[]] | |
11 | [[]] | |
11 | [[]] | |
11 | [[]] | |
11 | [[]] | |
11 | [[]] | |
11 | [[]] | |
11 | [[]] | |
11 | [[]] | |
11 | [[]] | |
11 | [[]] | |
11 | [[]] | |
11 | [[]] | |
11 | [[]] | |
11 | [[]] |
June
11 | [[]] | |
11 | [[]] | |
11 | [[]] | |
11 | [[]] | |
11 | [[]] | |
11 | [[]] | |
11 | [[]] | |
11 | [[]] | |
11 | [[]] | |
11 | [[]] | |
11 | [[]] | |
11 | [[]] | |
11 | [[]] | |
11 | [[]] | |
11 | [[]] | |
11 | [[]] | |
11 | [[]] | |
11 | [[]] |
Description
- Purge the home page to refresh the lists.
This page makes use of the #cargo_query function along with relevant #time parser function to query data from the Assignments
Cargo table (populated by the the Assignments/Table page) which is then transcluded unto Home. As part of the database query, the query makes use of the DATEDIFF() function to validate if the specified Release Date
(also set on the the Assignments/Table page) is between two dates, the first day of the month or the first day of the next month.
- The two future months listed first are ordered by the release date in ascending order. The bottom past month is ordered in descending order.