Użytkownik:Ostrzyciel nożyczek/common.js: Różnice pomiędzy wersjami

Z Nonsensopedii, polskiej encyklopedii humoru
M
Znacznik: edytor źródłowy
M
Linia 1: Linia 1:
//<nowiki>
importArticles({
/* Cat-a-lot - changes category of multiple files */
type: 'script',
mw.loader.using(['jquery.ui.resizable', 'mediawiki.util'], function(){
articles: [
mw.loader.load('//commons.wikimedia.org/w/load.php?modules=ext.gadget.Cat-a-lot');
'u:dev:ListFiles/code.js',
]
});
});
////////// Cat-a-lot user preferences //////////

window.catALotPrefs = {"watchlist":"preferences","minor":true,"editpages":true,"docleanup":false,"subcatcount":10};
$( function () {
////////////////////////////////////catALotEnd//
if( skin === 'monobook' ) {
//</nowiki>
addPortletLink( 'p-tb', wgServer + wgScriptPath + '/index.php?title=Nonsensopedia:ListFiles', 'List Files');
} else {
$( '#my-tools-menu' ).prepend( '<li class="custom"><a href="' + wgServer + wgScriptPath + '/index.php?title=Nonsensopedia:ListFiles" rel="nofollow">List Files</a></li>' );
}
} );

Wersja z 10:39, 23 lip 2019

//<nowiki>
/* Cat-a-lot - changes category of multiple files */
mw.loader.using(['jquery.ui.resizable', 'mediawiki.util'], function(){
	mw.loader.load('//commons.wikimedia.org/w/load.php?modules=ext.gadget.Cat-a-lot');
});
////////// Cat-a-lot user preferences //////////
window.catALotPrefs = {"watchlist":"preferences","minor":true,"editpages":true,"docleanup":false,"subcatcount":10};
////////////////////////////////////catALotEnd//
//</nowiki>