Jump to content

User:Minesweeper.007/page tools.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Minesweeper.007 (talk | contribs) at 16:24, 23 March 2007 (Created page with ' function pagetools() { if(document.getElementById('t-whatlinkshere')) { addPortletLink('p-cactions', document.getElementById('t-whatlinkshere').firstChild.h...'). 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)
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.
 function pagetools() {
  if(document.getElementById('t-whatlinkshere')) { 
    addPortletLink('p-cactions', document.getElementById('t-whatlinkshere').firstChild.href,'What links here','ca-whatlinkshere');
    if((wgNamespaceNumber==2)||(wgNamespaceNumber==3)) addPortletLink('p-cactions', document.getElementById('t-whatlinkshere').firstChild.href.replace(/Whatlinkshere/,'Prefixindex') + '/','Subpages','ca-subpages');
    }
 }
 addOnloadHook(pagetools);