Wikipedia:Bots/Requests for approval/PonoRoboT
- 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: Ponor (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
Time filed: 18:00, Tuesday, May 30, 2023 (UTC)
Function overview: Update Croatian settlement infoboxes with 2021 Census data.
Automatic, Supervised, or Manual: Fully supervised at first, then supervised on a random sample of edits (~10%) and all suspicious size changes.
Programming language(s): Python (my fork of mwparserfromhell; regex)
Source code available:
Links to relevant discussions (where appropriate): Wikipedia talk:WikiProject Croatia#2021 census infobox update
Edit period(s): one time
Estimated number of pages affected: 3200
Namespace(s): Articles
Exclusion compliant (Yes/No): Yes
Function details: There's been a 10–15% population decline since the 2011 Croatian census. I have a bot (nearly) ready to update {{Infobox settlement}} population parameters |population_total=
(for settlements, municipalities and towns) and |population_urban=
(for municipalities and towns). The same bot (editcount) and the same data have been used for 7000 new transclusions of :hr:Template:Croatian population data graph and, just recently, for 30 000 Wikidata QuickStatements. The bot will:
- update (or add) the two parameters, and update
|population_as_of=
- in some articles, blank the values of other
|population_…=
parameters that have been previously used instead of the two - replace the reference in
|population_footnotes=
with the newly created {{Template:Croatian Census 2021|S}}, and if the old named reference is used outside of the template replace it with the full (old) citation
My preliminary tests were Special:Diff/1156055989, Special:Diff/1156056334, Special:Diff/1156054662.
Discussion
[edit]- @Ponor: Hi. Where (and how) is the bot getting the updated census stats from? —usernamekiran (talk) 10:04, 31 May 2023 (UTC)[reply]
- @Usernamekiran: in September 2022 the statistics bureau published their final results for 6700+ settlements as one xslx file (subst'ing the beforementioned template): "Population by Age and Sex, by Settlements, 2021 Census". Census of Population, Households and Dwellings in 2021. Zagreb: Croatian Bureau of Statistics. 2022.
- It took some time to match their data to hrwiki article names and WD Qids, but I'm quite confident I got everything right. Ponor (talk) 10:43, 31 May 2023 (UTC)[reply]
- Thank you. —usernamekiran (talk) 10:47, 31 May 2023 (UTC)[reply]
- It took some time to match their data to hrwiki article names and WD Qids, but I'm quite confident I got everything right. Ponor (talk) 10:43, 31 May 2023 (UTC)[reply]
- Approved for trial (100 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. Primefac (talk) 08:32, 7 June 2023 (UTC)[reply]
- Trial complete. Link to relevant contributions No errors, no major issues encountered. Ponor (talk) 14:23, 14 September 2023 (UTC)[reply]
- Approved. Primefac (talk) 09:56, 20 September 2023 (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.