From Wikipedia, the free encyclopedia
Jump to: navigation, search

This page is for AWB'ers who can't find anything to put it to use on, or who would like to help others with this powerful tool.

Below are tasks for which a page-autoloader with various capabilities would be especially useful. That is, the people posting these tasks need the help of AWB'ers! If you have AWB, please lend a hand. Note that Linky may also be useful for completing the tasks on this list (see Wikipedia:OTS#Tabs_and_tabbing).

See also Wikipedia:WikiProject Check Wikipedia.

How to fix a massive amount of wikilinks?[edit]

I recently moved Dosh to Dosh (musician) because the move request I made was accepted. Now there are about 110 incoming links to Dosh that should be fixed to Dosh (musician). Can AutoWikiBrowser do this? JIP | Talk 19:57, 28 January 2015 (UTC)

Yes check.svg Done, I hope; all except for the strange link in Rupali Ganguly. -- John of Reading (talk) 21:47, 28 January 2015 (UTC)

Identifying the line "titlestyle"[edit]

I want to identify all lines that start with "| titlestyle". and have created some code to do that:

  • ^(*(\s)\|*(\s)title*(\d{1})style)

There might be spaces before or after the vertical line, and a number may be present between title and style. Will the above example work as intended? This is my first attempt @ regex so I'd like your feedback. --Tom (LT) (talk) 10:04, 6 February 2015 (UTC)

@LT910001: The "zero or more" asterisk must follow the element that it modifies; and to match an optional digit, \d? is neater than \d{0,1}. Something like ^\s*\|\s*title\d?style will be closer to what you want. I've had trouble using ^ and $ for start/end of line in AWB, so if you're planning to use this in AWB, you may find a match for \n works better. -- John of Reading (talk) 10:23, 6 February 2015 (UTC)

Cull outdated templates[edit]

Hi, I've been looking at ways of tackling the thousands of articles templated into Category:Wikipedia requested photographs in the United Kingdom. In many cases we do have images available from commons, but for a large minority of the articles the template is already out of date as someone has put an image in the article but not removed the template from the talkpage. Is there an AWB fan who fancies taking this on? ϢereSpielChequers 10:36, 8 February 2015 (UTC)

@WereSpielChequers: Sounds interesting. Could you please provide an example? Thanks! GoingBatty (talk) 17:45, 8 February 2015 (UTC)
Sure. I did the subcategory Category:Wikipedia requested photographs in Wiltshire earlier today and one example was Heytesbury which had an image in the article, so I removed the template from the talkpage. If the ones which now have images had the template removed it would be much easier to go through the rest and search for photos on commons. ϢereSpielChequers 23:09, 8 February 2015 (UTC)
@WereSpielChequers: So one approach would be that if the article contains <code>[[File:....]]</code> (but not inside a comment), then {{Image requested}} could be removed from the talk page. But how would we know that the File link was not a redlink without viewing each article? GoingBatty (talk) 04:26, 9 February 2015 (UTC)
Yes the articles would need to be looked at, hence I was thinking AWB rather than a bot. ϢereSpielChequers 09:21, 9 February 2015 (UTC)
@WereSpielChequers: Sorry, I was thinking about a bot running AWB, not humans running AWB. Here's one approach people could take using AWB:
1. Create a list of pages in Category:Wikipedia requested photographs in the United Kingdom (or a given subcategory).
2. Convert the list from talk pages to articles.
3. On the Skip tab, set it up to skip if the article doesn't contain [[File: and click Start.
4. For every article that isn't skipped:
  • If the article doesn't any images (or doesn't have adequate images), click Skip.
  • If the article has enough images, click on the next article in the list and click Start.
5. When you've completed the list, convert the list back to talk pages.
6. Remove the skip condition, and set up find/replace rules (with the Regex button checked) to:
  • Find: {{Image requested.*?}}\n? and Replace it with nothing.
  • Find: \|\s*(?:needs-photo|needs-image|image-needed)\s*=\s*y and Replace it with nothing.
I'm not going to take this on, because I don't want to decide how many images are needed to remove the tag. For example, if an article has a crest or a road sign, is that enough, or do you need an actual photograph, or multiple photographs? Hope this helps! GoingBatty (talk) 03:18, 10 February 2015 (UTC)

Template substitutions[edit]

  1. Please could somebody Subst: all ~160 transclusions of {{Old prod}}, which is to be merged with {{Old prod full}}, for which I have just made it a wrapper. See example substitution.
  2. Per TfD, please Subst: all 148 transclusions of {{Infobox Greek Isles}}
  3. Per TfD, please Subst: all 34 transclusions of {{Infobox Province GR}}
  4. Per TfD, please Subst: all 36 transclusions of {{Infobox ministerial office}} - note: safesubst:, or subsequent cleanup, is needed.
  5. Per TfD, please Subst: all 26 transclusions of {{Infobox RHI Team}}

Please ping me once any one or more of these are done. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 19:37, 22 February 2015 (UTC)

@Pigsonthewing: Is TfD in need of a bot that would do this on a regular basis? GoingBatty (talk) 03:21, 23 February 2015 (UTC)
@GoingBatty: Occasionally rather than regularly. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 22:48, 27 February 2015 (UTC)
I substituted one instance (on the page Naxos) of the Greek Isles infobox, but I want to be sure I did it right before going further. The concern I have is that the formatnum magic word and Template:If are both present in the article itself. I don't know if that's intended, or did I maybe do something wrong? – Majora4 (leave a message) 20:51, 25 February 2015 (UTC)
I've fixed it in the sandbox. Thanks for the catch. Alakzi (talk) 21:05, 27 February 2015 (UTC)