User:FlagBot
**Currently operating on WP France Unassesseds - don't worry if there's some glitches, once all the Unassesseds have been processed I will be going back to check on any that the bot has skipped**
Emergency bot shutoff button
Administrators: Use this button if the bot is malfunctioning. (direct link)
Non-administrators can a malfunctioning bot to Wikipedia:Administrators' noticeboard/Incidents.
![]() | This user account is a bot that uses AutoWikiBrowser, operated by FlagSteward (talk). It is used to make repetitive automated or semi-automated edits that would be extremely tedious to do manually, in accordance with the bot policy. This bot does not yet have the approval of the community, or approval has been withdrawn or expired, and therefore shouldn't be making edits that appear to be unassisted except in the operator's or its own user and user talk space. To stop this bot until restarted by the bot's owner, edit its talk page. If that page is a redirect, edit that original redirecting page, not the target of the redirect. Administrators: if this bot is making edits that appear to be unassisted to pages not in the operator's or its own userspace, please block it or remove from the approved accounts. | ![]() |
This is the user page of a semi-automatic bot belonging to User:FlagSteward. Its main function is to automate the assessment of articles within a WikiProject, particularly "town" articles in projects such as WikiProject Italy. It performs one-off runs, generally once per Project.
Overview
[edit]The bot is written in PHP. It scans the lists of articles covered by a project and opens each of them in turn at >1.0 second intervals using Special:Export. It extracts various statistics such as the number of <ref> tags and number of images, and also what infoboxes an article uses. If the Template:Infobox CityIT box is present, it goes to the next stage.
Assessing importance
[edit]The bot extracts the population of a commune if possible, and proposes the following assessment of importance :
- Low : <15000 (and <2 JPG images in the article)
- Mid : >25000, <75000
- High :>125000
Assessing class
[edit]Class is based on an algorithm that looks at parameters such as WP:ORES classification and the length of article. In the case of Italian comuni, many have a 2kb demographic timeline which doesnt affect assessment, so the length of this is calculated and deducted from the length of the article. Classes are as follow :
- Stub
- Length - timeline < 2500
- OR Length - timeline < 3200, <3 headers, <2 refs, <2 images
- Start
- <3000 length-timeline <12000,
- <1800 length-timeline <12000, >3 headers and at least 1 ref and 1 image outside an infobox, or (images+headers) >2
These categories may vary depending on the Project - for instance the France Project assess all towns >100,000 people as High by definition.
Applying assessments
[edit]The list of assessments once generated is then examined by me, and any obvious tweaks applied. The list is then fed into AWB, which uses regexes based on Kingbotk's to apply the assessment. The Italy Project has about 1500 articles to do, some of the other Projects may have up to 5000.
CityIT templates
[edit]In support of the primary task, the bot may extract Comune infoboxes from the Italian versions of articles, clean up and translate eg months, and use subst:Comune to apply a CityIT infobox to the English article.