Difference between revisions of "Home/ask/assignments/Documentation"
m (Protected "Home/ask/assignments/Documentation" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))) |
m (updated docs) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
'''Description''' | '''Description''' | ||
+ | {{ii}} '''[{{fullurl:Home|action=purge}} Purge the home page] to refresh the lists.''' | ||
− | This page makes use of [https://www.mediawiki.org/wiki/Extension:Cargo/Querying_data the #cargo_query function] to query data from the <code>Assignments</code> Cargo table (populated by the [[PCGamingWiki:Assignments | + | This page makes use of [https://www.mediawiki.org/wiki/Extension:Cargo/Querying_data the #cargo_query function] along with relevant [https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions##time #time parser function] to query data from the <code>Assignments</code> Cargo table (populated by the [[PCGamingWiki:Assignments/Table|the Assignments/Table page]]) which is then transcluded unto [[Home]]. As part of the database query, the query makes use of [https://www.mediawiki.org/wiki/Extension:Cargo/Querying_data#Date_filtering the DATEDIFF() function] to validate if the specified <code>Release Date</code> (also set on the [[PCGamingWiki:Assignments/Table|the Assignments/Table page]]) is between two dates, the first day of the month or the first day of the next month. |
− | + | {{ii}} The two future months listed first are ordered by the release date in ascending order. The bottom past month is ordered in descending order. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Latest revision as of 06:49, 1 September 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.