copy of wikibase extension