User:ZI Jony/MobileMoreMenu/wikidata.js

// Only loads on Mainspace // mw.loader.using('mediawiki.util', function { var api = new mw.Api,	namespaceNumber = mw.config.get( 'wgNamespaceNumber' ), contentLanguage = mw.config.get( 'wgContentLanguage' ), wikidataId = mw.config.get('wgWikibaseItemId'); // Namespace module if (namespaceNumber == 0) {	var articleonly = function($) {		var wikidata = '//m.wikidata.org/wiki/' + wikidataId ;		var reasonator = '//tools.wmflabs.org/reasonator/?lang=' + contentLanguage + '&q=' + wikidataId ;		$("#page-secondary-actions").append("Wikidata") ;		$("#page-secondary-actions").append("Reasonator") ;		}	} $(document).ready(articleonly) ; } ); //