Utente:Jarould/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.
//<source lang="javascript">
window.DisamAssist = jQuery.extend( true, {
cfg: {
/*
* Categories where disambiguation pages are added (usually by a template like {{Disambiguation}}
*/
disamCategories: ['Wikipedia:Desambiguación'],
/*
* "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 (desambiguación)',
/*
* Regular expression matching the titles of disambiguation pages (when they are different from
* the titles of the primary topics)
*/
disamRegExp: '^(.*) \\(desambiguación\\)$',
/*
* 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: '#REDIRECCIÓN [[$1]]',
/*
* 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, 104],
/*
* 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: 200,
/*
* 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: 'Desambiguar enlaces',
startMain: 'Desambiguar enlaces al tema principal',
startSame: 'Desambiguar enlaces a la PD',
close: 'terminar',
undo: 'deshacer',
omit: 'omitir',
refresh: 'refrescar',
titleAsText: 'otro destino',
titleAsTextPrompt: 'Introduzca el nuevo destino del enlace:',
disamNeeded: 'Necesaria desambiguación',
intentionalLink: 'Enlazar a desambiguación',
removeLink: 'eliminar enlace',
optionMarker: ' [enlazar aquí]',
targetOptionMarker: ' [destino actual]',
redirectOptionMarker: ' [destino actual (por redirección)]',
pageTitleLine: 'En <a href="$1">$2</a>:',
noMoreLinks: 'No quedan enlaces por desambiguar.',
pendingEditCounter: 'Guardando: $1; en historial: $2',
pendingEditBox: 'Se están guardando las ediciones pendientes ($1).',
pendingEditBoxTimeEstimation: '$1; tiempo restante aproximado: $2',
pendingEditBoxLimited: 'Por favor, mantenga esta pestaña del navegador abierta hasta que los cambios se hayan '
+ 'guardado por completo. Hasta entonces puede continuar editando en otra pestaña si quiere, pero, para '
+ 'evitar saturar la página de cambios recientes, se le recomienda que no utilice esta ni otras '
+ 'herramientas semiautomáticas que permitan realizar rápidamente un alto número de ediciones.',
error: 'Error: $1',
fetchRedirectsError: 'No se pudieron descargar las redirecciones: "$1".',
getBacklinksError: 'No se pudieron descargar los enlaces entrantes: "$1".',
fetchRightsError: 'No se pudieron descargar los roles de usuario: "$1",',
loadPageError: 'No se pudo cargar la página $1: "$2".',
savePageError: 'No se pudieron guardar los cambios en la página $1: "$2".',
dismissError: 'ocultar',
pending: 'Algunos cambios realizados no se han guardado. Debe pulsar «terminar».',
editInProgress: 'Se están guardando los cambios. Si abandona ahora la página, podrían perderse.',
ellipsis: '...',
notifyCharacter: '✔',
summary: 'Modificando enlaces a [[$1]] ($2).',
summaryChanged: 'enlace cambiado a [[$1]]',
summaryOmitted: 'enlace omitido',
summaryRemoved: 'enlace eliminado',
summaryIntentional: 'enlace intencionado a desambiguación',
summaryHelpNeeded: 'ayuda necesaria',
summarySeparator: '; ',
redirectSummary: 'Creando redirección a [[$1]].'
}
}, window.DisamAssist || {} );
mw.loader.load( '//it.wikipedia.org/w/index.php?title=Utente:Jarould/DisamAssist-core.js&action=raw&ctype=text/javascript' );
mw.loader.load( '//it.wikipedia.org/w/index.php?title=Utente:Jarould/DisamAssist.css&action=raw&ctype=text/css', 'text/css' );
//</source>