On November 27th, 2022, the 8,000th article was added to the SuccuWiki!

MediaWiki:Gadget-SubPages.js: Difference between revisions

From SuccuWiki - The Wiki of the Succubi
Jump to navigation Jump to search
(Created page with "<source lang=javascript> ** SubPages ** addOnloadHook(function () { var subpagelink = '/wiki/Special:PrefixIndex/' + wgPageName + '/'; addPortletLink('p-tb', subpagelink, ...")
 
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<source lang=javascript>
//<source lang=javascript>
** SubPages **
/** SubPages **/
addOnloadHook(function () {
addOnloadHook(function () {
   var subpagelink = '/wiki/Special:PrefixIndex/' + wgPageName + '/';
   var subpagelink = '/wiki/Special:PrefixIndex/' + wgPageName + '/';
   addPortletLink('p-tb', subpagelink, 'Subpages', 't-subpages', 'Subpages of this page');
   addPortletLink('p-tb', subpagelink, 'Subpages', 't-subpages', 'Subpages of this page');
});
});
<source>
//<source>

Latest revision as of 11:01, 26 December 2012

//<source lang=javascript>
/** SubPages **/
addOnloadHook(function () {
  var subpagelink = '/wiki/Special:PrefixIndex/' + wgPageName + '/';
  addPortletLink('p-tb', subpagelink, 'Subpages', 't-subpages', 'Subpages of this page');
});
//<source>