-
Notifications
You must be signed in to change notification settings - Fork 0
Github mirror of MediaWiki extension FormatDates - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing)
License
wikimedia/mediawiki-extensions-FormatDates
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
DATE FORMATTER EXTENSION
Version 1.0
Copyright © 2006-2007 Rob Church.
All rights reserved.
Please see the LICENSE file for terms of use and redistribution
== Introduction ==
This extension adds a parser hook to MediaWiki which will refactor
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.
== Requirements ==
This extension requires:
* PHP 5.0.x (5.1.x *strongly recommended*) or above
* MediaWiki 1.7.0 or above
== Installation ==
To install the extension, please download or check out all files from
the Subversion repository, and place them in a "FormatDates" directory
within your MediaWiki extensions directory.
You then need to edit your LocalSettings.php file, and add the following
line, somewhere near the bottom:
require_once( "{$IP}/extensions/FormatDates/FormatDates.php" );
Access the Special:Version page on your wiki to confirm the installation.
== 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.About
Github mirror of MediaWiki extension FormatDates - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing)
Resources
License
Code of conduct
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published