MediaWiki:Gadget-morebits.js: Perbedaan antara revisi

Konten dihapus Konten ditambahkan
Kenrick95 (bicara | kontrib)
Repo at a491314: Remove Morebits.wikipedia (#600); Remove Morebits.bytes (#598); Add untag functionality (#485); convert to use Morebits.wiki.page.undeletePage; Add undeletePage to morebits.wiki.page; Remove Morebits.bytes
Krinkle (bicara | kontrib)
Maintenance: mw:RL/MGU - Updated deprecated module name, Updated deprecated user.tokens key
Baris 20:
* For external installations, Tipsy is available at [http://onehackoranother.com/projects/jquery/tipsy].
* - To create a gadget based on morebits.js, use this syntax in MediaWiki:Gadgets-definition:
* * GadgetName[ResourceLoader|dependencies=mediawiki.user,mediawiki.util,mediawiki.RegExp,jquery.ui.dialog,jquery.tipsy]|morebits.js|morebits.css|GadgetName.js
*
* Most of the stuff here doesn't work on IE < 9. It is your script's responsibility to enforce this.
Baris 1.803:
title: ctx.pageName,
summary: ctx.editSummary,
token: canUseMwUserToken ? mw.user.tokens.get('editTokencsrfToken') : ctx.editToken,
watchlist: ctx.watchlistOption
};
Baris 2.470:
}
 
return !!mw.user.tokens.get('editTokencsrfToken');
};
 
Baris 2.768:
 
if (fnCanUseMwUserToken('delete')) {
token = mw.user.tokens.get('editTokencsrfToken');
pageTitle = ctx.pageName;
} else {
Baris 2.857:
// undeletion.
if (fnCanUseMwUserToken('undelete')) {
token = mw.user.tokens.get('editTokencsrfToken');
pageTitle = ctx.pageName;
} else {
Baris 2.880:
 
// KLUDGE:
token = mw.user.tokens.get('editTokencsrfToken');
pageTitle = ctx.pageName;
}