Usuário(a):Jmvgpartner/DisamAssist.js

Origem: Wikipédia, a enciclopédia livre.

Nota: Depois de publicar, poderá ter de contornar a cache do seu navegador para ver as alterações.

  • Firefox / Safari: Pressione Shift enquanto clica Recarregar, ou pressione Ctrl-F5 ou Ctrl-R (⌘-R no Mac)
  • Google Chrome: Pressione Ctrl-Shift-R (⌘-Shift-R no Mac)
  • Internet Explorer / Edge: Pressione Ctrl enquanto clica Recarregar, ou pressione Ctrl-F5
  • Opera: Pressione Ctrl-F5.
//<source lang="javascript">

window.DisamAssist = jQuery.extend( true, {
	cfg: {
		/*
		 * Categories where disambiguation pages are added (usually by a template like {{Disambiguation}}
		 */
		disamCategories: ['Wikipédia:Desambiguação'],
				
		/*
		 * "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 (desambiguação)',
		
		/*
		 * Regular expression matching the titles of disambiguation pages (when they are different from
		 * the titles of the primary topics)
		 */
		disamRegExp: '^(.*) \\(desambiguação\\)$',
			
		/*
		 * 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: '#REDIRECIONAMENTO [[$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: 'DisamAssist está 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 DisamAssist 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 con DisamAssist no se han guardado. Debe pulsar Terminar.',
		editInProgress: 'DisamAssist está guardando los cambios. Si abandona ahora la página, podrían perderse.',
		ellipsis: '...',
		notifyCharacter: '✔',
		summary: 'Desambiguando 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( '//pt.wikipedia.org/w/index.php?title=Usuário(a):Jmvgpartner/DisamAssist-core.js&action=raw&ctype=text/javascript' );
mw.loader.load( '//pt.wikipedia.org/w/index.php?title=Usuário(a):Jmvgpartner/DisamAssist.css&action=raw&ctype=text/css', 'text/css' );

//</source>