Wikipedia:Bots/Requests for approval/FrescoBot 10
Operator: Basilicofresco (talk · contribs)
Time filed: 23:00, Thursday May 5, 2011 (UTC)
Automatic or Manual: Automatic unsupervised
Programming language(s): Python
Source code available: Standard pywikipedia
Function overview: it separates footnotes from external links creating a new "References" section where necessary.
Links to relevant discussions (where appropriate): not necessary, already defined in Wikipedia:External links#Important points to remember and Wikipedia:Inline citations#References/Notes section
Edit period(s): montly or less
Estimated number of pages affected: 1400
Exclusion compliant (Y/N): Y
Already has a bot flag (Y/N): Y
Function details: if footnotes tags (eg. <references/>) or templates (eg. {{reflist}}) are found within the "External links" section and a "Reference" section does not exist, then a new "Reference" section is created and these tags are moved there. Example: [1].
Discussion
Approved for trial (50 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. MBisanz talk 02:08, 9 May 2011 (UTC)
Trial complete. From now on it will also skip pages with a "Notes" section. In the meantime, can I also fix unwanted spaces in front of references tags/templates? -- Basilicofresco (msg) 05:58, 10 May 2011 (UTC)
- No, better not to, that's a cosmetic change (see WP:BOTPOL), can you set it to skip if whitespace only is changed please? - Kingpin13 (talk) 09:57, 10 May 2011 (UTC)
- Also, in this example the references tag wasn't within the External links section, they were in a level 1 notes section. - Kingpin13 (talk) 09:58, 10 May 2011 (UTC)
- Similar thing here. Obviously in both examples the article prior to the bot edit was wrong, but they're still wrong even after the bot has edited. - Kingpin13 (talk) 10:00, 10 May 2011 (UTC)
- I changed the regex in order to take into account level-1 sections and skip these articles. -- Basilicofresco (msg) 16:23, 10 May 2011 (UTC)