These are the "find and replace" regular expressions I use with AutoWikiBrowser when I go through articles about albums. If you have any comments regarding my AWB-assisted edits or suggestions on how to improve these settings please post them on the talk page. Here is the settings.xml file I use. Feel free to use these settings and edit this page. Jogers (talk) 22:25, 18 June 2006 (UTC)

Reviews

edit
FindReplace with
''\[\[All Music Guide\]\]'' [[All Music Guide]]
''\[\[All Music Guide\|AMG\]\]'' [[All Music Guide]]
''\[\[All Music Guide\|Allmusic.com\]\]'' [[All Music Guide]]
''\[\[Allmusic.com\]\]'' [[All Music Guide]]
\[\[All Music Guide\|AMG\]\] [[All Music Guide]]
''\[\[Pitchfork Media\]\]'' [[Pitchfork Media]]
''\[\[Pitchfork Media\|Pitchfork\]\]'' [[Pitchfork Media|Pitchfork]]
''\[\[Robert Christgau\]\]'' [[Robert Christgau]]
''\[\[ARTISTdirect\]\]'' [[ARTISTdirect]]
FindReplace with
( |\* ?)\[\[Rolling Stone\]\] $1'''[[Rolling Stone]]''
( |\* ?)\[\[Rolling Stone (M|m)agazine\]\] $1'''[[Rolling Stone]]''
( |\* ?)\[\[PopMatters\]\] $1'''[[PopMatters]]''
( |\* ?)\[\[NME\]\] $1'''[[NME]]''
( |\* ?)\[\[New Musical Express\]\] $1'''[[New Musical Express]]''
( |\* ?)\[\[NME\|New Musical Express\]\] $1'''[[NME|New Musical Express]]''
( |\* ?)\[\[Q magazine\]\] $1'''[[Q magazine]]''
( |\* ?)\[\[Q magazine\|Q\]\] $1'''[[Q magazine|Q]]''
( |\* ?)\[\[Alternative Press (music magazine)\|Alternative Press\]\] $1'''[[Alternative Press (music magazine)|Alternative Press]]''
  • Hiding the professional reviews section of the infobox in case there are no reviews listed, removing the unnecessary "<nowiki></nowiki>".
FindReplace with
Reviews( *)=( *)<nowiki></nowiki>Reviews$1=
Reviews( *)=( *)('')?(N|n)/(A|a)('')?Reviews$1=
Reviews( *)=( *)('')?(n|N)one('')?Reviews$1=
Reviews *=\s*\* *\r\nReviews = \r\n
Reviews( *)=( *)\??\??\??Reviews$1=
FindReplace with
\*? ?('')?\[\[Rate Your Music.*?link\]

Track listing

edit
  • Standardizing the "Track listing".
FindReplace with
== *Track Listings? *== == Track listing ==
== *(T|t)racklistings? *== == Track listing ==
== *(T|t)rack ?(L|l)ist *== == Track listing ==
== *(T|t)rack listings *== == Track listing ==
== *Tracks *== == Track listing ==
== *Songs *== == Track listing ==
  • Formatting, changing hyphens to en dashes.
e.g. "track1" (mm:ss) → "track1" – mm:ss
FindReplace with
- ('')?[\(\[]([0-9])?([0-9])?:([0-9])([0-9])[\)\]]('')?– $2$3:$4$5
[\(\[]([0-9])?([0-9])?:([0-9])([0-9])[\)\]]– $1$2:$3$4
-( *)([1-9])?([0-9])?:([0-9])([0-9])– $2$3:$4$5

Type field

edit
idFindReplace with
1Type *= *(\[\[Live album\|)?(L|l)ive(\]\])? \[\[(A|a)lbum ?(\(music\)\|(A|a)lbum)?\]\]Type = [[Live album]]
2Type *= *(\[\[Compilation album\|)?(C|c)ompilation(\]\])? \[\[(A|a)lbum ?(\(music\)\|(A|a)lbum)?\]\]Type = [[Compilation album]]
3Type *= *\[\[(V|v)inyl (R|r)ecord\|(LP|(V|v)inyl)\]\] Type = [[Album]]
4Type *= *\[\[(G|g)ramophone (R|r)ecord\|(LP|(V|v)inyl)\]\] Type = [[Album]]
5Type *= *\[\[LP \(format\)\|(LP|(V|v)inyl)\]\]Type = [[Album]]
6Type *= *\[\[(C|c)ompact (audio )?(D|d)isc\|CD\]\] Type = [[Album]]
7Type *= *\[\[(C|c)ompact (C|c)assette\|MC\]\] Type = [[Album]]
8Type *= *(\[\[)?CD(\]\])?Type = [[Album]]
9Type *= *(\[\[)?LP(\]\])?Type = [[Album]]
10Type *= *(\[\[)?MC(\]\])?Type = [[Album]]
11Type *= *AlbumType = [[Album]]

Chronology section

edit
FindReplace with
(Last|Next) album( *)=( *)('')?(N|n)(/|\.)(A|a)\.?('')?( *)(<br ?/?>)?$1 album$2=
(Last|Next) album( *)=( *)('')?(n|N)one('')?( *)(<br ?/?>)?$1 album$2=
(Last|Next) album( *)=( *)\??\??\??$1 album$2=

Dates

edit
  • 1: Removing links to years from the chronology section.
  • 2: Allowing the date preference to work.
e.g. November 23, 1999November 23, 1999
idFindReplace with
1(Last|This|Next) album( *)=(.*)\(\[\[(1|2)(0|9)([0-9])([0-9])\]\]\)$1 album$2=$3($4$5$6$7)
2\[\[(January|February|March|April|May|June|July|August|September|October|November|December) ([1-9])?([0-9])\]\],? \[\[(1|2)(0|9)([0-9])([0-9]) in music\|(1|2)(0|9)([0-9])([0-9])\]\][[$1 $2$3]], [[$4$5$6$7]]
3\[\[(1|2)(0|9)([0-9])([0-9]) in music\|(1|2)(0|9)([0-9])([0-9])\]\]$1$2$3$4

Miscellaneous

edit
  • 1 – 2: Converting html lists to wikitext.
  • 3: Lowercasing the word "link" in the links to prefessional reviews.
  • 4 – 5: Updating the [[Album (music)|Album]] links.
  • 6: Template redirect evasion.
  • 7: Unicoding en dashes.
idFindReplace with
1<ul>|</ul>|</li>
2<li> *
3Link\] link]
4\[\[(A|a)lbum (music)\|Album\]\][[Album]]
5\[\[(A|a)lbum (music)\|album\]\][[album]]
6Album infoboxInfobox Album
7&ndash;
  • Converting to mm:ss standard of adding album length.
FindReplace with
\ ((\[\[(M|m)inutes?\|(mins?|m)\]\])|(\[\[((M|m)inutes?|mins?|m)\]\])|(((M|m)inutes?|mins?|m)))\,?\ ([0-9]{2}|\?\??)\ ?(\[\[(S|s)econds?\|(secs?|s)\]\]|\[\[((S|s)econds?|secs?|s)\]\]|((S|s)econds?|secs?|s)):$11
  • Lining up the infobox and moving pipe characters ("|") before fields' names.