صارف:Yethrosh/smartLinking.js

آزاد دائرۃ المعارف، ویکیپیڈیا سے

تفصیل کے لیے کھولیں کے بٹن پر کلک کریں یاددہانی: محفوظ کرنے کے بعد تازہ ترین تبدیلیوں کو دیکھنے کے لیے آپ کو اپنے براؤزر کا کیش صاف کرنا ہوگا۔

  • فائرفاکس/ سفاری: جب Reload پر کلک کریں تو Shift دبا کر رکھیں، یا Ctrl-F5 یا Ctrl-R دبائیں (Mac پر R- )
  • گوگل کروم: Ctrl-Shift-R دبائیں (Mac پر Shift-R-⌘)
  • انٹرنیٹ ایکسپلورر: جب Refresh پر کلک کریں تو Ctrl یا Ctrl-F5 دبائیں
  • اوپیرا: Tools → Preferences میں جائیں اور کیش صاف کریں

/* With this script template, you can configure Smart Linking for use
 * in a Wikipedia other than the English one.
 * First copy the code to a different page,
 * it should be a protected page such as a user sub-page ending in .js or a MediaWiki: page,
 * then set appropriately the properties of the locale object below.
 * You can also translate the messages in the msgs object.
 * In order to reduce the size of this file, delete the excessive comments before using.
 * Smart Linking home: http://en.wikipedia.org/wiki/User:V111P/js/Smart_Linking
 */
(function () {
	"use strict";

	if ( $.inArray( mw.config.get( 'wgAction' ), ['edit', 'submit'] ) == -1 )
		return;

	var locale = {
		// If you have a local help page, type its address here
		helpUrl: '//ur.wikipedia.org/wiki/User:محمد_شعیب/نیم_خودکار_ربط_سازی',

		// "Other meaning" and "main article" templates. The English Wikipedia has many of these, but most other Wikipedias
		// probably have much fewer.
		// You can use regular expressions in the strings. This may cause you problems if the names of your templates
		// contain characters such as ? * . + ( ) | Then you need to escape these characters with two slashes \\ before them.
		// See the option allPossibleOtherMeaningTemplates in the Customizing section on the help page. It can help you
		// to find all templates that need to be included here.
		otherMeaningTemplateNames: ['about', 'hatnote', 'rellink', 'other uses(\\d| of)?',
			'(two|three) other uses', 'see', 'see also\\d?', 'also', 'main( list)?', 'details\\d',
			'for\\d?', 'redirect(-synonym|text|-distinguish)?\\d?\\d?', 'further\\d?',
			'consider disambiguation', 'other people\\d?', 'other places\\d?', 'other hurricanes',
			'other ships', 'distinguish\\d?', 'elect',
			'year dab', 'more information'],

		// Disambiguation template names - these are the templates used on disambiguation pages to mark them as such.
		// This property is commented out because it is not needed on
		// wikis which have added __DISAMBIG__ to their disambiguation templates.
		// Check your local Special:DisambiguationPages page to see whether at least some of them have it already.
		// Check the categoy of your-language version of en:Template:Disambiguation to find all such templates.'
		// As with otherMeaningTemplateNames, you can use regexes and you may need to escape some characters.
		// Again, the English Wikipedia has a lot of these:
		//disambigTemplateNames: ['dab', 'disamb(ig)?', '([^|} ]+ )?disambiguation', 'Geodis', 'Hndis',
		//	'Letter-NumberCombDisambig', 'Numberdis', 'Set index article', 'Mountainindex',
		//	'Roadindex', 'Shipindex', 'Sportindex', 'Surname', 'Given name'],

		// Disambiguation page suffix. It is used at the end of the names of some, but not all, disambiguation pages
		// If your Wikipedia doesn't use a suffix, but something else (a prefix??),
		// or uses more than one suffixes, then let me now.
		// Incude the space before the suffix if there is one.
		// For example in [[America (disambiguation)]], the suffix is a space followed by (disambiguation).
		disambigPgSuffix: ' (ضد ابہام)'
	};

	var msgs = { // Translate these messages (optional). Remove the first // on a line to "activate" it
		scriptName: 'نیم خودکار ربط سازی',
		noValidLink: 'کوئی درست ربط منتخب یا مرکوز نہیں ہوا۔',
		error: 'خطا',
		help: 'معاونت',
		openInNewWin: 'نئی ونڈو میں کھولیں',
		editInNewWin: 'نئی ونڈو میں ترمیم کریں',
		editIntro: 'تعارف میں ترمیم کریں', // link to open section 0 of the article for editing
		history: 'تاریخچہ', // link to the article history
		talk: 'تبادلۂ خیال', // link to the talk page of the article
		watch: 'زیر نظر کریں', // link to add the page to user's Watchlist
		unwatch: 'زیر نظر منسوخ', // link to remove the page from user's Watchlist
		disambigPage: 'ضد ابہام صفحہ',
		nonExistingPage: 'غیر موجود صفحہ',
		errorLoadingScript: 'درکار سکرپٹ {required script} لوڈ میں ہونے میں نقص واقع ہوا۔', // do NOT change/translate: {required script}
		backTo: 'واپس [[%1]] کی جانب', // Back to [[<the previous page's title>]]. Do NOT change: [[%1]]
		relatedArticles: 'متعلقہ مضامین',
		tableOfContents: 'فہرست عناوین',
		tocAndOtherAndMainArticles: 'ToC and other meanings and main articles:', // ToC means Table of Contents
		backToTop: 'واپس اوپر جائیں',
		focusTextarea: 'خانہ ترمیم میں مرکوز کریں', // link and also title attribute of the OK button
		close: 'منسوخ', // link that, when clicked, closes/hides the display
		//toggleSectionLinks: 'Toggle displaying the section links',
		//aSpecialNSLink: 'A link to a page in the Special namespace.',
		//aLinkToSecInCurrEdPg: 'A link to a section in the page you are currently editing.',
		errorOnLoading: 'Could not load page. Check your Internet connection.',
		//unsupportedBrowser: 'غیر معاون براؤزر'
	};

	$.extend(true, window.smartLinkingConfig = window.smartLinkingConfig || {}, {
		// you could add properties described in the Customizing section on the help page here
		locale: locale,
		msgs: msgs
	});

	$.ajax({
		url: '//en.wikipedia.org/w/index.php?title=User:V111P/js/smartLinkingLoader.js'
			+ '&action=raw&ctype=text/javascript',
		dataType: 'script',
		cache: true
	});
})();