Extension:WikibaseWikidataType

From MediaWiki.org
Jump to: navigation, search

Other languages:
English • ‎español • ‎日本語 • ‎português • ‎português do Brasil • ‎中文
MediaWiki extensions manualManual:Extensions
Crystal Clear action run.png
WikibaseWikidataType

Release status:Extension status experimental

WikibaseWikidataTypeScreenshot.png
ImplementationTemplate:Extension#type Hook
DescriptionTemplate:Extension#description Adds new wikidata-item DataType to Wikibase
Author(s)Template:Extension#username (Zellfazetalk)
Latest versionTemplate:Extension#version 0.1 (2016-07-03)
MediaWikiTemplate:Extension#mediawiki 1.26
Database changesTemplate:Extension#needs-updatephp No
LicenseTemplate:Extension#license Creative Commons Zero v1.0 Universal
Download https://github.com/zellfaze/wikidata-datatype.git
README.md
Hooks usedTemplate:Extension#hook
WikibaseRepoDataTypes

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.

Installation[edit]

  • 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' );
    
  • YesY 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[edit]