Content deleted Content added
m Maintenance: Replacing importScriptURI with mw.loader.load (phab:T95964) |
m Maintenance: Replacing addPortletLink() with mw.util.addPortletLink() (mw:ResourceLoader/Migration_guide_(users)#addPortletLink) |
||
(One intermediate revision by the same user not shown) | |||
Line 26:
// NOTE! My code here should be updated with new function names et.c.,
// see message at [[User talk:Davidgothberg/vector.js]].
// Add an "Extended search" link to the "navigation" menu".
mw.util.addPortletLink( 'p-navigation', mw.config.get('wgArticlePath').replace("$1", "Special:Search"), 'Extended search', 'pt-search', 'More search options' );
// List subpages of the current page.
mw.util.addPortletLink( "p-tb", mw.config.get('wgScript') + "?title=Special:PrefixIndex/" + mw.config.get('wgPageName') + "/",
"Subpages", "pt-subpages", "Subpages" );
// List template transclusion count of the current template page.
if ( mw.config.get('wgNamespaceNumber') == 10 || mw.config.get('wgNamespaceNumber') == 11 ) {
mw.util.addPortletLink( "p-tb",
"http://toolserver.org/~jarry/templatecount/index.php?lang=en&name="
+ mw.config.get('wgTitle') + "#bottom",
Line 108:
}
// document.getElementById('p-cactions').className = 'vectorTabs';
var elems = document.getElementById('p-cactions').getElementsByTagName('li');
|