Wikinews talk:DynamicPageList

From Wikinews, the free news source you can write!
Jump to navigation Jump to search

Is it possible to add the date or time in the beginning of each row. I'm thinking of using variables like these:

showyear=false
showmonth=false
showdate=false
showtime=true

It would render a DPL like this:

"false" would be default for all four values. The date and time could use a certain stylesheet class so users can edit their appearence. Any thoughts? Will it be a too hard burden for the servers? Väsk 2 July 2005 14:54 (UTC)

Hmm, one of the other language wikinews (Can't remember which one) uses whacky js to mix arround the dates. Currently I believe (Don't quote me on this) that date is formated based on your settings in special:preferences. Perhaps a new parameter, dateformat=<blah> would be useful (with it being similar to the {{#time:}} parser function. Bawolff 22:38, 30 January 2009 (UTC)[reply]
Filled bugzilla:17264 Bawolff 23:19, 30 January 2009 (UTC)[reply]

Date[edit]

I would add a parameter to show only a concrete news date (i.e. date=2006-10-09 would show the news published in october the 10th. 2006). --Mac 06:34, 11 October 2006 (UTC)[reply]

Just do [on wikinews anyways]
<DynamicPageList>
Category=Published
category=October 10, 2006
</DynamicPageList>

Select articles based on REVISION dates?[edit]

Using dates to select articles seems to be of interest here. I tried to Select articles based on REVISION dates with allrevisionssince= but it didn't seem to do anything. Does anyone know if these types of parameters are available here? Are any working examples available? I would like to update Portal:Current events/Wikipedia so that it selects the current week's articles. Thanks for any tips you may have. RichardF 17:44, 15 January 2008 (UTC)[reply]

I don't believe so (or at least i havn't heard of it before). We use a very; old version of dpl (new one has caching issues or something, I'm not entirely sure). In any case we don't get all the coolness of DPL2. Bawolff 06:35, 16 January 2008 (UTC)[reply]
Okay, when did you say DPL3 was coming out? ;-) RichardF 23:05, 16 January 2008 (UTC)[reply]

Extension Question[edit]

Is it possible to display a random list of articles in a category ? 121.247.217.192 (talk) 17:27, 2 July 2009 (UTC)[reply]

Not with the DPL in use on Wikinews. There is another extension, DPL2 which might do this. It has issues with performance and is not recommended for use on a relatively busy wiki. --Brian McNeil / talk 17:42, 2 July 2009 (UTC)[reply]
Its possible to get a list of random pages using the api - [1] but i don't think thats what you are looking for. Bawolff 22:06, 2 July 2009 (UTC)[reply]

Why it don't works for Wikipedia. it would be good for Portals--89.232.43.219 (talk) 17:27, 24 August 2009 (UTC)[reply]

The extension is not installed on Wikipedia - that's a decision for their community. --Brian McNeil / talk 17:45, 24 August 2009 (UTC)[reply]