Content deleted Content added
Polygnotus (talk | contribs) ←Created page with 'mw.hook('wikipage.content').add(function() { mw.loader.using(['mediawiki.util'], function() { // Only add the link if it doesn't already exist if (!document.getElementById('t-mycustomtool2')) { //linkid mw.util.addPortletLink( 'p-tb', //Target portlet ID (Tools menu) 'https://tools.wmflabs.org/', //linkurl 'Wikimedia Tools', //linktext...' |
Polygnotus (talk | contribs) No edit summary |
||
Line 1:
//This script shows how to add a link to the Tools menu
mw.hook('wikipage.content').add(function() {
mw.loader.using(['mediawiki.util'], function() {
|