User:EdwardUK/vector.js

importScript("User:GregU/randomlink.js");

addOnloadHook( function { // WhatLinksHere is probably a better way to find all articles in a WikiProject  yklist = "Special:WhatLinksHere/Template:WikiProject_Yorkshire?namespace=1&hidelinks=1&limit=250";

mw.util.addPortletLink('p-navigation', 'javascript:randomlink_paged=1;randomlink_maxfrom=24000000;randomLink(yklist)',                'Yorkshire article', 'n-randombb', 'Random article in WikiProject Yorkshire'); });