Jump to content

Wikipedia:Bots/Requests for approval/Mdann52 bot 15

From Wikipedia, the free encyclopedia

New to bots on Wikipedia? Read these primers!

Operator: Mdann52 (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)

Time filed: 09:24, Wednesday, June 12, 2024 (UTC)

Function overview: Removing instances of {{AMQ}}/{{FMQ}} following TfD, and adding other missing IDs in related templates

Automatic, Supervised, or Manual: Automatic

Programming language(s): Python, PWB framework

Source code available: github PR

Links to relevant discussions (where appropriate): WP:BOTREQ#Adding Facility IDs to AM/FM/LPFM station data

Edit period(s): one time run

Estimated number of pages affected: c20,000 pages using the template or linked to the categories in the BOTREQ

Namespace(s): Article

Exclusion compliant (Yes/No): Yes

Function details: The bot will initally remove all instances of {{FMQ}}/{{AMQ}} following TfD, updating those and the templates that currently transclude them. It will query the new FCC public API, and if the callsign has a FCC Facility ID it will update the template and update the relevant Wikidata entry (seperate BRFA filed over there). If the facility ID is not found, then it will remove the template (this will largely affect Mexican and Canadian stations, which have been removed from the new database).

Following this, I will run on Category:Pages using AM station data without facility ID, Category:Pages using FM station data without facility ID and Category:Pages using LPFM station data without facility ID, which may or may not have any members remaining after this task.

Discussion[edit]