ویکی‌پدیا:سیاست ربات‌رانی/درخواست مجوز/انگلیسی/KasparBot/Task 1

از ویکی‌پدیا، دانشنامهٔ آزاد

Operator: T.seppelt (بحثمشارکت‌هاانتقال‌هابسته شودبسته‌شدن‌هااختیاراتآمارآمار پیشرفته)

Time filed: چهارشنبه،‏ ۲۲ مه ۲۰۲۴ (میلادی)، ساعت ‏۱۹:۴۷


Automatic, Supervised, or Manual: Automatic

Programming language(s): Java own framework

Source code available: , [۱] [۲]

Function overview:

Links to relevant discussions (where appropriate): The bot's tasks are coordinated at Wikidata:WikiProject Authority control/Status.

Edit period(s): continuous until all information are moved to Wikidata

Estimated number of pages affected: ~6300 see [۳]

Exclusion compliant (Y/N): Y Already has a bot flag (Y/N): N (but on enwiki, frwiki, mkwiki, dawiki, jawiki, kowiki and wikidata)

Function details:

please see en:Wikipedia:Bots/Requests for approval/KasparBot and en:Wikipedia:Bots/Requests for approval/KasparBot 2

Discussion[ویرایش]

User:T.seppelt: This thing seems useful. Thank you. Please run about ~10 and ping me back. --ابراهیم ‏۲۰ ژوئیهٔ ۲۰۱۵، ساعت ۲۰:۰۰ (UTC)[پاسخ]

@Ebraminio: I junst fineshed those ten edits. Thanks, -- T.seppelt (بحث) ‏۲۰ ژوئیهٔ ۲۰۱۵، ساعت ۲۰:۰۹ (UTC)[پاسخ]
Approved --ابراهیم ‏۲۰ ژوئیهٔ ۲۰۱۵، ساعت ۲۰:۱۵ (UTC)[پاسخ]
@Ebraminio: Thanks, but I don't need to be an uploader ([۴]) ;-) -- T.seppelt (بحث) ‏۲۰ ژوئیهٔ ۲۰۱۵، ساعت ۲۰:۱۷ (UTC)[پاسخ]
(edit conflict) That granted automatically not me, a bureaucrat will grant the bot flag :) --ابراهیم ‏۲۰ ژوئیهٔ ۲۰۱۵، ساعت ۲۰:۲۹ (UTC)[پاسخ]
@T.seppelto: for cases like this you should convert persian numbers to arabicDigits (english numbers). I wrote JS code you can convert it to java.
persianDigits = '۰۱۲۳۴۵۶۷۸۹';
arabicDigits = '0123456789';
function toEnglishDigits(text) {
            var i = 0;
            for (i = 0; i <= 9; i = i + 1) {
                text = text.replace(new RegExp('[' + persianDigits[i] + ']', 'g'), arabicDigits[i]);
            }
            return text;
        });
یاماها۵ / ب ‏۲۰ ژوئیهٔ ۲۰۱۵، ساعت ۲۰:۱۹ (UTC)[پاسخ]
Thank you. It's good to learn something about Persian digits. This was very useful. -- T.seppelt (بحث) ‏۲۰ ژوئیهٔ ۲۰۱۵، ساعت ۲۰:۲۳ (UTC)[پاسخ]
@T.seppelto: your welcome. I changed KasparBot's right to bot. please add this flag to your bot's user page یاماها۵ / ب ‏۲۰ ژوئیهٔ ۲۰۱۵، ساعت ۲۰:۲۶ (UTC)[پاسخ]
@T.seppelt: Honestly I didn't notice your second request for adding the template. After doing the first task, can you stop and give us 10 sample for adding template? We should check if you will add it on the right place on the page. --ابراهیم ‏۲۰ ژوئیهٔ ۲۰۱۵، ساعت ۲۰:۴۱ (UTC)[پاسخ]
@Ebraminio: Oh, I am sorry. Please have a look at these test edits: [۵], [۶], [۷], [۸], [۹], [۱۰], [۱۱], [۱۲], [۱۳], [۱۴]. Regards, -- T.seppelt (بحث) ‏۲۱ ژوئیهٔ ۲۰۱۵، ساعت ۰۷:۴۰ (UTC)[پاسخ]
T.seppelt: There is a little issue, you should add the template above stub template not below of them. Can you fix it? Stubs on fawiki are usually contains "خرد" on their names. --ابراهیم ‏۲۱ ژوئیهٔ ۲۰۱۵، ساعت ۰۷:۵۹ (UTC)[پاسخ]
Also please translate the bot edits summaries:
"embed {{داده‌های کتابخانه‌ای}} with wikidata information" -> "قرار دادن {{داده‌های کتابخانه‌ای}} با اطلاعات ویکی‌داده"
"مستند کردن moved to Wikidata" -> "انتقال مستند کردن به ویکی‌داده"
--ابراهیم ‏۲۱ ژوئیهٔ ۲۰۱۵، ساعت ۰۸:۱۲ (UTC)[پاسخ]
@Ebraminio: please have a look at my test edits. I am now seeking for stub templates. I also applied the translated summaries. Regards, -- T.seppelt (بحث) ‏۲۱ ژوئیهٔ ۲۰۱۵، ساعت ۰۸:۵۸ (UTC)[پاسخ]
@T.seppelt: . Looks great. Thank you. Another better to have improvement, per en:WP:STUBSPACING there should be one blank line before stub template, I don't expect/want you add that line along your edit but can you make bot care about them it adds a new one? Like this. --ابراهیم ‏۲۱ ژوئیهٔ ۲۰۱۵، ساعت ۰۹:۰۴ (UTC)[پاسخ]
@T.seppelt: Better to make sure it would be in a separate line and "داده‌های کتابخانه‌ای" is duplicate with "مستند کردن" (both are same template) :) --ابراهیم ‏۲۱ ژوئیهٔ ۲۰۱۵، ساعت ۰۹:۲۱ (UTC)[پاسخ]
@T.seppelt: Great that you are improving the bot, I think the experience here would be useful for your bots on other wikis and also other tasks :) (ترتیب‌پیش‌فرض) is our DEFAULTSORT, add the template before DEFAULTSORT. --ابراهیم ‏۲۱ ژوئیهٔ ۲۰۱۵، ساعت ۰۹:۳۴ (UTC)[پاسخ]
@Ebraminio: seperate line ✓ , duplicates ✓ , defaultsort ✓ . Yes, you are right. The program is now much better that before. ;-) -- T.seppelt (بحث) ‏۲۱ ژوئیهٔ ۲۰۱۵، ساعت ۰۹:۴۳ (UTC)[پاسخ]
@T.seppelt: Great! [۱۵], hmm the extra line here seems unnecessary, can you resolve it? --ابراهیم ‏۲۱ ژوئیهٔ ۲۰۱۵، ساعت ۰۹:۵۳ (UTC)[پاسخ]
@Ebraminio: It should work now. No extra lines anymore. -- T.seppelt (بحث) ‏۲۱ ژوئیهٔ ۲۰۱۵، ساعت ۱۰:۰۷ (UTC)[پاسخ]
@T.seppelt: Now this looks perfect :) The second task is also Approved. Thank you --ابراهیم ‏۲۱ ژوئیهٔ ۲۰۱۵، ساعت ۱۰:۲۲ (UTC)[پاسخ]