User:Nx/Scripts/Subpages.js

importScript('User:Nx/Scripts/ModifySidebar.js');

function AddSubpagesToolboxLink { ModifySidebar("add", "toolbox", "Subpages", "http://rationalwiki.com/wiki/Special:Prefixindex/"+wgPageName+"/"); } addOnloadHook(AddSubpagesToolboxLink);