Wikidata:Requests for permissions/Bot/DanmicholoBot 2
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 Legoktm (talk) 17:48, 24 September 2013 (UTC)[reply]
DanmicholoBot 2 edit
DanmicholoBot (talk • contribs • new items • new lexemes • SUL • Block log • User rights log • User rights • xtools) 2
Operator: Danmichaelo (talk • contribs • logs)
Task/s: Move labels from language code "no" to "nb"
Function details: For each page on Norwegian Bokmål Wikipedia;
- If a label exists for "no" and not for "nb": Copy the label from "no" to "nb" and erase the "no" label.
- If labels exists for both codes and are equal: Erase the "no" label
- Otherwise: do nothing
Background: When MerlIwBot imported items from Wikipedia articles, it unfortunately created labels with language code "no" instead of "nb" from article titles at Norwegian Bokmål Wikipedia (no.wikipedia.org). While "no" is retained in the site prefix for historical reasons, the preferred language code for Norwegian Bokmål is "nb" since "no" (Norwegian) is a macrolanguage containing both "nb" (Norwegian Bokmål) and "nn" (Norwegian Nynorsk). At translatewiki only "nb" is used. Copying labels to "nb" by bot has been discussed here and here without any objections coming up. Ideally the "no" labels should be deleted altogether, but it doesn't seem possible at the moment to delete labels. --Danmichaelo (talk) 15:26, 14 September 2013 (UTC)[reply]
- Thanks for volunteering to take this task on. Can you do about ~100-200 test edits? Also I think it would be a good idea if you made a list somewhere if the no label is different from the nb label so a human can review it. Legoktm (talk) 21:43, 14 September 2013 (UTC)[reply]
- Yeah, I will do that. I will also check descriptions and aliases. But I ran into something weird during my first test edits; in six of seven of the edits it's reported that more than 2000 bytes were added when the bot in fact removed a label. The diffs look fine, so what can be the cause of the extra bytes? Is it something I should worry about? My API calls are quite standard, here's one example:
{'language': 'no', 'bot': 1, 'value': '', 'summary': 'Erased [no] label since it was equal to the [nb] label.', 'token': '[removed]', 'action': 'wbsetlabel', 'id': 'Q41032'}
Danmichaelo (talk) 21:53, 15 September 2013 (UTC)[reply]- The deployment of some of the backend for badges means that sitelinks now take up more space. See WD:DEV#Change in sitelinks structure. --Ricordisamoa 22:04, 15 September 2013 (UTC)[reply]
- Test edits done. Didn't notice any irregularities (I stopped the bot after I saw this, but it turned out to be the original "no" label was already escaped, so my bot just replicated the error). Danmichaelo (talk) 11:16, 16 September 2013 (UTC)[reply]
- In cases where the labels are equal except that one starts with an uppercase letter and the other starts with lowercase, I think you can safely keep the lowercase version. Is this something you could implement? - Soulkeeper (talk) 21:15, 17 September 2013 (UTC)[reply]
- Test edits done. Didn't notice any irregularities (I stopped the bot after I saw this, but it turned out to be the original "no" label was already escaped, so my bot just replicated the error). Danmichaelo (talk) 11:16, 16 September 2013 (UTC)[reply]
- The deployment of some of the backend for badges means that sitelinks now take up more space. See WD:DEV#Change in sitelinks structure. --Ricordisamoa 22:04, 15 September 2013 (UTC)[reply]
- Yeah, I will do that. I will also check descriptions and aliases. But I ran into something weird during my first test edits; in six of seven of the edits it's reported that more than 2000 bytes were added when the bot in fact removed a label. The diffs look fine, so what can be the cause of the extra bytes? Is it something I should worry about? My API calls are quite standard, here's one example: