(replaceedit.py) |
No edit summary |
||
Line 1: | Line 1: | ||
cat to topic move: | |||
Find | |||
# | #REDIRECT [[:Category | ||
python replaceedit.py -regex "(?si)#REDIRECT\s*\[\[:Category" "See also: [[Category" -log -xml:currentdump.xml | |||
Appropedia:Ruleset <<< | |||
- #redirect [[:Category:Appropedia policy]] | |||
- | List of Projects <<< | ||
- #redirect [[:Category:Projects]] | |||
List of topics <<< | |||
- #REDIRECT [[:Category:Topics]] | |||
Adobe <<< | |||
- #REDIRECT [[:Category:Adobe]] | |||
Photovoltaics <<< | |||
- #REDIRECT [[:Category:Photovoltaics]] | |||
Parras Solar Hot Water <<< | |||
- #REDIRECT [[:Category:Parras Solar Hot Water]] | |||
Appropedia maintenance <<< | |||
- #redirect [[:Category:Appropedia maintenance]] | |||
Information and communication technology <<< | |||
- #redirect [[:Category:Information technology]] | |||
Parras <<< | |||
- #redirect [[:Category:Parras]] | |||
How to <<< | |||
- #redirect [[:Category:How tos]] | |||
CCAT <<< | |||
- #redirect [[:Category:CCAT]] | |||
Engineers Without Borders <<< | |||
- #redirect [[:Category:Engineers Without Borders]] | |||
Ewb nsw <<< | |||
- #redirect [[:Category:EWB NSW]] | |||
EWB Australia <<< | |||
- #redirect [[:Category:Engineers Without Borders Australia]] | |||
Solar cooker <<< | |||
- #redirect[[:Category:Solar cooking]] | |||
HSU <<< | |||
- #REDIRECT[[:Category:Humboldt State University]] | |||
Demotech, design for self-reliance <<< | |||
- #REDIRECT [[:Category:Demotech]] | |||
Public health <<< | |||
- #redirect[[:Category:Public health]] | |||
Internet resources <<< | |||
- #redirect[[:Category:Internet resources]] | |||
Online courses and materials <<< | |||
- #redirect [[:Category:Coursework]] | |||
Organizations <<< | |||
- #redirect[[:Category:Organizations]] | |||
Parras summer program <<< | |||
- #REDIRECT [[:Category:Parras]] | |||
Cook stove <<< | |||
- #redirect[[:Category:Cookers]] | |||
Campus Center for Appropriate Technology <<< | |||
- #REDIRECT [[:Category:CCAT]] | |||
Human-powered devices <<< | |||
- #redirect[[:Category:Human power]] | |||
Culture and development <<< | |||
- #redirect[[:Category:Culture and development]] | |||
Water conservation <<< | |||
- #redirect [[:Category:Water conservation]] | |||
Volunteering <<< | |||
- #REDIRECT [[:Category:International volunteer opportunities]] | |||
Work <<< | |||
- #REDIRECT [[:Category:Employment]] | |||
Gender <<< | |||
- #REDIRECT [[:Category:Gender]] | |||
Gender and development <<< | |||
- #redirect[[:Category:Gender and development]] | |||
Worm farming <<< | |||
- #redirect[[:Category:Vermiculture]] | |||
Solar <<< | |||
- #redirect[[:Category:Solar]] | |||
Electricity <<< | |||
- #REDIRECT[[:Category:Electricity]] | |||
Building <<< | |||
- #redirect[[:Category:Alternative building]] | |||
Community participation in development <<< | |||
- #redirect[[:Category:Community participation]] | |||
Recycle <<< | |||
- #redirect[[:Category:Recycling]] | |||
Urban planning <<< | |||
- #redirect[[:Category:Urban planning]] | |||
Cob oven <<< | |||
- #REDIRECT [[:Category:Earthen ovens]] | |||
Events <<< | |||
- #redirect[[:Category:Events]] | |||
Cobb <<< | |||
- #redirect[[:Category:Cobb]] | |||
Porting helper <<< | |||
- #redirect[[:Category:Porting helpers]] | |||
Transportation <<< | |||
- #redirect[[:Category:Transport]] | |||
Water quality <<< | |||
- #REDIRECT [[:Category:Water quality]] | |||
Climate change <<< | |||
- #redirect [[:Category:Climate change]] | |||
Learning from Poverty <<< | |||
- #REDIRECT [[:Category:Demotech/Learning_from_Poverty]] | |||
ICT <<< | |||
- #redirect [[:Category:Information technology]] | |||
Parras 2006 <<< | |||
- #REDIRECT [[:Category:Parras 2006]] | |||
Gasification <<< | |||
- #redirect[[:Category:Gasification]] | |||
Microfinance <<< | |||
- #REDIRECT [[:Category:Microfinance]] | |||
Mosquito <<< | |||
- #redirect[[:Category:Mosquito control]] | |||
Recycled (grey) water <<< | |||
- #redirect [[:Category:Water recycling]] | |||
Subsidies <<< | |||
- #redirect[[:Category:Subsidies and grants]] | |||
Livestock <<< | |||
- #REDIRECT [[:Category:Livestock]] | |||
Microcredit <<< | |||
- #REDIRECT [[:Category:Microfinance]] | |||
Biofuel <<< | |||
- #redirect [[:Category:Biofuel]] | |||
Water supply <<< | |||
- #redirect [[:Category:Water supply]] | |||
Public transport <<< | |||
- #redirect [[:Category:Public transport]] | |||
Compost toilets <<< | |||
- #redirect [[:Category:Composting toilets]] | |||
Desalination plants <<< | |||
- #redirect [[:Category:Desalination]] | |||
Water conservation strategies <<< | |||
- #redirect [[:Category:Water conservation]] | |||
Housing affordability <<< | |||
- #redirect[[:Category:Housing affordability]] | |||
Prefabricated building <<< | |||
- #redirect[[:Category:Prefabricated buildings]] | |||
Alternative energy <<< | |||
- #REDIRECT [[:Category:Energy]] | |||
Battery technology <<< | |||
- #redirect[[:Category:Batteries]] | |||
Butchering <<< | |||
- #REDIRECT [[:Category:Butchering]] | |||
Chickens <<< | |||
- #REDIRECT [[:Category:Chickens]] | |||
Clothing <<< | |||
- #redirect [[:Category:Clothing]] | |||
Cohousing <<< | |||
- #redirect[[:Category:Cohousing]] | |||
Compost <<< | |||
- #REDIRECT [[:Category:Composting]] | |||
Ducks <<< | |||
- #REDIRECT [[:Category:Ducks]] | |||
Ecovillage <<< | |||
- #redirect[[:CATEGORY: Ecovillages]] | |||
Laundry <<< | |||
- #REDIRECT [[:Category:Laundry]] | |||
Septic tank <<< | |||
- #redirect[[:Category:Septic tanks]] | |||
Sheep <<< | |||
- #REDIRECT [[:Category:Sheep]] | |||
Solar distillation <<< | |||
- #REDIRECT [[:Category:Solar distillation]] | |||
Vegan <<< | |||
- #redirect[[:Category:Vegetarianism and veganism]] | |||
Waste <<< | |||
- #REDIRECT [[:Category:Waste management]] | |||
Wind power <<< | |||
- #REDIRECT [[:Category:Wind power]] | |||
Ethanol <<< | |||
- #REDIRECT [[:Category:Alcohol fuels]] | |||
Batteries <<< | |||
- #redirect[[:Category:Batteries]] | |||
Cities <<< | |||
- #redirect[[:Category:Built environment]] | |||
Microhydro <<< | |||
- #REDIRECT [[:Category:Microhydro]] | |||
Strawbale <<< | |||
- #REDIRECT [[:Category:Strawbale]] | |||
Pedal power <<< | |||
- #REDIRECT [[:Category:Pedal power]] | |||
Dam <<< | |||
- #redirect[[:Category:Dams]] | |||
Greenhouse <<< | |||
- #REDIRECT [[:Category:Greenhouses]] | |||
Suggested projects <<< | |||
- #redirect[[:Category:Suggested projects]] | |||
Ecovillages <<< | |||
- #redirect[[:CATEGORY: Ecovillages]] | |||
Prizes and competitions <<< | |||
- #redirect[[:Category:Prizes and competitions]] | |||
Community participation <<< | |||
- #redirect[[:Category:Community participation ]] | |||
Cycling <<< | |||
- #REDIRECT [[:Category:Cycling]] | |||
Foreign aid <<< | |||
- #redirect[[:Category:Official development assistance]] | |||
Household Cyclopedia <<< | |||
- #REDIRECT [[:Category:Household Cyclopedia]] | |||
Mosquito control <<< | |||
- #redirect[[:Category:Mosquito control]] | |||
Funding organization <<< | |||
- #redirect[[:Category:Funding organizations]] | |||
Septic tanks <<< | |||
- #redirect[[:Category:Septic tanks]] | |||
Wheelchairs <<< | |||
- #redirect[[:Category:Wheelchairs]] | |||
Community <<< | |||
- #redirect[[:Category:Community]] | |||
Sun Frost <<< | |||
- #REDIRECT[[:Category:Sun Frost]] | |||
Lighting <<< | |||
- #redirect[[:Category:Lighting]] | |||
Light <<< | |||
- #redirect[[:Category:Electric lighting]] | |||
Education <<< | |||
- #redirect[[:Category:Education]] | |||
Air conditioning <<< | |||
- #redirect[[:Category:Air conditioning]] | |||
Bottled water <<< | |||
- #redirect[[:Category:Bottled water]] | |||
Air-conditioning <<< | |||
- #redirect[[:Category:Air conditioning]] | |||
Improved stove <<< | |||
- #redirect[[:Category:Improved cook stoves]] | |||
Engineers Without Borders UK <<< | |||
- #REDIRECT [[:Category:Engineers Without Borders UK]] | |||
Renewable energy <<< | |||
- #redirect[[:Category:Renewable energy]] | |||
Aquaculture <<< | |||
- #REDIRECT [[:Category:Aquaculture]] | |||
Village Earth <<< | |||
- #REDIRECT [[:Category:Village Earth]] | |||
Agriculture <<< | |||
- #redirect[[:Category:Agriculture]] | |||
Construction and materials <<< | |||
- #redirect[[:Category:Construction and materials]] | |||
Agricultural subsidy <<< | |||
- #redirect[[:Category:Agricultural subsidies]] | |||
Energy efficiency <<< | |||
- #REDIRECT [[:Category:Energy efficiency]] | |||
Pest control <<< | |||
- #REDIRECT [[:Category:Pest control]] | |||
[[:Category:]] | |||
[[:Category:]] | |||
- | ?? | ||
Pages needing attention <<< | |||
- #redirect[[:Category:Pages needing attention]] | |||
Sp <<< | |||
- #redirect[[:Category:Suggested projects]] | |||
Hexayurt Project <<< | |||
- #REDIRECT [[:Category:Hexayurt project]] | |||
add {{topic | |||
|Chriswaterguy/test}} in xml | |||
...then use list to add {{cat header | |||
add introductory sentence (take from Chriswaterguy/test)}} | |||
Many locations such as Guatemala... | |||
Indonesia <<< | |||
- #redirect [[:Category:Indonesia]] | |||
India <<< | |||
- #redirect[[:Category:India]] | |||
Bangladesh <<< | |||
- #redirect[[:Category:Bangladesh]] | |||
USA <<< | |||
- #redirect[[:Category:USA]] | |||
Australia <<< | |||
- #REDIRECT[[:Category:Australia]] | |||
Guatemala <<< | |||
- #redirect [[:Category:Guatemala]] | |||
Category:Humboldt County, California | |||
Mexico <<< | |||
- #redirect[[:Category:Mexico]] | |||
Turkmenistan <<< | |||
- #redirect[[:Category:Turkmenistan]] | |||
Australia <<< | |||
- #REDIRECT[[:Category:Australia]] | |||
Bolivia <<< | |||
- #redirect[[:Category:Bolivia]] | |||
Food and drink <<< | |||
- #redirect[[:Category:Food and agriculture]] | |||
Energy <<< | |||
- #REDIRECT [[:Category:Energy]] | |||
(then broke...) | |||
Should [[Category:Parras]] (at least most of the pages) be moved to [[Category:Parras summer program]] to allow for pages related to the location but not the program? | |||
Parras | |||
[[:Category:Porting helpers]] | |||
For each (& for portals) check & change the redirects: | |||
""" | python replaceedit.py -regex "(?si)#REDIRECT\s*\[\[:Category:\s*Foo" "#REDIRECT [[Foo" -log -namespace:0 -xml:currentdump.xml | ||
move: | |||
Revision as of 17:45, 8 June 2010
cat to topic move:
Find
- REDIRECT [[:Category
python replaceedit.py -regex "(?si)#REDIRECT\s*\[\[:Category" "See also: [[Category" -log -xml:currentdump.xml
Appropedia:Ruleset <<< - #redirect Category:Appropedia policy
List of Projects <<< - #redirect Category:Projects
List of topics <<<
- #REDIRECT Category:Topics Adobe <<< - #REDIRECT Category:Adobe
Photovoltaics <<<
- #REDIRECT Category:Photovoltaics Parras Solar Hot Water <<< - #REDIRECT Category:Parras Solar Hot Water Appropedia maintenance <<< - #redirect Category:Appropedia maintenance
Information and communication technology <<<
- #redirect Category:Information technology Parras <<< - #redirect Category:Parras
How to <<<
- #redirect Category:How tos CCAT <<< - #redirect Category:CCAT Engineers Without Borders <<< - #redirect Category:Engineers Without Borders
Ewb nsw <<<
- #redirect Category:EWB NSW
EWB Australia <<<
- #redirect Category:Engineers Without Borders Australia Solar cooker <<< - #redirectCategory:Solar cooking
HSU <<<
- #REDIRECTCategory:Humboldt State University Demotech, design for self-reliance <<< - #REDIRECT Category:Demotech
Public health <<<
- #redirectCategory:Public health Internet resources <<< - #redirectCategory:Internet resources Online courses and materials <<< - #redirect Category:Coursework Organizations <<< - #redirectCategory:Organizations
Parras summer program <<<
- #REDIRECT Category:Parras Cook stove <<< - #redirectCategory:Cookers Campus Center for Appropriate Technology <<< - #REDIRECT Category:CCAT Human-powered devices <<< - #redirectCategory:Human power Culture and development <<< - #redirectCategory:Culture and development
Water conservation <<<
- #redirect Category:Water conservation Volunteering <<< - #REDIRECT Category:International volunteer opportunities
Work <<<
- #REDIRECT Category:Employment Gender <<< - #REDIRECT Category:Gender Gender and development <<< - #redirectCategory:Gender and development Worm farming <<< - #redirectCategory:Vermiculture Solar <<< - #redirectCategory:Solar
Electricity <<<
- #REDIRECTCategory:Electricity
Building <<<
- #redirectCategory:Alternative building Community participation in development <<< - #redirectCategory:Community participation
Recycle <<<
- #redirectCategory:Recycling Urban planning <<< - #redirectCategory:Urban planning Cob oven <<< - #REDIRECT Category:Earthen ovens Events <<< - #redirectCategory:Events
Cobb <<<
- #redirectCategory:Cobb Porting helper <<< - #redirectCategory:Porting helpers
Transportation <<<
- #redirectCategory:Transport
Water quality <<<
- #REDIRECT Category:Water quality Climate change <<< - #redirect Category:Climate change
Learning from Poverty <<<
- #REDIRECT Category:Demotech/Learning_from_Poverty ICT <<< - #redirect Category:Information technology
Parras 2006 <<<
- #REDIRECT Category:Parras 2006
Gasification <<<
- #redirectCategory:Gasification Microfinance <<< - #REDIRECT Category:Microfinance Mosquito <<< - #redirectCategory:Mosquito control Recycled (grey) water <<< - #redirect Category:Water recycling Subsidies <<< - #redirectCategory:Subsidies and grants
Livestock <<<
- #REDIRECT Category:Livestock
Microcredit <<<
- #REDIRECT Category:Microfinance Biofuel <<< - #redirect Category:Biofuel Water supply <<< - #redirect Category:Water supply
Public transport <<<
- #redirect Category:Public transport Compost toilets <<< - #redirect Category:Composting toilets
Desalination plants <<<
- #redirect Category:Desalination
Water conservation strategies <<<
- #redirect Category:Water conservation Housing affordability <<< - #redirectCategory:Housing affordability Prefabricated building <<< - #redirectCategory:Prefabricated buildings Alternative energy <<< - #REDIRECT Category:Energy Battery technology <<< - #redirectCategory:Batteries Butchering <<< - #REDIRECT Category:Butchering Chickens <<< - #REDIRECT Category:Chickens Clothing <<< - #redirect Category:Clothing Cohousing <<< - #redirectCategory:Cohousing Compost <<< - #REDIRECT Category:Composting
Ducks <<<
- #REDIRECT Category:Ducks Ecovillage <<< - #redirectCATEGORY: Ecovillages
Laundry <<<
- #REDIRECT Category:Laundry Septic tank <<< - #redirectCategory:Septic tanks Sheep <<< - #REDIRECT Category:Sheep Solar distillation <<< - #REDIRECT Category:Solar distillation Vegan <<< - #redirectCategory:Vegetarianism and veganism
Waste <<<
- #REDIRECT Category:Waste management Wind power <<< - #REDIRECT Category:Wind power Ethanol <<< - #REDIRECT Category:Alcohol fuels Batteries <<< - #redirectCategory:Batteries Cities <<< - #redirectCategory:Built environment
Microhydro <<<
- #REDIRECT Category:Microhydro Strawbale <<< - #REDIRECT Category:Strawbale Pedal power <<< - #REDIRECT Category:Pedal power Dam <<< - #redirectCategory:Dams
Greenhouse <<<
- #REDIRECT Category:Greenhouses Suggested projects <<< - #redirectCategory:Suggested projects Ecovillages <<< - #redirectCATEGORY: Ecovillages Prizes and competitions <<< - #redirectCategory:Prizes and competitions Community participation <<< - #redirectCategory:Community participation Cycling <<< - #REDIRECT Category:Cycling Foreign aid <<< - #redirectCategory:Official development assistance Household Cyclopedia <<< - #REDIRECT Category:Household Cyclopedia
Mosquito control <<<
- #redirectCategory:Mosquito control Funding organization <<< - #redirectCategory:Funding organizations Septic tanks <<< - #redirectCategory:Septic tanks
Wheelchairs <<<
- #redirectCategory:Wheelchairs
Community <<<
- #redirectCategory:Community Sun Frost <<< - #REDIRECTCategory:Sun Frost Lighting <<< - #redirectCategory:Lighting Light <<< - #redirectCategory:Electric lighting
Education <<<
- #redirectCategory:Education Air conditioning <<< - #redirectCategory:Air conditioning Bottled water <<< - #redirectCategory:Bottled water Air-conditioning <<< - #redirectCategory:Air conditioning
Improved stove <<<
- #redirectCategory:Improved cook stoves Engineers Without Borders UK <<< - #REDIRECT Category:Engineers Without Borders UK Renewable energy <<< - #redirectCategory:Renewable energy Aquaculture <<< - #REDIRECT Category:Aquaculture Village Earth <<< - #REDIRECT Category:Village Earth Agriculture <<< - #redirectCategory:Agriculture Construction and materials <<< - #redirectCategory:Construction and materials Agricultural subsidy <<< - #redirectCategory:Agricultural subsidies Energy efficiency <<< - #REDIRECT Category:Energy efficiency Pest control <<< - #REDIRECT Category:Pest control
[[:Category:]] [[:Category:]]
?? Pages needing attention <<< - #redirectCategory:Pages needing attention Sp <<< - #redirectCategory:Suggested projects Hexayurt Project <<< - #REDIRECT Category:Hexayurt project
add Template:Topic in xml
...then use list to add {{cat header add introductory sentence (take from Chriswaterguy/test)}}
Many locations such as Guatemala... Indonesia <<< - #redirect Category:Indonesia India <<< - #redirectCategory:India Bangladesh <<< - #redirectCategory:Bangladesh USA <<< - #redirectCategory:USA
Australia <<<
- #REDIRECTCategory:Australia Guatemala <<< - #redirect Category:Guatemala Category:Humboldt County, California Mexico <<< - #redirectCategory:Mexico Turkmenistan <<< - #redirectCategory:Turkmenistan Australia <<< - #REDIRECTCategory:Australia Bolivia <<< - #redirectCategory:Bolivia Food and drink <<< - #redirectCategory:Food and agriculture
Energy <<<
- #REDIRECT Category:Energy
(then broke...)
Should (at least most of the pages) be moved to to allow for pages related to the location but not the program?
Parras
For each (& for portals) check & change the redirects: python replaceedit.py -regex "(?si)#REDIRECT\s*\[\[:Category:\s*Foo" "#REDIRECT [[Foo" -log -namespace:0 -xml:currentdump.xml
move: