New to bots on Wikipedia? Read these primers!
Operator: C1MM (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
Time filed: 17:30, Friday, August 5, 2022 (UTC)
Function overview: This bot uploads images of assembly constituencies in Indian states to their Wikipedia pages.
Automatic, Supervised, or Manual: Automatic
Programming language(s): Python
Source code available: Standard Pywikipedia
Links to relevant discussions (where appropriate):
Edit period(s): Runs as requested
Estimated number of pages affected: 30-400/run, depends by specific category
Namespace(s): Articles
Function details: This bot takes pages of assembly constituencies in an Indian state (specified by category) and would extract the text of the page, and add a Commons file with a locator map of the constituency following a predetermined naming system (Constituency name+number) to the |image section of the ((Infobox Indian state assembly constituency)) if one is already not present. If there is no infobox, the constituency is skipped. If an image file is already present, it changes the current image file to the locator map. This follows a template set by several pages such as Villavancode and Ambur among others. See Anekal or Afzalpur for an example of the bot in action (I forgot that you needed to submit for approval, but still you can see 20 pages in this bot's edit history to see it in action). This bot is currently run locally on my machine using Pywikibot, but it would be ideal for the bot to run directly on Wikipedia servers without any connection to my local machine (if anyone could help me figure out how to do this, I would be glad of the help). None of the pages this bot is run on exclude bots.
Few questions: this reads like a one-time run, but you say "as necessary"; once the maps are in place, they should stay static, yes? Second, you say if an image file is already present, it changes the current image file to the locator map
- is this desired behaviour, and is there a discussion saying that a user-determined image is better than a bot-supplied map? Third (and I suppose somewhat importantly) - where was this task requested, discussed, or otherwise determined to be a "good idea"? I'm not necessarily saying it's not useful, but if this is just something you've decided to do because you think it's a good idea, then you should probably get consensus somewhere first. I have other questions but these should get us started. (please do not ping on reply) Primefac (talk) 16:33, 6 August 2022 (UTC)[reply]
Once the maps are in-place, I won't modify them unless the constituencies are re-delineated and the maps of the constituencies change. The bot allows for you to specify not to replace images but in this case, user-determined images are nearly always bad .png versions of the same type of map with very few exceptions. And I although I do agree that consensus is important on this, there really isn't an active enough community on this subject to get a timely consensus. C1MM (talk) 03:47, 8 August 2022 (UTC)[reply]
((BAG assistance needed)) — Preceding unsigned comment added by C1MM (talk • contribs) 17:16, 1 September 2022 (UTC)[reply]