# namespaces to dump
d 0,1,2,3,4,5,6,7

# select criteria, is added to WHERE clause to determine what pages to dump
# can have multiple of these
#s page_title NOT LIKE "Prefix"
#s page_title LIKE "Main Page"
#s page_title LIKE "Sandbox%"

# reassign edits from olduser to newuser with userid 42
u olduser => 42,newuser
u Austin => 17,Austin_J._Che

# general rewriting rules, only applies to article text
# are applied after the namespace rules

* @http://model\.mit\.edu/igem/images/@ => http://openwetware.org/images/
* @http://model\.mit\.edu/igem/index\.php\?title=Image:@ => http://openwetware.org/index.php?title=Image:
* @http://model\.mit\.edu/igem/index\.php\?title=@ => http://openwetware.org/index.php?title=IGEM:MIT/2005/

#### Page title rewriting rules (done by namespace)
# the first matching pattern is used under each namespace group

# Main 
0,1
  @Main_Page@ => Prefix
  @^(.*)$@ => Prefix/$1

# User
# move pages under user namespace to main namespace and prefix it with something
2=>0,3=>1
  @^(.*)$@ => Prefix/User:$1

# wiki specific
4=>0,5=>1
  @^(.*)$@ => Prefix/$1

# Images
# also find all images and do mass rename 'find images/[0-9a-f] -type -f -exec cp \{\} /tmp/somewhere \;'
# then do mass upload
6,7
  @^(.*)$@ => Prefix_$1

# MediaWiki
8,9

# Template
10,11

# Help
12,13

# Category
14,15

# Special namespace, do nothing
-1

# no pages exist in Media namespace but rewrite links
-2
  @^(.*)$@ => Prefix_$1
