Χρήστης:Geraki/DisamAssist.js

Από τη Βικιπαίδεια, την ελεύθερη εγκυκλοπαίδεια

Μετά την αποθήκευση πρέπει να καθαρίσετε την κρυφή μνήμη (cache) του browser σας για να δείτε τις αλλαγές: Σε Chrome, Firefox, Safari, Internet Explorer και Edge: Κρατήστε πατημένο το Shift και κάντε κλικ στο κουμπί Ανανέωση στην μπάρα εργαλείων.

//<source lang="javascript">

window.DisamAssist = jQuery.extend( true, {
	cfg: {
		/*
		 * Categories where disambiguation pages are added (usually by a template like {{Disambiguation}}
		 */
		disamCategories: ['Αποσαφήνιση'],
		
		/*
		 * "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 (αποσαφήνιση)',
		
		/*
		 * Regular expression matching the titles of disambiguation pages (when they are different from
		 * the titles of the primary topics)
		 */
		disamRegExp: '^(.*) \\(αποσαφήνιση\\)$',
		
		/*
		 * 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: '{{αα|date={{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}}}',
		
		/*
		 * Content of the "Foo (disambiguation)" pages that will be created automatically when using
		 * DisamAssist from a "Foo" page
		 */
		redirectToDisam: '#ΑΝΑΚΑΤΕΥΘΥΝΣΗ [[$1]] {{Α σε σελίδα αποσαφήνισης}}',
		
		/*
		 * 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, 118],
		
		/*
		 * 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: 20,
		
		/*
		 * Specify how the watchlist is affected by DisamAssist edits. Possible values: "watch", "unwatch",
		 * "preferences", "nochange"
		 */
		watch: 'nochange'
	},

	txt: {
		start: 'Αποσαφήνιση συνδέσμων',
		startMain: 'Αποσαφήνιση συνδέσμων προς κύριο θέμα',
		startSame: 'Αποσαφήνιση συνδέσμων προς ΣΑ',
		close: 'Κλείσιμο',
		undo: 'Αναίρεση',
		omit: 'Παράκαμψη',
		refresh: 'Ανανέωση',
		titleAsText: 'Άλλος στόχος',
		disamNeeded: 'Ετικέτα {{αα}}',
		intentionalLink: 'Ηθελημένος σύνδεσμος προς ΣΑ',
		titleAsTextPrompt: 'Όρισε νέο στόχο:',
		removeLink: 'Αποσύνδεση',
		optionMarker: ' [Σύνδεσμος εδώ]',
		targetOptionMarker: ' [Τρέχον στόχος]',
		redirectOptionMarker: ' [Τρέχον στόχος (ανακατευθυνόμενος)]',
		pageTitleLine: 'Σε <a href="$1">$2</a>:',
		noMoreLinks: 'Δεν υπάρχουν άλλοι σύνδεσμοι για αποσαφήνιση.',
		pendingEditCounter: 'Αποθήκευση: $1; σε ιστορικό: $2',
		pendingEditBox: 'Το DisamAssist αποθηκεύει τις αλλαγές ($1).',
		pendingEditBoxTimeEstimation: '$1; χρόνος που περίπου απομένει: $2',
		pendingEditBoxLimited: 'Παρακαολούμε μην κλείσετε την καρτέλα έως να αποθηκευτούν όλες οι αλλαγές. κλπ κλπ '
			+ '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: 'Σφάλμα: $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: 'Απόρριψη',
		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: 'Αποσαφήνιση συνδέσμων προς [[$1]] ($2)',
		summaryChanged: 'σύνδεσμος άλλαξε σε [[$1]]',
		summaryOmitted: 'σύνδεσμος παρακάμφθηκε',
		summaryRemoved: 'σύνδεσμος αφαιρέθηκε',
		summaryIntentional: 'ηθελημένος σύνδεσμος προς Σελίδα Αποσαφήνισης',
		summaryHelpNeeded: 'απαιτείται βοήθεια',
		summarySeparator: '; ',
		redirectSummary: 'Δημιουργία ανακατεύθυνσης προς [[$1]]'
	}
}, 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' );

//</source>