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 Approved.
Operator: Muro de Aguas (write me)
Automatic or Manually Assisted: automatic
Programming Language(s): Python (pywikipedia framework)
Function Summary: Add <references /> to articles with <ref> tags.
Edit period(s): When the list of Wikipedia:WikiProject Check Wikipedia is updated.
Already has a bot flag (Y/N): Yes
Function Details: In Wikipedia:WikiProject Check Wikipedia is a list of pages without <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
[edit]According to Wikipedia:LAYOUT, the References section should go after "See also", and before any "Further reading" or "External links" section. Will your bot also detect if <references /> or {{reflist}} has been added since Wikipedia:WikiProject Check Wikipedia was last updated? Anomie⚔ 18:48, 1 December 2008 (UTC)[reply]
- The bot checks every page in the list, and if <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 [1]. It can add <references /> or the template {{reflist}}. Which of them should the bot put? Muro de Aguas (write me) 15:42, 2 December 2008 (UTC)[reply]
- I personally prefer {{reflist}}, but either one would be fine. Anomie⚔ 17:01, 2 December 2008 (UTC)[reply]
- OK, then, I'll use {{reflist}} instead of <references /> such as this example. Muro de Aguas (write me) 18:19, 2 December 2008 (UTC)[reply]
- I personally prefer {{reflist}}, but either one would be fine. Anomie⚔ 17:01, 2 December 2008 (UTC)[reply]
- Will you be looking out for articles that have manual === References === headers in them? — xaosflux Talk 14:05, 6 December 2008 (UTC)[reply]
- 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)[reply]
- 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)[reply]
- I use the noreferences.py script. Muro de Aguas (write me) 15:32, 8 December 2008 (UTC)[reply]
Approved for trial (50 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. 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)[reply]
- 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.
- Trial complete. [2] Seems to be correct. Muro de Aguas (write me) 15:46, 17 December 2008 (UTC)[reply]
- 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 Approved. Anomie⚔ 17:43, 17 December 2008 (UTC)[reply]
- 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.