လက်စွဲ:Pywikibot/archivebot.py/setup

From mediawiki.org
This page is a translated version of the page Manual:Pywikibot/archivebot.py/setup and the translation is 33% complete.

archivebot.py သည် ဆွေးနွေးမှုစာမျက်နှာများကို သိမ်းဆည်းရန် script တစ်ခုဖြစ်သည်။ ဤ ဘော့တ်မှ အလိုအလျောက် သိမ်းဆည်းခြင်းအတွက် ဤစာတမ်းသည် ဆွေးနွေးမှု စာမျက်နှာများကို ဝီကီတွင် မည်သို့ သတ်မှတ်ရမည်ကို ရှင်းပြထားသည်။ ဘော့တ်ကို လည်ပတ်ပုံနှင့်ပတ်သက်သည့် စာရွက်စာတမ်းတစ်ခုအတွက်၊ ကျေးဇူးပြု၍ Manual:Pywikibot/archivebot.py ကိုကြည့်ပါ။

ဆွေးနွေးမှု စာမျက်နှာကို မည်ကဲ့သို့ သတ်မှတ်ရမည်နည်း။

ဤဘော့တ်သည် အမှတ်အသား နမူနာပုံစံတစ်ခုကို ထည့်သွင်းခြင်းဖြင့် ပြတ်သားစွာ အမှတ်အသားပြုထားသော စာမျက်နှာများကိုသာ လုပ်ဆောင်ပြီး သတ်မှတ်ထားသော ကြာချိန်တစ်ခုအထိ အပိုင်းများကို သိမ်းဆည်းခြင်းမပြုတော့သည့် အပိုင်းများကိုသာ လုပ်ဆောင်ပါသည်။ 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                 =
}}

အပိုင်းတစ်ခုအား မော်ကွန်းတင်ရန်အတွက် ယင်းတွင် == ဖြင့် မှတ်သားထားသော အဆင့် ၂ ခေါင်းစဉ်တစ်ခု ရှိရမည်ဖြစ်သည်။ အချို့သော အပိုင်းများအား ဥပက္ခာပြုနိုင်ပြီး အောက်တွင် ရှင်းလင်းပြထားသည်

တမ်းပလိတ် ပါရာမီတာများ

တမ်းပလိတ်၏ ပါရာမီတာ ရှင်းလင်းချက်များမှာ

တမ်းပလိတ် ပါရာမီတာ ဖော်ပြချက်
archive မော်ကွန်းတင်ခြင်းများ ထားရှိမည့် စာမျက်နှာအမည် ထည့်သွင်းရန်ဖြစ်သည်။ လက်ရှိစာမျက်နှာ၏ စာမျက်နှာခွဲတစ်ခု ဖြစ်ရမည် ဖြစ်ပြီး ကွဲလွဲချက်များကိုလည်း ထောက်ပံ့ပေးနိုင်သည်။
algo specifies the maximum age of a thread. Must be in the form old(delay) where delay specifies the age in hours or days like 24h (24 hours) or 5d (5 days). Default is old(24h).
counter The current value of a counter which could be assigned as variable. Will be actualized by bot. Initial value is 1.
maxarchivesize The maximum archive size before incrementing the counter. Value can be given with appending letter like K or M which indicates KByte or MByte. Default value is 1000M (1000 megabytes).
minthreadsleft Minimum number of threads that should be left on a page. Default value is 5.
minthreadstoarchive The minimum number of threads to archive at once. Default value is 2.
archiveheader Content that will be put on new archive pages as the header. This parameter supports the use of variables. Default value is {{talkarchive}}.
key A secret key that (if valid) allows archives to not be subpages of the page being archived.

Variables for page name patterns

In the archive parameter in the template, following variables can be used.

Variable Expands to...
%(counter)d the current value of the counter
%(year)d year of the thread being archived
%(quarter)d quarter of the year (1-4) of the thread being archived
%(month)d numeric month (1-12) of the thread being archived
%(month)02d two-digit numeric month (01-12)
%(monthname)s English name of the month
%(monthnameshort)s first three letters of the name of month

How to prevent archiving

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.

See also

  • w:Help:Automated_archival - ဟောပြောချက် စာမျက်နှာကို သိမ်းဆည်းခြင်း - အများစုမှာ အင်္ဂလိပ်ဝီကီပီးဒီးယားတွင် ရေးထားသည်များ မရှိပါ။
  • w:User:MiszaBot/config