Gebruiker:Midas02/DisamAssist.js
Uiterlijk
Opmerking: nadat u de wijzigingen hebt gepubliceerd is het wellicht nodig uw browsercache te legen.
- Firefox / Safari: houd Shift ingedrukt terwijl u op Vernieuwen klikt of druk op Ctrl-F5 of Ctrl-R (⌘-Shift-R op een Mac)
- Google Chrome: druk op Ctrl-Shift-R (⌘-Shift-R op een Mac)
- Internet Explorer / Edge: houd Ctrl ingedrukt terwijl u op Vernieuwen klikt of druk op Ctrl-F5
- Opera: druk op Ctrl-F5.
//<syntaxhighlight lang="javascript">
// Originele code van Qwertyytrewqqwerty ([[:en:User:Qwertyytrewqqwerty]])
// Aanpassingen door Midas02 - augustus 2015
window.DisamAssist = jQuery.extend( true, {
cfg: {
/*
* Categories where disambiguation pages are added (usually by a template like {{Disambiguation}}
*/
disamCategories: ['Wikipedia:Doorverwijspagina'],
/*
* "Canonical names" of the templates that may appear after ambiguous links
* and which should be removed when fixing those links
*/
disamLinkTemplates: [],
/*
* "Canonical names" of the templates that designate intentional links to
* disambiguation pages
*/
disamLinkIgnoreTemplates: [],
/*
* Format string for "Foo (disambiguation)"-style pages
*/
disamFormat: '$1 (doorverwijspagina)',
/*
* Regular expression matching the titles of disambiguation pages (when they are different from
* the titles of the primary topics)
*/
disamRegExp: '^(.*) \\(doorverwijspagina\\)$',
/*
* 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: null,
/*
* Content of the "Foo (disambiguation)" pages that will be created automatically when using
* DisamAssist from a "Foo" page
*/
redirectToDisam: null,
/*
* Whether intentional links to disambiguation pages can be explicitly marked by adding " (disambiguation)"
*/
intentionalLinkOption: false,
/*
* 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],
/*
* 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: 12,
/*
* Specify how the watchlist is affected by DisamAssist edits. Possible values: "watch", "unwatch",
* "preferences", "nochange"
*/
watch: 'nochange'
},
txt: {
start: 'Links naar doorverwijspagina repareren',
startMain: 'Repareer links naar hoofdartikel',
startSame: 'Repareer links naar doorverwijspagina',
close: 'Sluiten',
undo: 'Ongedaan maken',
omit: 'Overslaan',
refresh: 'Verversen',
titleAsText: 'Andere link',
disamNeeded: 'Markeren met {{dn}}',
intentionalLink: 'Opzettelijke link naar doorverwijspagina',
titleAsTextPrompt: 'Geef de nieuwe link in:',
removeLink: 'Verwijder link',
optionMarker: ' [Link hier]',
targetOptionMarker: ' [Huidig doelartikel]',
redirectOptionMarker: ' [Huidig doelartikel (via doorverwijzing)]',
pageTitleLine: 'In <a href="$1">$2</a>:',
noMoreLinks: 'Geen links meer ter reparatie.',
pendingEditCounter: 'Opslaan: $1; in geschiedenis: $2',
pendingEditBox: 'DisamAssist is bezig de wijzigingen op te slaan ($1).',
pendingEditBoxTimeEstimation: '$1; geschatte resterende tijd: $2',
pendingEditBoxLimited: 'Gelieve dit tabblad niet te sluiten zolang de wijzingen niet opgeslagen werden. U kan '
+ 'Wikipedia verder bewerken in een ander tabblad, maar het is niet aangeraden tezelfdertijd meerdere instanties '
+ 'van DisamAssist te gebruiken, aangezien een groot aantal wijzingen op korte tijd verstorend kan werken.',
error: 'Fout: $1',
fetchRedirectsError: 'Doorverwijzingen ophalen mislukt: "$1".',
getBacklinksError: 'Backlinks ophalen mislukt: "$1".',
fetchRightsError: 'Ophalen gebruikersrechten mislukt: "$1",',
loadPageError: 'Fout bij het laden van $1: "$2".',
savePageError: 'Fout bij het opslaan van wijzigingen aan $1: "$2".',
dismissError: 'Sluiten',
pending: 'Er zijn nog onopgeslagen wijzingen in DisamAssist. Om deze op te slaan, gelieve op sluiten te drukken',
editInProgress: 'DisamAssist is wijziginen aan het doorvoeren. Indien u het tabblad nu sluit, kunnen die verloren gaan.',
ellipsis: '...',
notifyCharacter: '✔',
summary: 'Link naar doorverwijspagina [[$1]] $2 met [[Gebruiker:Midas02/DisamAssist|DisamAssist]].',
summaryChanged: 'gewijzigd in [[$1]]',
summaryOmitted: 'link overgeslagen',
summaryRemoved: 'link verwijderd',
summaryIntentional: 'opzettelijke link naar doorverwijspagina',
summaryHelpNeeded: 'hulp nodig',
summarySeparator: '; ',
redirectSummary: 'Creatie doorverwijzing naar [[$1]] met [[Gebruiker:Midas02/DisamAssist|DisamAssist]].'
}
}, window.DisamAssist || {} );
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' );
//</syntaxhighlight>