Extension:Date Formatter

Category:Unmaintained extensions#Date%20Formatter Category:Extensions without an imageCategory:Extensions without a compatibility policyCategory:BSD licensed extensions
MediaWiki extensions manual
Date Formatter
Release status: unmaintainedCategory:Unmaintained extensions
Implementation Tag Category:Tag extensions
Description Refactors unlinked dates according to the user's preference
Author(s)
Latest version 1.0
MediaWiki 1.7Category:Extensions with manual MediaWiki version
License BSD 2-clause "Simplified" License
Download Category:Extensions in Wikimedia version control
date
Translate the Date Formatter extension if it is available at translatewiki.net
Category:All extensionsCategory:Extensions not in ExtensionJson

Summary

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.

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" );

to LocalSettings.php.

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.

Development

It is intended that the extension's development will continue to be hosted here. Until the source code can be migrated from MediaWiki's Subversion server to its Git server, you may follow and contribute to the extension's development at GitHub.

Category:All extensions Category:BSD licensed extensions Category:Extensions in Wikimedia version control Category:Extensions not in ExtensionJson Category:Extensions with manual MediaWiki version Category:Extensions without a compatibility policy Category:Extensions without an image Category:Tag extensions Category:Unmaintained extensions