ویکیپدیا:سیاست رباترانی/درخواست مجوز/انگلیسی/KasparBot/Task 1
Operator: T.seppelt (بحث • مشارکتها • انتقالها • بسته شود • بستهشدنها • اختیارات • آمار • آمار پیشرفته)
Time filed: چهارشنبه، ۲۲ مه ۲۰۲۴ (میلادی)، ساعت ۱۹:۴۷
Automatic, Supervised, or Manual:
Automatic
Programming language(s): Java own framework
Source code available: , [۱] [۲]
Function overview:
- move authority control information (Template:مستند کردن) to wikidata and replace the template with a blank {{مستند کردن}} (see en:Wikipedia:Bots/Requests for approval/KasparBot)
- add {{مستند کردن}} to pages with authority control information on wikidata but without a local template transclusion on fawiki (see en:Wikipedia:Bots/Requests for approval/KasparBot 2).
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)
- @Ebraminio: Thanks, but I don't need to be an uploader ([۴]) ;-) -- T.seppelt (بحث) ۲۰ ژوئیهٔ ۲۰۱۵، ساعت ۲۰:۱۷ (UTC)
- Approved --ابراهیم ۲۰ ژوئیهٔ ۲۰۱۵، ساعت ۲۰:۱۵ (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)
- 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 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)
- @T.seppelt: Better to make sure it would be in a separate line and "دادههای کتابخانهای" is duplicate with "مستند کردن" (both are same template) :) --ابراهیم ۲۱ ژوئیهٔ ۲۰۱۵، ساعت ۰۹:۲۱ (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)
- @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: 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)
- @Ebraminio: It should work now. No extra lines anymore. -- T.seppelt (بحث) ۲۱ ژوئیهٔ ۲۰۱۵، ساعت ۱۰:۰۷ (UTC)