Can someone create and add a gadget to Wikidata so that behind every linked Q on items also the Q number itself is shown, as well as behind the Property link the P number, and also for Lexemes.
Description
Description
Related Objects
Related Objects
Event Timeline
Comment Actions
https://www.wikidata.org/wiki/User:Magnus_Manske/wikidata_useful.js partly did this (for items), but it is a heavy-weight gadget.
Comment Actions
For a very basic version, you could add the following to your common.js:
mw.hook('wikibase.entityPage.entityView.rendered').add(function () { $(".wikibase-entityview-main a").each(function(){ var a=this.href; var m=a.match(/[\/:]([PQL][0-9]+(#[SF][0-9]+)?)$/); if (m && m[1]) { $(this).after(" <small>("+m[1]+")</small>"); } }); });
It'll only work on page load, I can't make it work for new or edited statements until T250070 is fixed.