MediaWiki:Gadget-twinkleunlink.js: Difference between revisions

Jump to navigation Jump to search
Localise
m (1 revision imported)
 
(Localise)
 
Line 10: Line 10:
  ****************************************
  ****************************************
  * Mode of invocation:    Tab ("Unlink")
  * Mode of invocation:    Tab ("Unlink")
  * Active on:              Non-special pages, except Wikipedia:Sandbox
  * Active on:              Non-special pages, except Sarkarverse:Sandbox
  * Config directives in:  TwinkleConfig
  * Config directives in:  TwinkleConfig
  */
  */


Twinkle.unlink = function twinkleunlink() {
Twinkle.unlink = function twinkleunlink() {
if( mw.config.get('wgNamespaceNumber') < 0 || mw.config.get('wgPageName') === 'Wikipedia:Sandbox' ) {
if( mw.config.get('wgNamespaceNumber') < 0 || mw.config.get('wgPageName') === 'Sarkarverse:Sandbox' ) {
return;
return;
}
}
Line 44: Line 44:
Window.setTitle( "Unlink backlinks" + (mw.config.get('wgNamespaceNumber') === 6 ? " and file usages" : "") );
Window.setTitle( "Unlink backlinks" + (mw.config.get('wgNamespaceNumber') === 6 ? " and file usages" : "") );
Window.setScriptName( "Twinkle" );
Window.setScriptName( "Twinkle" );
Window.addFooterLink( "Twinkle help", "WP:TW/DOC#unlink" );
Window.addFooterLink( "Twinkle help", "SV:TW/DOC#unlink" );


var form = new Morebits.quickForm( Twinkle.unlink.callback.evaluate );
var form = new Morebits.quickForm( Twinkle.unlink.callback.evaluate );
Line 174: Line 174:
type: 'div',
type: 'div',
label: "Selected namespaces: " + namespaces.join(', '),
label: "Selected namespaces: " + namespaces.join(', '),
tooltip: "You can change this with your Twinkle preferences, at [[WP:TWPREFS]]"
tooltip: "You can change this with your Twinkle preferences, at [[SV:TWPREFS]]"
});
});
if ($(xmlDoc).find('query-continue').length) {
if ($(xmlDoc).find('query-continue').length) {
Line 220: Line 220:
type: 'div',
type: 'div',
label: "Selected namespaces: " + namespaces.join(', '),
label: "Selected namespaces: " + namespaces.join(', '),
tooltip: "You can change this with your Twinkle preferences, at [[WP:TWPREFS]]"
tooltip: "You can change this with your Twinkle preferences, at [[SV:TWPREFS]]"
});
});
if ($(xmlDoc).find('query-continue').length) {
if ($(xmlDoc).find('query-continue').length) {
14,061

edits

Navigation menu