Extension:Date Formatter
From MediaWiki.org
|
Date Formatter Release status: stable |
|
|---|---|
| Implementation | Tag |
| Description | Refactors unlinked dates according to the user's preference |
| Author(s) | Rob Church (RobchurchTalk) |
| Last version | 1.0 |
| MediaWiki | 1.7 |
| License | 2 clause BSD |
| Download | Download snapshot Subversion [Help] |
|
Check usage (experimental) |
|
|
|
The author of this extension is no longer maintaining it! Meaning any reports for additional features and/or bugfixes will more than likely be ignored. Volunteers are encouraged to take on the task of developing and maintaining it. As a courtesy, you may want to contact the author. You should also remove this template and list yourself as maintaining the extension in the page's {{extensions}} infobox. |
Date Formatter supports refactoring of free dates according to the user's preference. This works on unlinked dates, as opposed to the built-in refactoring module, and utilises a separate class.
[edit] Installation
As is standard with other MediaWiki extensions, you may install this extension by extracting the extension in the extensions folder and adding
- require_once("$IP/extensions/FormatDates/FormatDates.php" );
[edit] Usage
To make use of the extension, when editing a page, include <date></date> tags containing free dates into the text. For instance:
On <date>January 1, 2007</date>, which is the same day of the year as <date>1 January 2006</date> was, at least, in respect of being <date>January 1</date>...
When the page is rendered, these dates will be detected and refactored according to the date preference of the viewing user. If no preference is specified ("no preference"), no refactoring will take place.