Difference between revisions of "Home/ask/assignments"
m (dd) |
m (added documentation transclusion and simplified the date calculation a bit) |
||
Line 9: | Line 9: | ||
tables=Assignments | tables=Assignments | ||
|fields=Game,Status,Release_Date | |fields=Game,Status,Release_Date | ||
− | |where=DATEDIFF(Release_Date, '2019-04-01') >= 0 AND DATEDIFF(Release_Date, '2019- | + | |where=DATEDIFF(Release_Date, '2019-04-01') >= 0 AND DATEDIFF(Release_Date, '2019-05-01') < 0 |
|format=template | |format=template | ||
|template=:Home/ask/assignments/row | |template=:Home/ask/assignments/row | ||
Line 27: | Line 27: | ||
tables=Assignments | tables=Assignments | ||
|fields=Game,Status,Release_Date | |fields=Game,Status,Release_Date | ||
− | |where=DATEDIFF(Release_Date, '2019-05-01') >= 0 AND DATEDIFF(Release_Date, '2019- | + | |where=DATEDIFF(Release_Date, '2019-05-01') >= 0 AND DATEDIFF(Release_Date, '2019-06-01') < 0 |
|format=template | |format=template | ||
|template=:Home/ask/assignments/row | |template=:Home/ask/assignments/row | ||
Line 45: | Line 45: | ||
tables=Assignments | tables=Assignments | ||
|fields=Game,Status,Release_Date | |fields=Game,Status,Release_Date | ||
− | |where=DATEDIFF(Release_Date, '2019-06-01') >= 0 AND 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 | ||
Line 55: | Line 55: | ||
</div> | </div> | ||
− | <div> | + | <div><noinclude>{{Documentation}}</noinclude> |
Revision as of 07:23, 31 May 2019
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.