بحث پودمان:Citation/CS1/fa

آخرین نظر: ۱ سال پیش توسط Cyberpower678 در مبحث Module confusing the IABot

@Mensis Mirabilis: جا دارد که بر اساس پودمان:Citation/CS1/en این را هم به روز کنید. خوب است که نهایتاً تمام الگوهای فارسی {{یادکرد ...}} را هم مبتنی بر پودمان Citation/CS1/fa بکنیم. — حجت/بحث ‏۲۰ آوریل ۲۰۱۸، ساعت ۱۴:۳۰ (UTC)پاسخ

Module confusing the IABot ویرایش

@Mojtabakd: Hi. I'm writing this thread in English as we are collaborating with User:Cyberpower678 to get the issue with IABot resolved. Inviting you to read Special:Permalink/35352998#InternetArchiveBot and shed some light on what we need to do to make the bot understand the way fawiki implements CS1 templates. Thank you. {{کاربر|جـیپیوتر}}بحث ‏۱۳ اوت ۲۰۲۲، ساعت ۱۰:۰۵ (UTC)پاسخ

Also adding User:Harej to this discussion. {{کاربر|جـیپیوتر}}بحث ‏۱۳ اوت ۲۰۲۲، ساعت ۱۰:۰۷ (UTC)پاسخ

@Mojtabakd: Those translations are for the user interface. Waiting for response from User:Cyberpower678. {{کاربر|جـیپیوتر}}بحث ‏۱۳ اوت ۲۰۲۲، ساعت ۲۲:۳۰ (UTC)پاسخ
Hello there. Actually the bot can read both of them just fine, but it's deciding which one to use that's the problem. This is the only wiki to have two implementations of CS1. I'm interested in knowing when fa is used over en.—CYBERPOWER (بحث) ‏۱۴ اوت ۲۰۲۲، ساعت ۰۵:۲۹ (UTC)پاسخ
@Cyberpower678: Hi, this module decides which one to use. For example if we use {{Cite web}}, it will directly use citation/CS1/en, but if we use it's transleted corresponding template, i.e. {{یادکرد وب}}, it will use that module (with the help of |lang= parameter) to find out which one to use. مجتبی ک. د. «بحث» ‏۱۴ اوت ۲۰۲۲، ساعت ۰۸:۲۵ (UTC)پاسخ

@Cyberpower678: Note that if the translated template (like {{یادکرد وب}}) have been used in the article, but it's language is for example |lang=en, then again citation/CS1/en will be used. In any case in my opinion it would be better if you use پودمان:Citation/CS1/en/Configuration in all the situations, becuase it is more updated and we have added (and will add) all the parameters aliases needed. But the final decision is on you, because I have not studied the bot's source code yet. مجتبی ک. د. «بحث» ‏۱۴ اوت ۲۰۲۲، ساعت ۰۹:۱۳ (UTC)پاسخ

The goal for creating two versions of citation templates was in translating the presentation of that template, so both of them will and should accept all the parameters and the citation/CS1/en is more updated and we may remove citation/CS1/fa in the future to merge it with the citation/CS1/en. مجتبی ک. د. «بحث» ‏۱۴ اوت ۲۰۲۲، ساعت ۰۹:۲۲ (UTC)پاسخ
Ah, that is good to know, and the bot is already referring to it for the CS1 enabled template. That just leaves fixing the validator since the bot is currently checking for explicit reference. There are two options I see. The first option is to address the code to allow for some way to override the validator without compromising the reliability of it. The second option, which I prefer is to add a commented out invoke command to 'Citation/CS1/en' on all CS1 enabled templates. I personally prefer option two and will let the validator do it's work as it should.—CYBERPOWER (بحث) ‏۱۴ اوت ۲۰۲۲، ساعت ۱۲:۲۱ (UTC)پاسخ
👍مجتبی ک. د. «بحث» ‏۱۴ اوت ۲۰۲۲، ساعت ۱۲:۵۶ (UTC)پاسخ
@Mojtabakd: Actually just adding the comment "Citation/CS1/en" to the CS1 templates not directly invoking it should be enough to fix the issue. Looking at the templates, it's mostly the fa templates that are using the wrapper.—CYBERPOWER (بحث) ‏۱۴ اوت ۲۰۲۲، ساعت ۱۳:۲۱ (UTC)پاسخ
@Cyberpower678: Something like this?! ---> special:diff/35361594 If it's not please write it in the nowiki tag here for me to put it on the cs1 fa templates. thanx مجتبی ک. د. «بحث» ‏۱۴ اوت ۲۰۲۲، ساعت ۱۹:۳۸ (UTC)پاسخ
@Mojtabakd: Exactly. The template is now being handled correctly by the bot.—CYBERPOWER (بحث) ‏۱۴ اوت ۲۰۲۲، ساعت ۲۰:۴۱ (UTC)پاسخ
Good, so I just did it for other fa templates which I found on Module:Citation/lang too. I hope it solves the problem. It's better that we test the bot to make sure it has been fixed before mass edition. thanx مجتبی ک. د. «بحث» ‏۱۴ اوت ۲۰۲۲، ساعت ۲۲:۰۰ (UTC)پاسخ
@Mojtabakd و Jeeputer: Looks like it worked. We should test the bot now. It can be enabled/disable here.—CYBERPOWER (بحث) ‏۱۵ اوت ۲۰۲۲، ساعت ۰۸:۱۸ (UTC)پاسخ
I have turned it on to observe for more issues.—CYBERPOWER (بحث) ‏۱۵ اوت ۲۰۲۲، ساعت ۱۳:۳۶ (UTC)پاسخ
I also have a cleanup script that will clean up duplicate parameters. I will run it when I have confirmed the bot is working correctly.—CYBERPOWER (بحث) ‏۱۵ اوت ۲۰۲۲، ساعت ۱۳:۴۷ (UTC)پاسخ
I have already cleaned most of duplicates with Turingbot (I didn't check recent editions if there exists any). مجتبی ک. د. «بحث» ‏۱۵ اوت ۲۰۲۲، ساعت ۱۷:۳۱ (UTC)پاسخ
Looking at some of the recent edits of IABot, it seems to be behaving correctly now. I'll leave it on. Please report any other issues you find with the bot.—CYBERPOWER (بحث) ‏۱۶ اوت ۲۰۲۲، ساعت ۱۳:۵۲ (UTC)پاسخ
بازگشت به صفحهٔ «Citation/CS1/fa».