Manual:Pywikibot/archivebot.py/setup/fa

From mediawiki.org
This page is a translated version of the page Manual:Pywikibot/archivebot.py/setup and the translation is 65% complete.
Outdated translations are marked like this.

'archivebot.py یک اسکریپت برای بایگانی صفحات بحث است. در این سند نحوه تنظیم صفحات بحث در ویکی برای بایگانی خودکار توسط این ربات توضیح داده شده است. جهت توضیحات بیشتر در خصوص مدیریت این ربات لطفا مشاهده کنید $link. This document explains how to set up discussion pages on-wiki for the automatic archiving done by this bot. For a documentation on how to operate the bot, please see Manual:Pywikibot/archivebot.py .

نحوه تنظیم جهت یک صفحه بحث

این ربات فقط صفحاتی را پردازش می کند که صریحاً با حذف الگوی مارکر مشخص شده اند و بخشهایی را که برای مدت زمان مشخص غیرفعال هستند بایگانی می کند. قالب نشانگر معمولا استفاده می شود با $template. پارامترهای زیر توصیفداده شده. (بسیاری از آنها اختیاری است.) A commonly used marker template is {{User:MiszaBot/config|...}}. The template may have parameters described below. (Most of them are optional.)

{{TEMPLATE_PAGE
|archive             =
|algo                =
|counter             =
|maxarchivesize      =
|minthreadsleft      =
|minthreadstoarchive =
|archiveheader       =
|key                 =
}}

For a section to be archived, it must be a level 2 section, marked with ==. It is possible to opt-out some sections: see the explanation below.

پارامترهای الگو

معنی پارامترهای الگو عبارتند از:

پارامتر الگو توضیحات
archive نام صفحه را که در آرشیو موضوعات قرار داده خواهد شد. اید یک زیرصفحه از صفحه جاری باشد. متغیرها پشتیبانی می شوند.
algo حداکثر زمان را مشخص می کند. باید در یک فرم قدیمی باشد(تاخیر) که در آن تاخیر مساوی ساعت یا چند روز است like 24h (24 ساعت) یا 5d (5 روز). پیش عبارت است از old(24h).
counter ارزش فعلی یک کنتور که می تواند به عنوان متغیر اختصاص داده شود. توسط ربات فعلیت پیدا می کند. مقدار اولیه 1. است.
maxarchivesize حداکثر اندازه آرشیو قبل از افزایش کنتور. ارزش و مقدار آن را می توان اضافه کرد هر زمان که بخواهید. مانند K یا M که نشان می دهد کیلوبایت یا مگابایترا . مقدار پیش فرض 1000M (1000 megabytes). است.
minthreadsleft حداقل تعداد موضوعات است که باید از یک صفحه خارج شود. مقدار پیش فرض 5 است.
minthreadstoarchive حداقل تعداد موضوعات که می تواند در یک بار بایگانی شود. مقدار پیش فرض 2 است.
archiveheader محتویاتی که در صفحات جدید در سربرگ صفحه قرار می گیرند. این پارامترها پشتیبانی می کنند از تمام متغیرها ، الگوی پیش فرض {{talkarchive}} است.
key یک کلید مخفی که (به صورت معتبر) اجازه می دهد تا به زیرصفحه آرشیو نشود

متغیرهایی برای الگوهای نام صفحه

در پارامتر archive در قالب، متغیرهای زیر را می توان مورد استفاده قراردیرد.

متغیر گسترش به ...
%(counter)d مقدار فعلی کنتور عبارت است از counter
%(year)d سال آرشیو مذکور
%(quarter)d سه ماهه از سال (1-4) از موضوع آرشیو
%(month)d عدد ماه (1-12) از موضوعی که آرشیو می شود.
%(month)02d two-digit numeric month (01-12)
%(monthname)s نام انگلیسی ماه
%(monthnameshort)s سه حرف اول نام ماه

چگونگی ممانعت از آرشیو

To prevent a section (thread) from being archived for a finite time, you can edit the section and insert a signature with a future timestamp. The bot will not archive the thread until that time. Make sure that the signature is well-formatted; it must include a user name and a date exactly in the same format as a proper signature, otherwise it will not be recognized by the bot.

You can block a thread from being archived effectively indefinitely, using a very distant future timestamp, such as "۱۷:۴۱, ۲۰ مارس ۲۰۴۴ (UTC)".

To not confuse readers, the dummy signature may be written as a comment only with the dummy user name "DoNotArchiveUntil". Other comments will be ignored by the bot.

You might want to have on your wiki a substitutable template for this particular purpose. See English Wikipedia's template for an example: w:Template:DNAU.

جستارهای وابسته