Wikinews:Bots

From Wikinews, the free news source you can write!
Jump to navigation Jump to search
Green check.png This page is an official policy on the English Wikinews. It has wide acceptance among editors and is considered a standard that all users should follow. When making changes to this page, please ensure that your revision reflects consensus. When in doubt, discuss first on the talk page.
Wikinews Bots.png

All bots must be approved here to run regardless of if they need a bot flag. Non-approved bots may be blocked at an administrator's discretion. This may be for reasons such as flooding recent changes. The bot flag will not be granted to any bot that does not have the {{botblock}} template on its userpage. A bot's userpage should clearly state the bot's intended purpose and other relevant details. See also Wikinews:Global Bots.

For archived discussions, see the Archive.

To add a new bot request, click here.

Wikinews Policies and Guidelines

Neutral point of view
Content guide
Style guide

Administrators
Arbitration Committee

For Wikipedians

Etiquette


Bots on Wikinews[edit]

Active bots[edit]

These are bots that have made any page edit or logged action within 30 days:

Inactive bots[edit]

These are bots that have not made any page edits nor logged actions within 30 days:

Defunct bots[edit]

Click to expand
Bot Inactive since
AdambroBot (Talkcontribsbot status logactionsblock logother log) July 2010
BaseBot (Talkcontribsbot status logactionsblock logother log) June 2013
CalendarBot (Talkcontribsbot status logactionsblock logother log) November 2010
Diego Grez Bot (Talkcontribsbot status logactionsblock logother log) June 2011
EmBOTellado (Talkcontribsbot status logactionsblock logother log) August 2010
MelancholieBot (Talkcontribsbot status logactionsblock logother log) October 2009
MerlLinkBot (Talkcontribsbot status logactionsblock logother log) February 2011
Millbot (Talkcontribsbot status logactionsblock logother log) February 2011
MiszaBot (Talkcontribsbot status logactionsblock logother log) April 2014
Mjbmrbot (Talkcontribsbot status logactionsblock logother log) January 2015
NewsieBot (Talkcontribsbot status logactionsblock logother log) March 2014
SineBot (Talkcontribsbot status logactionsblock logother log) April 2010
SportsBot (Talkcontribsbot status logactionsblock logother log) April 2010
The wubbot (Talkcontribsbot status logactionsblock logother log) August 2010
VolkovBot (Talkcontribsbot status logactionsblock logother log) April 2013
XeBot (Talkcontribsbot status logactionsblock logother log) July 2009
ZacharyBot (Talkcontribsbot status logactionsblock logother log) November 2010

Discussion about current bots[edit]

General question regarding the 'inactive bots' list above
  • Block, remove bot flag or, ...? --Brian McNeil / talk 08:51, 13 October 2012 (UTC)
  • I'd think, in general when a bot goes inactive for, say, a year, remove the flag. Eventually block; just to name a figure, maybe that's two years? --Pi zero (talk) 14:11, 26 December 2012 (UTC)
  • Would suppose the idea that if inactive for a year, remove the flag. --LauraHale (talk) 06:43, 23 March 2013 (UTC)

Discussion about new bots[edit]




DannyS712 bot (talk · contribs)[edit]

The below SQL query retrieves, for each template that has a "use count" sub template, the template/module name, the full number of transclusions, the number that would be put in the template (not the exact number, but some number below it to say "over xxx"), and the name of the use count page. I've only some of the results here, but the total query retrieves 61 rows

SQL Current result
USE enwikinews_p;
SELECT
  CONCAT (
    CASE
      WHEN tl.tl_namespace = 10 THEN 'Template'
      WHEN tl.tl_namespace = 828 THEN 'Module'
    END,
    ':',
    tl.tl_title
  ) AS 'Page',
  COUNT(*) AS 'Transclusions',
  CASE
    WHEN COUNT(*) < 1000 AND MOD(COUNT(*), 100) < 60
      THEN CONCAT( SUBSTR(COUNT(*), 1, LENGTH(COUNT(*)) - 2), '00' )
    WHEN COUNT(*) < 1000
      THEN CONCAT( SUBSTR(COUNT(*), 1, LENGTH(COUNT(*)) - 2), '50' )
    WHEN COUNT(*) < 10000 AND MOD(COUNT(*), 100) < 60
      THEN CONCAT( SUBSTR(COUNT(*), 1, 1), ',', SUBSTR(COUNT(*), 2, 1), '00' )
    WHEN COUNT(*) < 10000
      THEN CONCAT( SUBSTR(COUNT(*), 1, 1), ',', SUBSTR(COUNT(*), 2, 1), '50' )
    WHEN COUNT(*) < 1000000 AND MOD(COUNT(*), 1000) < 600
      THEN CONCAT( SUBSTR(COUNT(*), 1, LENGTH(COUNT(*)) - 3), ',000' )
    WHEN COUNT(*) < 1000000
      THEN CONCAT( SUBSTR(COUNT(*), 1, LENGTH(COUNT(*)) - 3), ',500' )
    ELSE
      CONCAT( SUBSTR(COUNT(*), 1, 1), '.', SUBSTR(COUNT(*), 2, 1), ' million' )
  END AS 'Over',
  CONCAT (
    CASE
      WHEN tl.tl_namespace = 10 THEN 'Template'
      WHEN tl.tl_namespace = 828 THEN 'Module'
    END,
    ':',
    tl.tl_title,
    '/doc/use-count/doc'
  ) AS 'Counter'
FROM templatelinks tl
WHERE tl.tl_title IN (
  SELECT
    SUBSTR(pg.page_title, 1, LENGTH(pg.page_title) - 18)
  FROM
    page pg
  WHERE
    pg.page_title LIKE '%/doc/use-count/doc'
    AND pg.page_id IN (
      SELECT cl.cl_from
      FROM categorylinks cl
      WHERE cl.cl_to = 'Possible-risk/use-count'
    )
)
AND tl.tl_namespace IN (10, 828)
GROUP BY CONCAT(tl.tl_title, tl.tl_namespace)
HAVING COUNT(*) > 100
ORDER BY COUNT(*) DESC;
Page Transclusions Over Counter
Template:Tl 2638432 2.6 million Template:Tl/doc/use-count/doc
Template:Plink 2610092 2.6 million Template:Plink/doc/use-count/doc
Template:Howdy/content 2610023 2.6 million Template:Howdy/content/doc/use-count/doc
Template:Howdy 2610021 2.6 million Template:Howdy/doc/use-count/doc
Template:Xambox 28934 28,500 Template:Xambox/doc/use-count/doc
Template:W 23205 23,000 Template:W/doc/use-count/doc
Template:COinS 21993 21,500 Template:COinS/doc/use-count/doc
Template:Date 21985 21,500 Template:Date/doc/use-count/doc
Template:Source 21152 21,000 Template:Source/doc/use-count/doc
Template:Social_bookmarks 20524 20,000 Template:Social_bookmarks/doc/use-count/doc
Template:Publish 20517 20,000 Template:Publish/doc/use-count/doc
Template:Archived 19025 19,000 Template:Archived/doc/use-count/doc
Template:Source/uc? 15613 15,500 Template:Source/uc?/doc/use-count/doc
Template:Haveyoursay 12068 12,000 Template:Haveyoursay/doc/use-count/doc
Template:Evalx 11858 11,500 Template:Evalx/doc/use-count/doc
Module:Wikilisp 11857 11,500 Module:Wikilisp/doc/use-count/doc
Template:InfoboxStart 11110 11,000 Template:InfoboxStart/doc/use-count/doc
Template:InfosectionStart 9036 9,000 Template:InfosectionStart/doc/use-count/doc
Template:Peer_reviewed 8734 8,700 Template:Peer_reviewed/doc/use-count/doc
Module:Rptchars 8515 8,500 Module:Rptchars/doc/use-count/doc
Template:(* 8483 8,450 Template:(*/doc/use-count/doc
Template:*) 8483 8,450 Template:*)/doc/use-count/doc
Template:Wikinewline 8338 8,300 Template:Wikinewline/doc/use-count/doc
Template:Peer_reviewed/Passed 8321 8,300 Template:Peer_reviewed/Passed/doc/use-count/doc
Template:Infobox/lookup 8301 8,300 Template:Infobox/lookup/doc/use-count/doc
Template:Infobox/p2 8301 8,300 Template:Infobox/p2/doc/use-count/doc
Template:Infobox_table 8301 8,300 Template:Infobox_table/doc/use-count/doc
Template:Infobox 8300 8,300 Template:Infobox/doc/use-count/doc
Template:Infobox/p1 8300 8,300 Template:Infobox/p1/doc/use-count/doc
Template:Infobox/select 8278 8,250 Template:Infobox/select/doc/use-count/doc
Template:Image_source 6738 6,700 Template:Image_source/doc/use-count/doc
Template:Commentary/LQT 6312 6,300 Template:Commentary/LQT/doc/use-count/doc
Template:Datecategory 5478 5,450 Template:Datecategory/doc/use-count/doc
Template:Wikinews 4602 4,600 Template:Wikinews/doc/use-count/doc
Template:Imbox 3950 3,900 Template:Imbox/doc/use-count/doc
Template:Commentary 3603 3,600 Template:Commentary/doc/use-count/doc
Template:DateDPL 2992 2,950 Template:DateDPL/doc/use-count/doc

The bot would, at a set duration, go and update each counter template with the current transclusions, to keep them (relatively) up to date. The bot will only edit pre-existing templates. Let me know if there are any questions. Thanks, --DannyS712 (talk) 21:37, 13 October 2019 (UTC)

Comments[edit]

  • Comment This doesn't seem needed. I of course have long freely admitted I'm unfond of bots. So I'm left with vaguely negative feelings but, atm, not strong enough to actively oppose. --Pi zero (talk) 22:11, 13 October 2019 (UTC)

Votes[edit]

InternetArchiveBot (talk · contribs)[edit]

Comments[edit]

Task 1[edit]

We needed IABot to take care of two different tasks. Upon careful discussion, it was agreed to split the tasks, the prior being taking the snapshot of all the sources in archives (currently under progress, oversee by user:acagastya); and the other being taking snapshots of all the sources for new articles. Since the first task is under progress, let's focus the discussion on just the latter task.
•–• 20:34, 25 January 2021 (UTC)

Task 2[edit]

  • Comment @Harej: All the sources used in a mainspace article are expected to be listed in the url parameter of {{source}}. {{source}} also accepts archiveurl parameter. Could you configure IABot in such a way that it archives the sources from mainspace articles (which are NOT archived), from url and update archiveurl? @Pi zero: does this sound safe? I hope I am not overlooking something, please let me know if I am.
    •–• 20:41, 25 January 2021 (UTC)
I have configured the bot to recognize the "archiveurl" parameter. Harej (talk) 20:50, 25 January 2021 (UTC)
  • Comment Seems to me one ought to wait until publication-plus-24-hours before archiving sources. Other than that, I have no strong objection; the most technical harm that could possibly be done is quite limited. --Pi zero (talk) 21:05, 25 January 2021 (UTC)
  • Question @Harej: Does IABot have specific triggers (like working at the time of new page creation)? Or does it work in a said time-interval? Re what @Pi zero: has added Harej, I think IABot can just check, if(wikitext.categories.includes('Published')) { run(); }. Will that work? Additionally, can you control which snapshot instance will be added to archive URL? The snapshot with timestamp closest after category:published was added will be ideal.
    •–• 07:17, 26 January 2021 (UTC)
(Yeah, published will likely do, which would admittedly be much easier.) --Pi zero (talk) 17:45, 26 January 2021 (UTC)
Acagastya, IABot does not have triggers. However, the bot will use the archive corresponding to the stated access time in the citation, or the closest one to when the URL was added. Harej (talk) 17:20, 1 February 2021 (UTC)
  • Question @Harej: Would IABot be able to fill in all three parameters on {{source}} for pages with deadlinks? Namely also, brokenURL and archivedescription when links are being recovered? —chaetodipus (talk · contribs) 04:46, 29 July 2021 (UTC)

Votes[edit]

Support given the limitations of the bot (the way it was designed, to serve a specific purpose), I think it is achieves a part of the task, and I am okay with the compromise.
•–• 17:34, 1 February 2021 (UTC)

And thinking about it, if the bot does not edit semi-protected pages, we won't royally screw up. :D
•–• 17:36, 1 February 2021 (UTC)