Wikibase
MediaWiki Wikibase extension
|
Variables | |
return [ 'PT:commonsMedia'=>[ 'value-type'=> 'string'], 'PT:geo-shape'=>[ 'value-type'=> 'string'], 'PT:globe-coordinate'=>[ 'value-type'=> 'globecoordinate'], 'PT:monolingualtext'=>[ 'value-type'=> 'monolingualtext'], 'PT:quantity'=>[ 'value-type'=> 'quantity'], 'PT:string'=>[ 'value-type'=> 'string'], 'PT:tabular-data'=>[ 'value-type'=> 'string'], 'PT:entity-schema'=>[ 'value-type'=> 'string'], 'PT:time'=>[ 'value-type'=> 'time'], 'PT:url'=>[ 'value-type'=> 'string'], 'PT:external-id'=>[ 'value-type'=> 'string'], 'PT:wikibase-item'=>[ 'value-type'=> 'wikibase-entityid'], 'PT:wikibase-property'=>[ 'value-type'=> 'wikibase-entityid'],] | |
Definition of data types for use with Wikibase. | |
return['PT:commonsMedia'=>['value-type'=> 'string'], 'PT:geo-shape'=>['value-type'=> 'string'], 'PT:globe-coordinate'=>['value-type'=> 'globecoordinate'], 'PT:monolingualtext'=>['value-type'=> 'monolingualtext'], 'PT:quantity'=>['value-type'=> 'quantity'], 'PT:string'=>['value-type'=> 'string'], 'PT:tabular-data'=>['value-type'=> 'string'], 'PT:entity-schema'=>['value-type'=> 'string'], 'PT:time'=>['value-type'=> 'time'], 'PT:url'=>['value-type'=> 'string'], 'PT:external-id'=>['value-type'=> 'string'], 'PT:wikibase-item'=>['value-type'=> 'wikibase-entityid'], 'PT:wikibase-property'=>['value-type'=> 'wikibase-entityid'],] |
Definition of data types for use with Wikibase.
The array returned by the code below is supposed to be merged into the Repo resp. Client data types. The basic definition contains only the 'value-type' field.