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

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

message: 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)
* Hi, recently I have updated module:Citation/CS1/en (and related modules) but didn't update the module:Citation/CS1/fa (and related modules), as the problem (at least part of it which relates to the fa modules) has not changed before and after that update, I can guess that the bug relates to the module:Citation/CS1/fa (and related modules), so we should update the alias parameters which have this comment ---> "-- Used by InternetArchiveBot" مجتبی ک. د. «بحث» ‏۱۳ اوت ۲۰۲۲، ساعت ۱۰:۵۱ (UTC)
*:The aforementioned aliases can be found here ---> پودمان:Citation/CS1/en/Configuration مجتبی ک. د. «بحث» ‏۱۳ اوت ۲۰۲۲، ساعت ۱۰:۵۳ (UTC)
*:: Please look at this link, It seems that they update the translations in the bot's source file from translatewiki 😐! Maybe reverting the recent changes solve the problem. We should analyze its commits history.مجتبی ک. د. «بحث» ‏۱۳ اوت ۲۰۲۲، ساعت ۲۱:۰۷ (UTC)
*:::When the problem occurred for the first time, we had not changed the modules code then ... مجتبی ک. د. «بحث» ‏۱۳ اوت ۲۰۲۲، ساعت ۲۱:۰۹ (UTC)
replies: text: ::: Those translations are for the user interface. Waiting for response from User:Cyberpower678.  بحث ‏۱۳ اوت ۲۰۲۲، ساعت ۲۲:۳۰ (UTC)
replies: text: ::::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)
replies: text: ::::: Hi, this module decides which one to use. For example if we use , 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  parameter) to find out which one to use. مجتبی ک. د. «بحث» ‏۱۴ اوت ۲۰۲۲، ساعت ۰۸:۲۵ (UTC)
Note that if the translated template (like ) have been used in the article, but it's language is for example , 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)

text: 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)
replies: text: :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)
replies: text: ::👍مجتبی ک. د. «بحث» ‏۱۴ اوت ۲۰۲۲، ساعت ۱۲:۵۶ (UTC)
replies: text: ::: 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)
replies: text: :::: 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)
replies: text: ::::: Exactly.  The template is now being handled correctly by the bot.—CYBERPOWER (بحث) ‏۱۴ اوت ۲۰۲۲، ساعت ۲۰:۴۱ (UTC)
replies: text: ::::::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)
replies: text: ::::::: Looks like it worked.  We should test the bot now.  It can be enabled/disable here.—CYBERPOWER (بحث) ‏۱۵ اوت ۲۰۲۲، ساعت ۰۸:۱۸ (UTC)

text: :::::::I have turned it on to observe for more issues.—CYBERPOWER (بحث) ‏۱۵ اوت ۲۰۲۲، ساعت ۱۳:۳۶ (UTC)

text: :::::::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)
replies: text: ::::::::I have already cleaned most of duplicates with Turingbot (I didn't check recent editions if there exists any). مجتبی ک. د. «بحث» ‏۱۵ اوت ۲۰۲۲، ساعت ۱۷:۳۱ (UTC)
replies: text: :::::::::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)
thread_title:  Module confusing the IABot