Wikidata:Requests for permissions/Bot/JhsBot 6
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) 19:30, 7 October 2022 (UTC)[reply]
JhsBot 6[edit]
JhsBot (talk • contribs • new items • new lexemes • SUL • Block log • User rights log • User rights • xtools)
Operator: Jon Harald Søby (talk • contribs • logs)
Task/s: Add sitelinks to newly created wikis after wikis have been created and exported from the Wikimedia Incubator.
Code: https://github.com/jhsoby/jhstools/blob/main/interwikibot.py
Function details: In the past few weeks I have developed a module+template that adds interwiki links from Wikidata to pages in the Wikimedia Incubator using arbitrary access, as well as a gadget that adds that template to pages. This is done because test wikis in the Wikimedia Incubator can't be connected to Wikidata in the same way that real wikis can. When a new wiki is created, it can some times take days or even weeks for sitelinks from Wikidata to be enabled. When that happens, I will run this bot manually, and it will only be run once per new wiki to add sitelinks to the pages that exist at the date of creation.
The script does two things in tandem: (1) It adds the sitelink to Wikidata, and (2) it removes the template from the page on the wiki. Therefore I will also file a request for global bot status for this task.
Due to the nature of the task, it is not really possible to make the customary 50 test edits, at least not until the next time a new wiki is created. During development I made a few test edits in two sandbox items, which you can see here.
--Jon Harald Søby (talk) 01:00, 26 September 2022 (UTC)[reply]
- seems good BrokenSegue (talk) 19:23, 29 September 2022 (UTC)[reply]