User talk:Path slopu/scripts/VPpanel.js

This is an old revision of this page, as edited by Guywan (talk | contribs) at 22:01, 3 June 2019 (Created page with 'Hi, {{ping|Path slopu}} Might I make a suggestion? You can add all the links with a single function, like so: <source lang="JavaScript"> function villagePumpLin...'). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

Latest comment: 6 years ago by Guywan

Hi, @Path slopu: Might I make a suggestion? You can add all the links with a single function, like so:

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

addOnloadHook(villagePumpLinks);

Regards, GUYWAN ( t · c ) 22:01, 3 June 2019 (UTC)Reply