Wikipedia:Bots/Requests for approval/Mobius Bot 3: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Line 39: Line 39:
*AWB is unable to add references to thousands of these cases because there is no visible ref tag. [http://en.wikipedia.org/w/index.php?title=Ammersbek&action=historysubmit&diff=362688134&oldid=362687906]. The reference comes from Infobox German location.
*AWB is unable to add references to thousands of these cases because there is no visible ref tag. [http://en.wikipedia.org/w/index.php?title=Ammersbek&action=historysubmit&diff=362688134&oldid=362687906]. The reference comes from Infobox German location.
*Where will Mobius Bot add the reflist tag? -- [[User:Magioladitis|Magioladitis]] ([[User talk:Magioladitis|talk]]) 21:51, 17 May 2010 (UTC)
*Where will Mobius Bot add the reflist tag? -- [[User:Magioladitis|Magioladitis]] ([[User talk:Magioladitis|talk]]) 21:51, 17 May 2010 (UTC)
**The bot uses the standard pywikipedia methods to remove cats and interwikis, inserts the reflist, then 'floats' it above any other templates using a custom process, and finally sticks the cats and IWs back. In short, the reflist will end up before any templates, categories or IW links at the end of the article in question. - [[User talk: Mobius Clock|<font color="#A50">'''''Mobius Clock'''''</font>]] 22:55, 17 May 2010 (UTC)

Revision as of 22:55, 17 May 2010

Operator: Mobius Clock (talk · contribs)

Automatic or Manually assisted: Automatic

Programming language(s): Python

Source code available: After cleanup, this will be a link

Function overview: Fixing articles that have <ref> tags and/or template parameters which create references, but no <references/> or {{reflist}}, using this category.

Links to relevant discussions (where appropriate): Wikipedia:Bot_requests#Missing_reflist

Edit period(s): Periodically, category requires semi-constant clearing

Estimated number of pages affected: However many are in the category!

Exclusion compliant (Y/N): No, if necessary can be made so

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

Function details: Although SmackBot was approved to do this, it hasn't run this task in a while, and given that there has been a direct request for this kind of thing, I thought it can't hurt to have more than one bot available. Basically the bot will run through the 'pages with missing reflist' category, and add said reflist if: the page actually has references, excluding those in HTML comments, or the page contains a template with a parameter that automatically adds a reference, and there is no reflist or <references/> tag. One ref-generating parameter in the German location infobox (see BOTREQ) prompted this task, if any others exist, please let me know. The BOTREQ referred to running through the transclusions of the given template; I did a dry run and found that less than 5% of the pages needed to be fixed, and therefore I thought it more efficient to do the whole category, and cross the whole thing off the 'things what need fixing plz' list, at least temporarily.

Discussion

  • AWB is unable to add references to thousands of these cases because there is no visible ref tag. [1]. The reference comes from Infobox German location.
  • Where will Mobius Bot add the reflist tag? -- Magioladitis (talk) 21:51, 17 May 2010 (UTC)[reply]
    • The bot uses the standard pywikipedia methods to remove cats and interwikis, inserts the reflist, then 'floats' it above any other templates using a custom process, and finally sticks the cats and IWs back. In short, the reflist will end up before any templates, categories or IW links at the end of the article in question. - Mobius Clock 22:55, 17 May 2010 (UTC)[reply]