Last modified: 2009-03-10 01:34:26 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 T19785, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 17785 - add class to dynamic dates
add class to dynamic dates
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Andrew Garrett
: patch, patch-need-review
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-03-04 13:38 UTC by John Mark Vandenberg
Modified: 2009-03-10 01:34 UTC (History)
1 user (show)

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


Attachments
Proposed patch (1.72 KB, patch)
2009-03-05 06:14 UTC, Andrew Garrett
Details

Description John Mark Vandenberg 2009-03-04 13:38:54 UTC
Dynamic dates (autoformatted dates) are emitted into the page as standard links.  As they are a distinctly different type of link, it would be helpful if the emitted html identifies them as dynamic dates.

Two method come to mind.  Either add a class to the the anchor tags, or add a span element around the dynamic date.

This would allow custom styles to be applied by either the skin or individual editors, and would permit JavaScript to readily access and manipulate these elements of the content.

bug 8226 could be easily solved in there was a span element around the dynamic date with the date placed into the title attribute in a sortable format like YYYYMMDD.
Comment 1 Andrew Garrett 2009-03-05 06:14:40 UTC
Created attachment 5887 [details]
Proposed patch

Attached patch would implement the requested behaviour.

Whether or not we want to actually implement it is a separate question, which is why I haven't committed this patch yet.
Comment 2 Andrew Garrett 2009-03-10 01:34:26 UTC
r48247

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


Navigation
Links