کاربر:Jeeputer/disamAssist.js
ظاهر
کدهایی که در این صفحه قرار میدهید، ممکن است حاوی محتوای مخربی باشند که حساب کاربری شما را به خطر میاندازند. اگر با استفاده از دستور «importScript» یا الگوی «نصب اسکریپت کاربری» اسکریپتی را از صفحهای دیگر درونریزی میکنید، دقت داشتهباشید که این کار باعث میشود تا بهطور سیال اسکریپتی را بارگیری کنید که امکان تغییر آن توسط دیگران وجود دارد. اگر از امنیت کدهایی که به این صفحه میافزایید مطمئن نیستید، در قهوهخانهٔ فنی درخواست کمک کنید. هرگاه پیشنمایش تغییراتی که در این صفحه اعمال کردهاید را مشاهده کنید، کد اجرا خواهد شد. |
مستندات این اسکریپت کاربری را میتوان در کاربر:Jeeputer/disamAssist قرار داد. بهنظر میرسد که این اسکریپت کاربری دارای یک صفحهٔ همراه .css است که در کاربر:Jeeputer/disamAssist.css قرار دارد. |
// Originally written by [[:en:User:Qwertyytrewqqwerty]] ay [[:en:User:Qwertyytrewqqwerty/DisamAssist.js]]
//<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: [
'نیازمند ابهامزدایی',
'Disambiguation needed'
],
/*
* "Canonical names" of the templates that designate intentional links to
* disambiguation pages
*/
disamLinkIgnoreTemplates: [
'R from ambiguous term',
'R to disambiguation page',
'R from incomplete disambiguation'
],
/*
* 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: '{{نا|تاریخ={{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}}}',
/*
* Content of the "Foo (disambiguation)" pages that will be created automatically when using
* DisamAssist from a "Foo" page
*/
redirectToDisam: '#تغییرمسیر [[$1]] {{R to disambiguation page}}',
/*
* 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],
/*
* 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,
/*
* 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: 5,
/*
* 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: 'ابهامیار در حال ذخیرهٔ تغییرات است ($1).',
pendingEditBoxTimeEstimation: '$1؛ زمان باقیمانده حدودی: $2',
pendingEditBoxLimited: 'لطفاً تا پیش از ذخیرهٔ تغییرات در انتظار، این برگه را نبندید. میتوانید در یک '
+ 'زبانه دیگر به ویرایش در ویکیپدیا ادامه دهید، اما دقت داشتهباشید که استفادهٔ همزمان از ابزار ابهامیار در چند زبانه '
+ 'توصیه نمیشود؛ چرا که انجام تعداد زیادی ویرایش در بازهٔ زمانی کوتاه میتواند اخلالگرانه تلقی شود.',
error: 'خطا: $1',
fetchRedirectsError: 'ناتوان در واکشی تغییرمسیرها: "$1".',
getBacklinksError: 'ناتوان در دریافت پیوندهای ورودی: "$1".',
fetchRightsError: 'ناتوان در واکشی اختیارات کاربر: "$1",',
loadPageError: 'ناتوان در بارگذاری $1: "$2".',
savePageError: 'ناتوان در ذخیرهٔ تغییرات در $1: "$2".',
dismissError: 'رد کردن',
pending: 'تغییرات ذخیرهنشدهای در ابهامیار وجود دارند. برای ذخیرهکردن آنها، لطفاً دکمهٔ بستن را فشار دهید',
editInProgress: 'ابهامیار در حال اعمال تغییرات است. اگر برگه را حالا ببندید، ممکن است آن تغییرات از دست بروند.',
ellipsis: '...',
notifyCharacter: '✔',
summary: 'رفع ابهام پیوندها به [[$1]] ($2) با کمک [[کاربر:Jeeputer/disamAssist.js|ابهامیار]].',
summaryChanged: 'پیوند به [[$1]] تغییر یافت',
summaryOmitted: 'از پیوند چشمپوشی شد',
summaryRemoved: 'پیوند حذف شد',
summaryIntentional: 'پیوند عمدی به صفحهٔ ابهامزدایی',
summaryHelpNeeded: 'نیازمند کمک',
summarySeparator: '؛ ',
redirectSummary: 'ایجاد تغییرمسیر به [[$1]] با کمک [[کاربر:Jeeputer/disamAssist.js|ابهامیار]].'
}
}, window.DisamAssist || {} );
mw.loader.load( '//fa.wikipedia.org/w/index.php?title=:کاربر:Jeeputer/disamAssist-core.js&action=raw&ctype=text/javascript' );
mw.loader.load( '//fa.wikipedia.org/w/index.php?title=کاربر:Jeeputer/disamAssist.css&action=raw&ctype=text/css', 'text/css' );
//</source>