Last modified: 2013-08-19 17:26:42 UTC
Regarding DynamicPageList (DPL) for WikiNews
On wikinews, there are standardized date categories, in the format: June 1, 2005
an article in that category has the respective tag in it: [[category:June 1, 2005]]
Already, one can have a single date category in a dpl:
category=June 1, 2005
I would like to see functionality in regard to these date categories implemented
*the ability to put relative dates in: x number of days before or after "today"
*the ability to specify a date _range_
*the ability to specify an unbounded date range: (relative:) 5 days ago to
present, or (absolute:) specific date to present
[please try to make the summary of bugs describe the issue succinctly but precisely]
possible formatting of date range:
startdate=May 4, 2004
enddate= (three days before today)
startdate=May 4, 2004
if a begin date or end date is not specified, those limits are unbounded. (i.e.
up to present and/or to the beginnig of time)
then category filtering for relative dating could be something like (example for
Just a quick thought that without specific support at the database level, this
could be hard to implement efficiently, since the database only stores links of
the form "article X is in category Y". This feature would have to first create a
list of all categories in the scope of the date-range and then create a query of
the form "where the article is in category [a] OR the article is in category [b]
OR the article is in category [c] ... etc" For a large date range, you'd need an
awfully long database query - and I can't think of any way of making that
efficient without redesigning the database structure.
I generally concur with Rowan. I don't think this is possible while the schemas
is as-is. Additionally, non-English Wikinewses have different date formats that
they're using, complicating this type of a feature.
I do agree that the feature is a good idea.
right. you'd have to add a column to a table, or alternatively a table by which
to do an inner join to an existing table. then there wouldn't be "long
queries", just "between" statements. regarding different date formats: that's
easily enough done.
relative dating, however, is a separate issue and doesn't seem to have this
problem of requiring a change in the table strcuture.
Assign open DynamicPageList issues to new component maintainer.