MediaWiki:Gadget-morebits.js: Perbedaan antara revisi
Konten dihapus Konten ditambahkan
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 |
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
*
* 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('
watchlist: ctx.watchlistOption
};
Baris 2.470:
}
return !!mw.user.tokens.get('
};
Baris 2.768:
if (fnCanUseMwUserToken('delete')) {
token = mw.user.tokens.get('
pageTitle = ctx.pageName;
} else {
Baris 2.857:
// undeletion.
if (fnCanUseMwUserToken('undelete')) {
token = mw.user.tokens.get('
pageTitle = ctx.pageName;
} else {
Baris 2.880:
// KLUDGE:
token = mw.user.tokens.get('
pageTitle = ctx.pageName;
}
|