User talk:Dalba

Jump to navigation Jump to search


for your help with the Farsi translations of the VE pages! PEarley (WMF) (talk) 22:26, 22 July 2013 (UTC)

It was my pleasure :) -- Dalba 1 Mordad 1392/ 06:25, 23 July 2013 (UTC)

Syntax highlighter relicensing[edit]

Hi, at the request of en:User:Kaldari, I have made mw:User:Remember the dot/Syntax highlighter.js available under the GNU General Public License version 2.0 and later. For good measure, I am also extending the previous Creative Commons Attribution-ShareAlike license to version 4.0 and later. More permissive licensing is necessary in order to integrate the syntax highlighter into other software, and the Creative Commons actually recommends against using Creative Commons licenses for software projects.

Because you contributed a translation to the syntax highlighter, I need to know if you approve of this license change. If you are OK with it, please reply to this message to let me know. If not, I will have to remove the translation that you contributed. But whether you decide to leave the translation under the new licenses or to revoke it thanks for collaborating with me on this project! —Remember the dot (talk) 05:35, 5 August 2015 (UTC)

Hi, Remember the dot, sure, you have my permission to re-license the translation as you have mentioned above. Thanks for being discreet about the licensing issues. Best regards. Dalba 07:29, 5 August 2015 (UTC)
Thank you! —Remember the dot (talk) 05:32, 6 August 2015 (UTC)

Can you help with FPCBot (it's using Pywikibot )[edit]

Hi there,

Thanks for your help at phab:T213287. I read that you're a Pywikibot developer, the bot FPCBot started to malfunction when its original author updated code to pywikibot-core. After he (the original author) finished updating the code the bot stopped doing some of the works that it used to did before the update, can you identify what's wrong with it ? SEE this . This bot is used at Featured picture candidates, to count the votes, closing the nominations, notifying the nominator, tagging the image as featured, adding the closed nomination to the logs and adding the featured images to appropriate categories. It earlier (before the update code to pywikibot-core) used to close the nominations within 24 hours if a {{withdraw}} or {FPX}} is placed on a nomination, but it's not happening anymore. Some more info can be found at . Is there any way to fix it ? I'm newbie to pywikibot. Regards, Eatcha (talk) 17:10, 25 May 2019 (UTC)

Hi, Eatcha! The code seems to be a little outdated (for example delistPage = "Commons:Featured_picture_candidates/removal" has been redirected since 2013). I did not notice anything wrong with wikipedia->pywikibot update. You should try debugging the script while having a nomination which is not being closed by mistake at hand (or create a test page and temporarily modify the script to make it work on that page). It shouldn't be hard to fix if the general logic is correct. I would have given it a try myself, but I'm not familiar with the procedure and conditions and prefer not to get into those details.
‌BTW, while reviewing the code I made a few changes in my fork. Feel free to apply them to your branch if you find anything useful. ( I did not create a pull request because most of them are stylistic only.)
Dalba 19:27, 25 May 2019 (UTC)
Thanks a lot, I merged it and you really did a nice job to notice the page redirect. :) -- Eatcha (talk) 20:07, 25 May 2019 (UTC)
The bot is now removing the Withdrawn nominations, thanks again. Can you also add a template {{FPD}} that should work similar to withdrawn template ?
Eatcha, if you want FDP-marked nominations to be treated as withdrawn, then you can just change the withdrawn regex from r"{{\s*[wW]ithdrawn?\s*(\|.*)?}}" to r"{{\s*(?:[wW]ithdrawn?|[fF]DP)\s*(\|.*)?}}". But if you want to create a new result category for FDPs, then some more work is needed. For example you could create a separate regex similar to WithdrawnR, create a function similar to isWithdrawn, and finally use that function the same way and everywhere that isWithdrawn is used.
Dalba 18:22, 26 May 2019 (UTC)

WARNING: /shared/pywikipedia/core/pywikibot/ UserWarning: Site objects have been created before arguments were handled UserWarning) I'm guessing it's from this change? The bot is working fine, but why this warning ? Regards, — Eatcha (talk) 05:35, 27 May 2019 (UTC)

Right. The warning means that if you provide `-lang:` and `-family:` options to invoke the script, it is likely that they will be ignored (which is true in this case).
You can revert that change (specially if you want to use those options, for example to make the script temporarily work on another wiki, e.g. The downside: If your default site in is set to something other than commons wiki, and you forget to use -lang and -family, the script will work on the wrong site.
Dalba 06:13, 27 May 2019 (UTC)