User:Oski/s/ScriptsAsFunctions.js

// User scripts as functions

// Subpages function addSubpagesLink { var mystring = mw.config.get('wgServer')+mw.config.get('wgArticlePath').replace("$1", "Special:PrefixIndex/"+mw.config.values.wgPageName+"/"); //$('#bodyContent').prepend(' DEBUG INFO: '+mystring); // For debug purposes mw.util.addPortletLink ('p-tb', mystring, 'Subpages'); }