Wikidata:Requests for permissions/Bot/TohaomgBot
- The following discussion is closed. Please do not modify it. Subsequent comments should be made in a new section. A summary of the conclusions reached follows.
- Approved--Ymblanter (talk) 13:54, 18 March 2018 (UTC)[reply]
TohaomgBot (talk • contribs • new items • new lexemes • SUL • Block log • User rights log • User rights • xtools)
Operator: Tohaomg (talk • contribs • logs)
Task/s: For all items listed in Wikidata:Wikivoyage/Lists/Embassies add a label in Ukrainian. Later, maybe, will add also in other languages.
Code: code
Function details: For each item listed in Wikidata:Wikivoyage/Lists/Embassies, properties Property:P137 for sending country and Property:P17 for receiving country are taken, names of those countries are put to proper grammar case in Ukrainian, then label in form "Embassy of <sending country> in <receiving country>" is added to the item. --Tohaomg (talk) 17:49, 4 March 2018 (UTC)[reply]
- Support
only if you intend to add these other language labels along with the Ukrainian all at once using Pywikibot. Mahir256 (talk) 05:31, 10 March 2018 (UTC)[reply]- Well, ok. I can add also English, Russian, Belarussian and German, and any other language if someone explains how to construct a phrase in that language, but it will make my code much more complex. --Tohaomg (talk) 20:24, 8 March 2018 (UTC)[reply]
- @Mahir256: Should we proceed with the stated task, or do you want to have the code modified before the task has been approved (which will likely lead to considerable delays)?--Ymblanter (talk) 19:24, 9 March 2018 (UTC)[reply]
- @Ymblanter: I regret now not knowing how to use Pywikibot two years ago when adding labels to numbers, one of the major contributors to my inflated edit count. Since said other language labels are probably just as uncontroversial as the Ukrainian one, it would be better—especially given that multiple changes may be made to an item using Pywikibot before said changes are committed to Wikidata—to add the labels all at once for a given item. Mahir256 (talk) 19:31, 9 March 2018 (UTC)[reply]
- @Mahir256, Ymblanter: here is my new code. The bot adds labels in Ukrainian, English, Russian, Belarusian and German where necessary. --Tohaomg (talk) 05:04, 10 March 2018 (UTC)[reply]
- Thanks. Let us wait for possible comments on the new code for a couple of days, and then I can approve the bot.--Ymblanter (talk) 08:27, 10 March 2018 (UTC)[reply]
- @Mahir256, Ymblanter: here is my new code. The bot adds labels in Ukrainian, English, Russian, Belarusian and German where necessary. --Tohaomg (talk) 05:04, 10 March 2018 (UTC)[reply]
- @Ymblanter: I regret now not knowing how to use Pywikibot two years ago when adding labels to numbers, one of the major contributors to my inflated edit count. Since said other language labels are probably just as uncontroversial as the Ukrainian one, it would be better—especially given that multiple changes may be made to an item using Pywikibot before said changes are committed to Wikidata—to add the labels all at once for a given item. Mahir256 (talk) 19:31, 9 March 2018 (UTC)[reply]
- @Mahir256: Should we proceed with the stated task, or do you want to have the code modified before the task has been approved (which will likely lead to considerable delays)?--Ymblanter (talk) 19:24, 9 March 2018 (UTC)[reply]
- Well, ok. I can add also English, Russian, Belarussian and German, and any other language if someone explains how to construct a phrase in that language, but it will make my code much more complex. --Tohaomg (talk) 20:24, 8 March 2018 (UTC)[reply]
┌────────────────────────────────────────────────────────────────────────────────────────────────────┘
Could you do a test run (50-100 edits)? This way I could look at the English ones.
--- Jura 09:28, 11 March 2018 (UTC)[reply]
- @Jura1: Done --Tohaomg (talk) 17:09, 11 March 2018 (UTC)[reply]
- Looks good. Q28065003 should probably have an English label that includes "Republic of China", but you could use "Taiwan" in the alias. If you are looking for more suitable aliases, have a look at Special:Search/Embassy Ulaanbaatar created some time ago for a Wikivoyage page. BTW, UAE needs "the".
--- Jura 09:54, 12 March 2018 (UTC)[reply]
- Looks good. Q28065003 should probably have an English label that includes "Republic of China", but you could use "Taiwan" in the alias. If you are looking for more suitable aliases, have a look at Special:Search/Embassy Ulaanbaatar created some time ago for a Wikivoyage page. BTW, UAE needs "the".
@Ymblanter: several days are over. May I get a bot flag now? --Tohaomg (talk) 13:24, 14 March 2018 (UTC)[reply]
- English labels still need to be corrected.
--- Jura 13:46, 14 March 2018 (UTC)[reply]- @Jura1, Ymblanter:: I did it already. Or you found any other issues? --Tohaomg (talk) 15:03, 14 March 2018 (UTC)[reply]
- I will check again later, but until this the discussion will benefit from being open.--Ymblanter (talk) 15:11, 14 March 2018 (UTC)[reply]
- I tried to search for the de label of Q610193. I think it might need fixing too.
Eventually we might want to fix items like Q511060 that mix nuncio and nunciature.
--- Jura 12:01, 15 March 2018 (UTC)[reply]- I figured German language does not have one way of giving a name to an embassy. It can be either "Botschaft von Frankreich in Berlin", "Botschaft der Frankreich Berlin", "Botschaft der Frankreich in Deutschland", "Französische botschaft in Berlin". So I picked the most common one. Nuncios can be replaced with nunciatures. --Tohaomg (talk) 13:21, 15 March 2018 (UTC)[reply]
- @Jura1, Ymblanter:: I did it already. Or you found any other issues? --Tohaomg (talk) 15:03, 14 March 2018 (UTC)[reply]
- Comment given the planned volumes and the readiness of the operator to fix potential issues, I think this could be approved. If a problem comes up, it should be possible the repair the limited number of items/languages involved without too much problems. BTW, maybe native label (P1705) in languages of both countries could be helpful on these items.
--- Jura 09:32, 18 March 2018 (UTC)[reply]