User:Danski454/wikidata Qnum.js

$(document).ready(function{	if ($("#t-wikibase").length === 1) {//do we have a wikidata link?		var splitHref = $("#t-wikibase a").attr("href").split("/");//split up the link		var qnum = splitHref[splitHref.length - 1];//get the last item		$("#firstHeading").append(' (' + qnum + ") ");//add to title	} else if (mw.config.get("wgWikibaseItemId")) {		$("#firstHeading").append(' (' + mw.config.get("wgWikibaseItemId") + ") ");//add to title	} });