Last modified: 2010-01-07 19:44:59 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T19264, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 17264 - Add new parameter tod DPL dateformat=<blah> to format dates
Add new parameter tod DPL dateformat=<blah> to format dates
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
DynamicPageList (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-01-30 23:17 UTC by Bawolff (Brian Wolff)
Modified: 2010-01-07 19:44 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Bawolff (Brian Wolff) 2009-01-30 23:17:21 UTC
The DynamicPageList (aka Intersection) extension used on several wikimedia wikis, has the option to add the date the page was added to the category at the beginning of its entry on the list (addfirstcategorydate=true). The date is formated using the user's preferences. Perhaps it'd be useful to have a parmater dateformat= or userdateformat= (userdateformat is the name of the equivalent feature in DPL2) that takes syntax the same as {{#time:}} which formats the date. If its unspecified, the extension would default to user preferences, like current behavoir. If specified, it would format the date using a format string. For example

<DynamicPageList>
category=published
count=1
addfirstcategorydate=true
dateformat=F
</DynamicPageList> 

Would make:
*January: Brain chemical Serotonin behind locusts’ swarming instinct
instead of
*January 30, 2009: Brain chemical Serotonin behind locusts’ swarming instinct

Note: at this time, this feature isn't really needed all that much, as we [at en wikinews] get along fine without it, but I think it might be a cool thing to have. (at the very least it might be useful to polish wikinews, as they currently use JS to accomplish this)

Note. related to bug 12787
Comment 1 Bawolff (Brian Wolff) 2009-12-29 09:22:27 UTC
Ok, now that i learned php, I made a patch for this. Filed under Bug 21963 as it fixes a bunch of other things as well.
Comment 2 Chad H. 2010-01-07 19:44:59 UTC
Marking this FIXED as of r60800.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links