From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Extension:WikibaseWikidataType and the translation is 12% complete.

Other languages:
English • ‎dansk • ‎中文 • ‎日本語
MediaWiki extensions manual
OOjs UI icon advanced.svg
Release status: experimental
Implementation Hook
Beskrivelse Adds new wikidata-item DataType to Wikibase
Forfatter(e) (Zellfazetalk)
Latest version 0.1 (2016-07-03)
MediaWiki 1.26
Database changes Nej
Licens Creative Commons Zero v1.0 Universal
Download https://github.com/zellfaze/wikidata-datatype.git
Translate the WikibaseWikidataType extension if it is available at translatewiki.net
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";

Se også