14,061
edits
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 | * 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') === ' | 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", " | 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 [[ | 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 [[ | tooltip: "You can change this with your Twinkle preferences, at [[SV:TWPREFS]]" | ||
}); | }); | ||
if ($(xmlDoc).find('query-continue').length) { | if ($(xmlDoc).find('query-continue').length) { |