Operator: GreenC (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
Time filed: 14:09, Thursday, April 11, 2019 (UTC)
Automatic, Supervised, or Manual: automatic
Programming language(s): GNU Awk
Source code available: Yes
Function overview: Add ((Spain metadata Wikidata))
and any other country as they become available to infoboxes. This BRFA mirrors Wikipedia:Bots/Requests for approval/GreenC bot 12 except it will be for Spain instead of Austria, and it will be be for any other countries that become available under the terms set out in the Austria BRFA.
Links to relevant discussions (where appropriate): Wikipedia:Bot_requests#Population_for_Spanish_municipalities
Edit period(s): one time
Estimated number of pages affected: TBD
Exclusion compliant (Yes/No): Yes
Already has a bot flag (Yes/No): Yes
Function details: Example edit. It may operate on other countries besides Spain as those templates and data become available.
Approved for trial (50 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. As usual, please post a link to the contribs (preferably permanent) and take all the time you need, GreenC. --TheSandDoctor Talk 20:10, 14 April 2019 (UTC)[reply]
A couple things came up in the test run:
|population_metro=
hard-coded and since it's displayed in the same sub-box that has the Spain population footnote it's not the right reference for that number. It has some other fields which may also no longer be accurate like |population_density_km2=
.|population_density_km2=auto
which seems to automatically generate the density based on calculating |population_total=
divided by |area_total_km2=
. It seems to work with the new template. Wondering if the bot should check for the existence of |area_total_km2=
and if available set |population_density_km2=auto
.Solutions:
|population_metro=
appears to be verifiable in the new Footnote. The number is outdated, but that is beyond the scope of the bot to fix as it preexists.|population_density_km2=auto
if the |area_total_km2=
exists and has a valid number. Same with the sq_mi versions. This works.-- GreenC 17:17, 17 April 2019 (UTC)[reply]
Approved. Under normal circumstances, I would prefer to leave the close for someone else. However, given the backlog, lack of recent BAG activity (myself included), and the fact that this task is uncontroversial and based on how well the trial went, I am inclined to make an exception for this. As per usual, if amendments to - or clarifications regarding - this approval are needed, please start a discussion on the talk page and ping. --TheSandDoctor Talk 16:30, 27 April 2019 (UTC)[reply]