From MediaWiki.org
Jump to navigation Jump to search
Other languages:
English • ‎Türkçe • ‎中文 • ‎日本語
MediaWiki extensions manual
OOjs UI icon advanced.svg
Release status: unmaintained
Implementation Hook
Description Adds new wikidata-item DataType to Wikibase
Author(s) Zellfazetalk
Latest version 0.1 (2016-07-03)
MediaWiki 1.26
Database changes No
License Creative Commons Zero v1.0 Universal
Check usage and version matrix.

The WikibaseWikidataType extension adds new DataType named wikidata-item to Wikibase which allows Properties to reference Wikidata items.

Currently this extension manages to add a new DataType which can be assigned to a Property, but upon trying to add the new Property to an Item you will receive the following message: Handling of values for "wikidata-item" data type is not yet supported.

I am still working out how to fix this issue and allow you to actually enter data. Documentation on how to add new DataTypes to Wikidata seems pretty sparse from what I can see.


  • Download and place the file(s) in a directory called WikibaseWikidataType in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    wfLoadExtension( 'WikibaseWikidataType' );
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

To users running MediaWiki 1.24 or earlier:

The instructions above describe the new way of installing this extension using wfLoadExtension(). If you need to install this extension on these earlier versions (MediaWiki 1.24 and earlier), instead of wfLoadExtension( 'WikibaseWikidataType' );, you need to use:

require_once "$IP/extensions/WikibaseWikidataType/WikibaseWikidataType.php";

See also