User:Path slopu/scripts/VPpanel.js

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
// This tool provides a link to Village pump in side panel
// By Path slopu, 2019
// Modified by Guywan 

function villagePumpLinks() {
  mw.util.addPortletLink("p-tb", "https://en.wikipedia.org/wiki/Wikipedia:Village_pump_(policy)", "Policy", "tb-Policy","Go to Village pump (Policy)");
  mw.util.addPortletLink("p-tb", "https://en.wikipedia.org/wiki/Wikipedia:Village_pump_(technical)", "Technical", "tb-Technical","Go to Village pump (Technical)");
  mw.util.addPortletLink("p-tb", "https://en.wikipedia.org/wiki/Wikipedia:Village_pump_(proposals)", "Proposals", "tb-Proposals","Go to Village pump (Proposals)");
  mw.util.addPortletLink("p-tb", "https://en.wikipedia.org/wiki/Wikipedia:Village_pump_(idea_lab)", "IdeaLab", "tb-IdeaLab","Go to Village pump (Idea lab)");
  mw.util.addPortletLink("p-tb", "https://en.wikipedia.org/wiki/Wikipedia:Village_pump_(miscellaneous)", "Miscellaneous", "tb-Miscellaneous","Go to Village pump (Miscellaneous)");
}

$(villagePumpLinks);