Wikipedia:Bots/Requests for approval/Muro Bot 4


 * The following discussion is an archived debate. Please do not modify it. Subsequent comments should be made in a new section. The result of the discussion was Symbol keep vote.svg Approved.

Muro Bot 4
Operator: Muro de Aguas (write me)

Automatic or Manually Assisted: automatic

Programming Language(s): Python (pywikipedia framework)

Function Summary: Add &lt;references /> to articles with &lt;ref> tags.

Edit period(s): When the list of WikiProject Check Wikipedia is updated.

Already has a bot flag (Y/N): Yes

Function Details: In WikiProject Check Wikipedia is a list of pages without &lt;references /> tag. The bot goes throw that articles and it adds that tag at the end of the article, before external links and after see also sections.

Discussion
According to LAYOUT, the References section should go after "See also", and before any "Further reading" or "External links" section. Will your bot also detect if &lt;references /> or reflist has been added since WikiProject Check Wikipedia was last updated? Anomie⚔ 18:48, 1 December 2008 (UTC)
 * The bot checks every page in the list, and if &lt;references /> or reflist had been added by other person, the bot detects that and it won't edit that page. I've changed the configuration so now See also will be before references . It can add &lt;references /> or the template reflist. Which of them should the bot put? Muro de Aguas (write me) 15:42, 2 December 2008 (UTC)
 * I personally prefer reflist, but either one would be fine. Anomie⚔ 17:01, 2 December 2008 (UTC)
 * OK, then, I'll use reflist instead of &lt;references /> such as this example. Muro de Aguas (write me) 18:19, 2 December 2008 (UTC)


 * Will you be looking out for articles that have manual === References === headers in them? —  xaosflux  Talk 14:05, 6 December 2008 (UTC)
 * That's automatically: the bot looks also if the === References === section is already created in the article, and if it is, it only adds the template. It finds === Footnotes === and === Notes === sections too. Muro de Aguas (write me) 17:35, 6 December 2008 (UTC)
 * Could you add Sources to the headers list, that's another common one I come across. §hep   •   ¡Talk to me!  03:20, 7 December 2008 (UTC)
 * I use the noreferences.py script. Muro de Aguas (write me) 15:32, 8 December 2008 (UTC)

Keep an eye on the cases where it has to go above categories, interwikis, and such; if you can, make sure a decent percentage of those edits fall into that case. Anomie⚔ 02:10, 17 December 2008 (UTC)
 * There's no problem with that (see an example). The bot always places the template before categories, interwikis and templates, and, of course, before External links sections.
 * Seems to be correct. Muro de Aguas (write me) 15:46, 17 December 2008 (UTC)
 * I do see one problem in this edit, it put the new references section before an (oddly-formatted) link at the end of the last section of the page, probably because it thought it was an interwiki. The same could probably happen if someone has an image at the end of the stub, as in this example. It would be a good idea to get the full list of interwiki prefixes from the API and match them explicitly. Fix that, and it's Anomie⚔ 17:43, 17 December 2008 (UTC)


 * The above discussion is preserved as an archive of the debate. Please do not modify it. Subsequent comments should be made in a new section.