Jump to content

Wikipedia:Bots/Requests for approval/InterwikiConversionBot

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by CO (talk | contribs) at 01:42, 7 August 2007 (Discussion). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Operator: TheFearow

Automatic or Manually Assisted: Automatic

Programming Language(s): Java

Function Summary: Replaces basic external links to sites that are available via interwiki to interwiki links

Edit period(s) (e.g. Continuous, daily, one time run): Most likely weekly

Edit rate requested: 8 edits per minute

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

Function Details:

Converts external links to sites like meta, mediawiki.org, commons, etc to interwiki links. It will also convert links to things like google, which can be searched using an interwiki prefix, as can many other sites. It ignores any URL with more than the basic params (for other wikis, ?title=, and on google, q=query, and similair on other wikis.).

Discussion

This code is not complete, but I am putting forward a BRFA as it does not appear to be anything complex, and shouldn't be too hard to code. There are 437 links to google on just one style of URL. Meta has over 1000 (including complex params, but its still a lot, as most are basic ones that can be converted), and likely more than 5000. Matt/TheFearow (Talk) (Contribs) (Bot) 23:22, 6 August 2007 (UTC)[reply]

How will you replace the link? Regexes? ~ Wikihermit 01:19, 7 August 2007 (UTC)[reply]
After thinking about it, regexes are probably the best idea. I assume picking up something (nuymbers are what I would keep across the two links) similair to [http://(www.|)google.com/?q=1 2] and replacing it with [[google:1|2]] would work well, and shouldnt be too hard to make. Matt/TheFearow (Talk) (Contribs) (Bot) 01:36, 7 August 2007 (UTC)[reply]
You can interwiki to Google? Wow. You do learn something new every day. — Coren (talk) 01:39, 7 August 2007 (UTC)[reply]
I'd skip user_talk pages so everyone doesn't get the new message bar, unless it's a subpage of the talk page like an archive. ~ Wikihermit 01:42, 7 August 2007 (UTC)[reply]