Utente:GryffindorD/DisamAssist.js
Questa pagina definisce alcuni parametri di aspetto e comportamento generale di tutte le pagine. Per personalizzarli vedi Aiuto:Stile utente.
Nota: dopo aver salvato è necessario pulire la cache del proprio browser per vedere i cambiamenti (per le pagine globali è comunque necessario attendere qualche minuto). Per Mozilla / Firefox / Safari: fare clic su Ricarica tenendo premuto il tasto delle maiuscole, oppure premere Ctrl-F5 o Ctrl-R (Command-R su Mac); per Chrome: premere Ctrl-Shift-R (Command-Shift-R su un Mac); per Konqueror: premere il pulsante Ricarica o il tasto F5; per Opera può essere necessario svuotare completamente la cache dal menù Strumenti → Preferenze; per Internet Explorer: mantenere premuto il tasto Ctrl mentre si preme il pulsante Aggiorna o premere Ctrl-F5.
/**
* da [[w:User:Qwertyytrewqqwerty/DisamAssist.js]]
*/
//
//<syntaxhighlight lang="javascript">
window.DisamAssist = jQuery.extend( true, {
cfg: {
/*
* Categorie in cui vengono aggiunte le pagine di disambiguazione (di solito tramite un template come {{Disambigua}}).
*/
disamCategories: [
'Pagine di disambiguazione',
'Combinazioni di 3 caratteri',
'Combinazioni di 2 caratteri',
],
/*
* "Canonical names" of the templates that may appear after ambiguous links
* and which should be removed when fixing those links
*/
disamLinkTemplates: [
'Disambigua',
'Disambiguazione',
],
/*
* "Canonical names" of the templates that designate intentional links to
* disambiguation pages
*/
disamLinkIgnoreTemplates: [
'Redirect a pagine di disambiguazione',
'R a pagine di disambiguazione',
'Redirect a disambigua',
'Rapd',
'Redirect da titolo ambiguo'
],
/*
* Format string for "Foo (disambiguation)"-style pages
*/
disamFormat: '$1 (disambigua)',
/*
* Regular expression matching the titles of disambiguation pages (when they are different from
* the titles of the primary topics)
*/
disamRegExp: '^(.*) \\(disambigua\\)$',
/*
* Content of the "Foo (disambiguation)" pages that will be created automatically when using
* DisamAssist from a "Foo" page
*/
redirectToDisam: '#REDIRECT [[$1]] {{Redirect a pagine di disambiguazione}}',
/*
* Whether intentional links to disambiguation pages can be explicitly marked by adding " (disambiguation)"
*/
intentionalLinkOption: false,
/*
* Namespaces che saranno ricercati per i link in entrata alla pagina di disambiguazione (pagine in altri
* namespaces verranno ignorate)
*/
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,
/*
* Numero di pagine che verranno memorizzate prima di essere salvate, in modo che le modifiche ad esse apportate possano essere
* annullate se necessario
*/
historySize: 2,
/*
* Tempo minimo in secondi dal salvataggio dell'ultima modifica prima di poter effettuare una nuova modifica. Un cooldown.
* valore negativo o 0 disabilita il cooldown. Gli utenti con il diritto di "bot" non saranno influenzati dal
* cooldown
*/
editCooldown: 60,
/*
* Specify how the watchlist is affected by DisamAssist edits. Possible values: "watch", "unwatch",
* "preferences", "nochange"
*/
watch: 'nochange'
},
txt: {
start: 'Disambigua link',
startMain: 'Disambiguate links to primary topic',
startSame: 'Correggi i collegamenti a disambigua',
close: 'Chiudi',
undo: 'Annulla',
omit: 'Salta',
refresh: 'Ricarica',
titleAsText: 'Destinazione diversa',
disamNeeded: 'Tag {{dn}}',
intentionalLink: 'Intentional link to DAB',
titleAsTextPrompt: 'Specify the new target:',
removeLink: 'Togli',
optionMarker: ' [Punta qui]',
targetOptionMarker: ' [Current target]',
redirectOptionMarker: ' [Current target (redirected)]',
pageTitleLine: 'In <a href="$1">$2</a>:',
noMoreLinks: 'Nessun link da disambiguare.',
pendingEditCounter: 'Salvate: $1; in coda: $2',
pendingEditBox: 'DisamAssist sta salvando le modifiche ($1).',
pendingEditBoxTimeEstimation: '$1; tempo approssimativo mancante: $2',
pendingEditBoxLimited: 'Non chiudere questa scheda finché tutte le modifiche in sospeso non sono state salvate. '
+ 'È possibile continuare a modificare Wikipedia in un/altra scheda, ma è sconsigliato l/uso contemporaneo di più istanze di DisamAssist, '
+ 'in quanto un numero elevato di modifiche in un breve periodo di tempo potrebbe essere dannoso.',
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: 'Ci sono modifiche non salvate in DisamAssist. Per salvarle, premere Chiudi',
editInProgress: 'DisamAssist sta effettuando delle modifiche. Se si chiude ora la scheda, è possibile che vadano perse.',
ellipsis: '...',
notifyCharacter: '✔',
summary: 'Corretto il collegamento [[$1]] con $2 ([[Utente:GryffindorD/DisamAssist|DisamAssist]])',
summaryChanged: '[[$1]]',
summaryOmitted: 'link skipped',
summaryRemoved: 'link removed',
summaryIntentional: 'intentional link to DAB',
summaryHelpNeeded: 'help needed',
summarySeparator: '; ',
redirectSummary: 'Creato redirect a [[$1]] (con [[Utente:GryffindorD/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>