User:Ilmari Karonen/prefixindex.js

// PREFIX INDEX TOOLBOX LINK:

if (mw.config.get('wgNamespaceNumber') >= 0) { addOnloadHook(function {        mw.util.addPortletLink("p-tb", mw.config.get('wgServer') + mw.config.get('wgArticlePath').replace("$1", "Special:Prefixindex/" + mw.config.get('wgPageName')), "Prefix index", "t-prefixindex", "List of pages beginning with " + mw.config.get('wgPageName'));   }); }