Wikipedia:Bots/Requests for approval/C1MM-bot 2
- The following discussion is an archived debate. Please do not modify it. To request review of this BRFA, please start a new section at Wikipedia:Bots/Noticeboard. The result of the discussion was Approved.
New to bots on Wikipedia? Read these primers!
- Approval process – How this discussion works
- Overview/Policy – What bots are/What they can (or can't) do
- Dictionary – Explains bot-related jargon
Operator: C1MM (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
Time filed: 00:56, Tuesday, June 25, 2024 (UTC)
Function overview: Would add constituency numbers in addition to constituency maps
Automatic, Supervised, or Manual: Automatic
Programming language(s): Python
Source code available:
Links to relevant discussions (where appropriate): Wikipedia:Bots/Requests for approval/C1MM-bot
Edit period(s): occasionally run, would edit all pages in one fell swoop
Estimated number of pages affected: ~4000
Namespace(s): Articles
Exclusion compliant (Yes/No): No
Function details: I already have approval for running my bot to add image maps to infoboxes of Indian state legislative assembly constituency pages. I would like to add constituency numbers as well, which are listed in the filenames for the image maps. These numbers are obtained from Election Commission of India (must have an Indian IP address to access). My bot loops through all the pages in a given category where {{Infobox Indian constituency }} is present. Where there is already a constituency number the page would be skipped, just as it is skipped if there is already an image in the image_map section. Otherwise the constituency number would be added preserving infobox formatting (if any). This is in addition to adding the map in the same manner. This is editing pages which are not generally sufficiently important to have the Bots template.
Discussion
[edit]- (not-BAG) if the page already has a value in the relevant field, will the bot log/change it if it doesn't match the value produced by the map? This is probably worth trying to do. Mdann52 (talk) 18:05, 28 June 2024 (UTC)[reply]
- I can easily add that function to the bot. C1MM (talk) 13:16, 29 June 2024 (UTC)[reply]
- Approved for trial (50 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. Primefac (talk) 17:53, 5 July 2024 (UTC)[reply]
- Trial complete. See [1]. These are the trial edits. C1MM (talk) 12:00, 1 August 2024 (UTC)[reply]
- Approved. Primefac (talk) 23:22, 4 August 2024 (UTC)[reply]
- C1MM, as a post-approval note, please make sure you link to this BRFA in your edit summaries (and if you end up making any edits from task 1, to link to those as well). Primefac (talk) 23:23, 4 August 2024 (UTC)[reply]
- Approved. Primefac (talk) 23:22, 4 August 2024 (UTC)[reply]
- Trial complete. See [1]. These are the trial edits. C1MM (talk) 12:00, 1 August 2024 (UTC)[reply]
- Approved for trial (50 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. Primefac (talk) 17:53, 5 July 2024 (UTC)[reply]
- I can easily add that function to the bot. C1MM (talk) 13:16, 29 June 2024 (UTC)[reply]
- The above discussion is preserved as an archive of the debate. Please do not modify it. To request review of this BRFA, please start a new section at Wikipedia:Bots/Noticeboard.