User:Twinkle1990/common.js: Difference between revisions
Appearance
Content deleted Content added
Twinkle1990 (talk | contribs) No edit summary |
Twinkle1990 (talk | contribs) importScript('User:Headbomb/citations.js'); // Backlink: User:Headbomb/citations.js |
||
Line 1: | Line 1: | ||
importScript('User:Writ Keeper/Scripts/peerReviewCloser.js'); |
importScript('User:Writ Keeper/Scripts/peerReviewCloser.js'); |
||
importScript('User:Headbomb/ |
importScript('User:Headbomb/citations.js'); // Backlink: [[User:Headbomb/citations.js]] |
||
importScript('User:SD0001/GAN-helper.js'); // [[User:SD0001/GAN-helper.js]] |
importScript('User:SD0001/GAN-helper.js'); // [[User:SD0001/GAN-helper.js]] |
||
window.GAN_helper_log_page = 'User:SD0001/My list of GANs'; |
window.GAN_helper_log_page = 'User:SD0001/My list of GANs'; |
Revision as of 05:13, 4 March 2023
importScript('User:Writ Keeper/Scripts/peerReviewCloser.js');
importScript('User:Headbomb/citations.js'); // Backlink: [[User:Headbomb/citations.js]]
importScript('User:SD0001/GAN-helper.js'); // [[User:SD0001/GAN-helper.js]]
window.GAN_helper_log_page = 'User:SD0001/My list of GANs';
window.GAN_helper_log_entery = '# [[$PAGE]]';
// Twinkle has moved!
// - see [[WP:TW]] for more information
// - for the code, see [[MediaWiki:Gadget-Twinkle.js]]
// This will automatically enable the gadget in the user's preferences
mw.loader.using(['user.options', 'mediawiki.api']).then(function() {
if (!mw.user.options.get('gadget-Twinkle')) {
new mw.Api().saveOption('gadget-Twinkle', 1);
}
});
importScript('User:Writ Keeper/Scripts/peerReviewCloser.js');
importScript('User:SD0001/GAN-helper.js'); // [[User:SD0001/GAN-helper.js]]
window.GAN_helper_log_page = 'User:SD0001/My list of GANs';
window.GAN_helper_log_entery = '# [[$PAGE]]';
mw.loader.load( '/w/index.php?title=User:Evad37/rater.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Evad37/rater.js]];
mw.loader.load( "https://meta.wikimedia.org/w/index.php?title=User:Zhaofeng_Li/Reflinks.js&action=raw&ctype=text/javascript" );
importScript('User:SD0001/StubSorter.js'); // [[User:SD0001/StubSorter.js]]
//<source lang="javascript">
window.DisamAssist = jQuery.extend( true, {
cfg: {
/*
* Categories where disambiguation pages are added (usually by a template like {{Disambiguation}}
*/
disamCategories: ['All disambiguation pages'],
/*
* "Canonical names" of the templates that may appear after ambiguous links
* and which should be removed when fixing those links
*/
disamLinkTemplates: [
'Disambiguation needed',
'Ambiguous link',
'Amblink',
'Dab needed',
'Disamb-link',
'Disambig needed',
'Disambiguate',
'Dn',
'Needdab'
],
/*
* "Canonical names" of the templates that designate intentional links to
* disambiguation pages
*/
disamLinkIgnoreTemplates: [
'R from ambiguous page',
'R to disambiguation page',
'R from incomplete disambiguation'
],
/*
* Format string for "Foo (disambiguation)"-style pages
*/
disamFormat: '$1 (disambiguation)',
/*
* Regular expression matching the titles of disambiguation pages (when they are different from
* the titles of the primary topics)
*/
disamRegExp: '^(.*) \\(disambiguation\\)$',
/*
* Text that will be inserted after the link if the user requests help. If the value is null,
* the option to request help won't be offered
*/
disamNeededText: '{{dn|date={{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}}}',
/*
* Content of the "Foo (disambiguation)" pages that will be created automatically when using
* DisamAssist from a "Foo" page
*/
redirectToDisam: '#REDIRECT [[$1]] {{R to disambiguation page}}',
/*
* Whether intentional links to disambiguation pages can be explicitly marked by adding " (disambiguation)"
*/
intentionalLinkOption: true,
/*
* Namespaces that will be searched for incoming links to the disambiguation page (pages in other
* namespaces will be ignored)
*/
targetNamespaces: [0, 6, 10, 14, 100, 108],
/*
* Number of backlinks that will be downloaded at once
* When using blredirect, the maximum limit is supposedly halved
* (see http://www.mediawiki.org/wiki/API:Backlinks)
*/
backlinkLimit: 250,
/*
* Number of titles we can query for at once
*/
queryTitleLimit: 50,
/*
* Number of characters before and after the incoming link that will be displayed
*/
radius: 300,
/*
* Height of the context box, in lines
*/
numContextLines: 4,
/*
* Number of pages that will be stored before saving, so that changes to them can be
* undone if need be
*/
historySize: 2,
/*
* Minimum time in seconds since the last change was saved before a new edit can be made. A
* negative value or 0 disables the cooldown. Users with the "bot" right won't be affected by
* the cooldown
*/
editCooldown: 5,
/*
* Specify how the watchlist is affected by DisamAssist edits. Possible values: "watch", "unwatch",
* "preferences", "nochange"
*/
watch: 'nochange'
},
txt: {
start: 'Disambiguate links',
startMain: 'Disambiguate links to primary topic',
startSame: 'Disambiguate links to DAB',
close: 'Close',
undo: 'Undo',
omit: 'Skip',
refresh: 'Refresh',
titleAsText: 'Different target',
disamNeeded: 'Tag {{dn}}',
intentionalLink: 'Intentional link to DAB',
titleAsTextPrompt: 'Specify the new target:',
removeLink: 'Unlink',
optionMarker: ' [Link here]',
targetOptionMarker: ' [Current target]',
redirectOptionMarker: ' [Current target (redirected)]',
pageTitleLine: 'In <a href="$1">$2</a>:',
noMoreLinks: 'No more links to disambiguate.',
pendingEditCounter: 'Saving: $1; in history: $2',
pendingEditBox: 'DisamAssist is currently saving changes ($1).',
pendingEditBoxTimeEstimation: '$1; approximate time remaining: $2',
pendingEditBoxLimited: 'Please don\'t close this tab until all pending changes have been saved. You may keep '
+ 'editing Wikipedia in a different tab, but be advised that using multiple instances of DisamAssist at '
+ 'the same time is discouraged, as a high number of edits over a short time period may be disruptive.',
error: 'Error: $1',
fetchRedirectsError: 'Unable to fetch redirects: "$1".',
getBacklinksError: 'Unable to download backlinks: "$1".',
fetchRightsError: 'Unable to fetch user rights: "$1",',
loadPageError: 'Unable to load $1: "$2".',
savePageError: 'Unable to save changes to $1: "$2".',
dismissError: 'Dismiss',
pending: 'There are unsaved changes in DisamAssist. To save them, please press Close',
editInProgress: 'DisamAssist is currently performing changes. If you close the tab now, they may be lost.',
ellipsis: '...',
notifyCharacter: '✔',
summary: 'Disambiguating links to [[$1]] ($2) using [[User:Qwertyytrewqqwerty/DisamAssist|DisamAssist]].',
summaryChanged: 'link changed to [[$1]]',
summaryOmitted: 'link skipped',
summaryRemoved: 'link removed',
summaryIntentional: 'intentional link to DAB',
summaryHelpNeeded: 'help needed',
summarySeparator: '; ',
redirectSummary: 'Creating redirect to [[$1]] using [[User:Qwertyytrewqqwerty/DisamAssist|DisamAssist]].'
}
}, window.DisamAssist || {} );
//</source>
mw.loader.load( '//es.wikipedia.org/w/index.php?title=Usuario:Qwertyytrewqqwerty/DisamAssist-core.js&action=raw&ctype=text/javascript' );
mw.loader.load( '//es.wikipedia.org/w/index.php?title=Usuario:Qwertyytrewqqwerty/DisamAssist.css&action=raw&ctype=text/css', 'text/css' );
mw.loader.load( '/w/index.php?title=User:Evad37/MoveToDraft.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Evad37/MoveToDraft.js]]
importScript('User:SD0001/RFUD-helper.js'); // [[User:SD0001/RFUD-helper.js]]
mw.loader.load('/w/index.php?title=User:EnterpriseyBot/delsort.js&action=raw&ctype=text/javascript'); // Backlink: [[User:EnterpriseyBot/delsort.js]]