Wikinews:Bots

From Wikinews, the free news source you can write!
(Redirected from Wikinews:BOT)
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:

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]


SciurusBot (talk · contribs)[edit]

Comments[edit]

The script in question has documentation here. The script is semi-automated, requiring user confirmation for each page. The bot flag is largely requested to prevent flooding Special:RecentChanges with a large number of edits. —mikemoral (talk · contribs) 08:06, 10 October 2019 (UTC)

Votes[edit]

  • Support from a technical perspective, support moving the category, oppose flagging the bot until consensus is established that the category should be renamed. --DannyS712 (talk) 08:57, 10 October 2019 (UTC)

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]