Skip to content

Wikibase extension that adds support for the Extended Date/Time Format (EDTF) via a new data type

License

Notifications You must be signed in to change notification settings

GreenReaper/WikibaseEdtf

 
 

Repository files navigation

Wikibase EDTF

GitHub Workflow Status Latest Stable Version Download count License

MediaWiki extension that adds support for the Extended Date/Time Format (EDTF) Specification to Wikibase via a new data type.

Wikibase EDTF has been made possible with the financial support of the Luxembourg Ministry of Culture. It an open source project developed and maintained by Professional.Wiki. Contributions are welcome!

Platform requirements

See the release notes for more information on the different versions of this extension.

Installation

First install MediaWiki and Wikibase Repository.

The recommended way to install Wikibase EDTF is using Composer with MediaWiki's built-in support for Composer.

On the commandline, go to your wikis root directory. Then run these two commands:

COMPOSER=composer.local.json composer require --no-update professional-wiki/wikibase-edtf:*
composer update professional-wiki/wikibase-edtf --no-dev -o

Enabling the extension

Then enable the extension by adding the following to the bottom of your wikis "LocalSettings.php" file:

wfLoadExtension( 'WikibaseEdtf' );

You can verify the extension was enabled successfully by opening your wiki's "Special:Version" page in your browser.

Running the tests

  • PHP tests: php tests/phpunit/phpunit.php -c extensions/WikibaseEdtf/

Release notes

Version 1.1.0 - 2021-04-04

  • Added plain EDTF value to RDF output

Version 1.0.0 - 2021-03-19

  • Initial release for MediaWiki/Wikibase 1.35 (Release announcement, Demo video)
  • EDTF datatype with
    • Support for EDTF levels 0, 1 and 2
    • Input validation
    • Display of humanized and internationalized version in the reading UI
    • RDF export (using standard Wikibase dates) for most values

About

Wikibase extension that adds support for the Extended Date/Time Format (EDTF) via a new data type

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 94.1%
  • Shell 4.1%
  • Other 1.8%