Get our free book (in Spanish or English) on rainwater now - To Catch the Rain.

Difference between revisions of "User:Chriswaterguy/Wikignome/moving category page content with history - process"

From Appropedia
Jump to: navigation, search
(Editing:: fix {{subst:PAGENAME}})
 
(32 intermediate revisions by the same user not shown)
Line 1: Line 1:
<nowiki>Find
+
== Please add here ==
#REDIRECT [[:Category</nowiki>
+
  
python replaceedit.py -regex "(?si)#REDIRECT\s*\[\[:Category" "See also: [[Category" -log -xml:currentdump.xml
+
If you find a category page with content that needs to be moved, please add it below. I'll assume it's being moved to a mainspace article of the same name, unless you say otherwise.
  
[[:Category:Wind Energy]] - try [[Windmills]]
+
* [[:Category:Open source hardware]]
  
Appropedia:Ruleset <<<
+
=== Just move to mainspace ===
-->  [[:Category:Appropedia policy]] - try [[Appropedia policy]]
+
--
+
  
List of topics <<<
+
& use {{tl|cat header}} in its place:
-->  [[:Category:Topics]] - try [[Topics]]
+
* [[:Category:Water and sanitation for developing countries]]
  
Adobe <<<
 
-->  [[:Category:Adobe]] - try [[Adobe]]
 
  
Photovoltaics <<<
+
No category members:
-->  [[:Category:Photovoltaics]] - try [[Photovoltaics]]
+
* [[:Category:Service_Learning_Resources]]
 
+
* [[:Category:Demotech Search Demotech publications]]
 
+
* [[:Category:Making made easier]]
Appropedia maintenance <<<
+
* [[:Category:Demotech About]]
-->  [[:Category:Appropedia maintenance]] - try [[Appropedia maintenance]]
+
* [[:Category:Developers toolkit]] -> [[User:Jonbart/Developers toolkit]]
 
+
Information and communication technology <<<
+
-->  [[:Category:Information technology]] - try [[Information technology]]
+
 
+
 
+
How to <<<
+
-->  [[:Category:How tos]] - try [[How tos]]
+
 
+
 
+
Engineers Without Borders <<<
+
-->  [[:Category:Engineers Without Borders]] - try [[Engineers Without Borders]]
+
 
+
Ewb nsw <<<
+
-->  [[:Category:EWB NSW]] - try [[EWB NSW]]
+
 
+
EWB Australia <<<
+
-->  [[:Category:Engineers Without Borders Australia]] - try [[Engineers Without Borders Australia]]
+
 
+
Solar cooker <<<
+
--> [[:Category:Solar cooking]] - try [[Solar cooking]]
+
 
+
Demotech, design for self-reliance <<<
+
-->  [[:Category:Demotech]] - try [[Demotech]]
+
 
+
Public health <<<
+
--> [[:Category:Public health]] - try [[Public health]]
+
 
+
Internet resources <<<
+
--> [[:Category:Internet resources]] - try [[Internet resources]]
+
 
+
Online courses and materials <<<
+
-->  [[:Category:Coursework]] - try [[Coursework]]
+
 
+
Organizations <<<
+
--> [[:Category:Organizations]] - try [[Organizations]]
+
 
+
Cook stove <<<
+
--> [[:Category:Cookers]] - try [[Cookers]]
+
 
+
Human-powered devices <<<
+
--> [[:Category:Human power]] - try [[Human power]]
+
 
+
Culture and development <<<
+
--> [[:Category:Culture and development]] - try [[Culture and development]]
+
 
+
---
+
 
+
 
+
Water conservation <<<
+
-->  [[:Category:Water conservation]] - try [[Water conservation]]
+
 
+
Volunteering <<<
+
-->  [[:Category:International volunteer opportunities]] - try [[International volunteer opportunities]]
+
 
+
Work <<<
+
-->  [[:Category:Employment]] - try [[Employment]]
+
 
+
Gender <<<
+
-->  [[:Category:Gender]] - try [[Gender]]
+
 
+
Gender and development <<<
+
--> [[:Category:Gender and development]] - try [[Gender and development]]
+
 
+
Worm farming <<<
+
--> [[:Category:Vermiculture]] - try [[Vermiculture]]
+
 
+
Solar <<<
+
--> [[:Category:Solar]] - try [[Solar]]
+
 
+
Electricity <<<
+
--> [[:Category:Electricity]] - try [[Electricity]]
+
 
+
Building <<<
+
--> [[:Category:Alternative building]] - try [[Alternative building]]
+
 
+
Community participation in development <<<
+
--> [[:Category:Community participation]] - try [[Community participation]]
+
 
+
Recycle <<<
+
--> [[:Category:Recycling]] - try [[Recycling]]
+
 
+
Urban planning <<<
+
--> [[:Category:Urban planning]] - try [[Urban planning]]
+
 
+
Cob oven <<<
+
-->  [[:Category:Earthen ovens]] - try [[Earthen ovens]]
+
 
+
Events <<<
+
--> [[:Category:Events]] - try [[Events]]
+
 
+
Cobb <<<
+
--> [[:Category:Cobb]] - try [[Cobb]]
+
 
+
Porting helper <<<
+
--> [[:Category:Porting helpers]] - try [[Porting helpers]]
+
 
+
Transportation <<<
+
--> [[:Category:Transport]] - try [[Transport]]
+
 
+
Water quality <<<
+
-->  [[:Category:Water quality]] - try [[Water quality]]
+
 
+
Climate change <<<
+
-->  [[:Category:Climate change]] - try [[Climate change]]
+
 
+
Learning from Poverty <<<
+
-->  [[:Category:Demotech/Learning_from_Poverty]] - try [[Demotech/Learning_from_Poverty]]
+
 
+
ICT <<<
+
-->  [[:Category:Information technology]] - try [[Information technology]]
+
 
+
Gasification <<<
+
--> [[:Category:Gasification]] - try [[Gasification]]
+
 
+
Microfinance <<<
+
-->  [[:Category:Microfinance]] - try [[Microfinance]]
+
 
+
Mosquito <<<
+
--> [[:Category:Mosquito control]] - try [[Mosquito control]]
+
 
+
Recycled (grey) water <<<
+
-->  [[:Category:Water recycling]] - try [[Water recycling]]
+
 
+
Subsidies <<<
+
--> [[:Category:Subsidies and grants]] - try [[Subsidies and grants]]
+
 
+
Livestock <<<
+
-->  [[:Category:Livestock]] - try [[Livestock]]
+
 
+
Microcredit <<<
+
-->  [[:Category:Microfinance]] - try [[Microfinance]]
+
 
+
Biofuel <<<
+
-->  [[:Category:Biofuel]] - try [[Biofuel]]
+
 
+
Water supply <<<
+
-->  [[:Category:Water supply]] - try [[Water supply]]
+
 
+
Public transport <<<
+
-->  [[:Category:Public transport]] - try [[Public transport]]
+
 
+
Compost toilets <<<
+
-->  [[:Category:Composting toilets]] - try [[Composting toilets]]
+
 
+
Desalination plants <<<
+
-->  [[:Category:Desalination]] - try [[Desalination]]
+
 
+
Water conservation strategies <<<
+
-->  [[:Category:Water conservation]] - try [[Water conservation]]
+
 
+
Housing affordability <<<
+
--> [[:Category:Housing affordability]] - try [[Housing affordability]]
+
 
+
Prefabricated building <<<
+
--> [[:Category:Prefabricated buildings]] - try [[Prefabricated buildings]]
+
 
+
Alternative energy <<<
+
-->  [[:Category:Energy]] - try [[Energy]]
+
 
+
Battery technology <<<
+
--> [[:Category:Batteries]] - try [[Batteries]]
+
 
+
Butchering <<<
+
-->  [[:Category:Butchering]] - try [[Butchering]]
+
 
+
Chickens <<<
+
-->  [[:Category:Chickens]] - try [[Chickens]]
+
 
+
Clothing <<<
+
-->  [[:Category:Clothing]] - try [[Clothing]]
+
 
+
Cohousing <<<
+
--> [[:Category:Cohousing]] - try [[Cohousing]]
+
 
+
Compost <<<
+
-->  [[:Category:Composting]] - try [[Composting]]
+
 
+
Ducks <<<
+
-->  [[:Category:Ducks]] - try [[Ducks]]
+
 
+
Ecovillage <<<
+
--> [[:CATEGORY: Ecovillages]]
+
 
+
Laundry <<<
+
-->  [[:Category:Laundry]] - try [[Laundry]]
+
 
+
Septic tank <<<
+
--> [[:Category:Septic tanks]] - try [[Septic tanks]]
+
 
+
Sheep <<<
+
-->  [[:Category:Sheep]] - try [[Sheep]]
+
 
+
Solar distillation <<<
+
-->  [[:Category:Solar distillation]] - try [[Solar distillation]]
+
 
+
Vegan <<<
+
--> [[:Category:Vegetarianism and veganism]] - try [[Vegetarianism and veganism]]
+
 
+
Waste <<<
+
-->  [[:Category:Waste management]] - try [[Waste management]]
+
 
+
NOT NOW:
+
Wind power <<<
+
-->  [[:Category:Wind power]] - try [[Wind power]]
+
category:Wind Energy)
+
 
+
Ethanol <<<
+
-->  [[:Category:Alcohol fuels]] - try [[Alcohol fuels]]
+
 
+
Batteries <<<
+
--> [[:Category:Batteries]] - try [[Batteries]]
+
 
+
Cities <<<
+
--> [[:Category:Built environment]] - try [[Built environment]]
+
 
+
Microhydro <<<
+
-->  [[:Category:Microhydro]] - try [[Microhydro]]
+
 
+
Strawbale <<<
+
-->  [[:Category:Strawbale]] - try [[Strawbale]]
+
 
+
Pedal power <<<
+
-->  [[:Category:Pedal power]] - try [[Pedal power]]
+
 
+
Dam <<<
+
--> [[:Category:Dams]] - try [[Dams]]
+
 
+
Greenhouse <<<
+
-->  [[:Category:Greenhouses]] - try [[Greenhouses]]
+
 
+
Suggested projects <<<
+
--> [[:Category:Suggested projects]] - try [[Suggested projects]]
+
 
+
Ecovillages <<<
+
--> [[:CATEGORY: Ecovillages]]
+
 
+
Prizes and competitions <<<
+
--> [[:Category:Prizes and competitions]] - try [[Prizes and competitions]]
+
 
+
Community participation <<<
+
--> [[:Category:Community participation ]] - try [[Community participation ]]
+
 
+
Cycling <<<
+
-->  [[:Category:Cycling]] - try [[Cycling]]
+
 
+
Foreign aid <<<
+
--> [[:Category:Official development assistance]] - try [[Official development assistance]]
+
 
+
Household Cyclopedia <<<
+
-->  [[:Category:Household Cyclopedia]] - try [[Household Cyclopedia]]
+
 
+
Mosquito control <<<
+
--> [[:Category:Mosquito control]] - try [[Mosquito control]]
+
 
+
Funding organization <<<
+
--> [[:Category:Funding organizations]] - try [[Funding organizations]]
+
 
+
Septic tanks <<<
+
--> [[:Category:Septic tanks]] - try [[Septic tanks]]
+
 
+
Wheelchairs <<<
+
--> [[:Category:Wheelchairs]] - try [[Wheelchairs]]
+
 
+
Community <<<
+
--> [[:Category:Community]] - try [[Community]]
+
 
+
Sun Frost <<<
+
--> [[:Category:Sun Frost]] - try [[Sun Frost]]
+
 
+
Lighting <<<
+
--> [[:Category:Lighting]] - try [[Lighting]]
+
 
+
Light <<<
+
--> [[:Category:Electric lighting]] - try [[Electric lighting]]
+
 
+
Education <<<
+
--> [[:Category:Education]] - try [[Education]]
+
 
+
Air conditioning <<<
+
--> [[:Category:Air conditioning]] - try [[Air conditioning]]
+
 
+
Bottled water <<<
+
--> [[:Category:Bottled water]] - try [[Bottled water]]
+
 
+
Air-conditioning <<<
+
--> [[:Category:Air conditioning]] - try [[Air conditioning]]
+
 
+
Improved stove <<<
+
--> [[:Category:Improved cook stoves]] - try [[Improved cook stoves]]
+
 
+
Engineers Without Borders UK <<<
+
-->  [[:Category:Engineers Without Borders UK]] - try [[Engineers Without Borders UK]]
+
 
+
Renewable energy <<<
+
--> [[:Category:Renewable energy]] - try [[Renewable energy]]
+
 
+
Aquaculture <<<
+
-->  [[:Category:Aquaculture]] - try [[Aquaculture]]
+
 
+
Village Earth <<<
+
-->  [[:Category:Village Earth]] - try [[Village Earth]]
+
 
+
Agriculture <<<
+
--> [[:Category:Agriculture]] - try [[Agriculture]]
+
 
+
Construction and materials <<<
+
--> [[:Category:Construction and materials]] - try [[Construction and materials]]
+
 
+
Agricultural subsidy <<<
+
--> [[:Category:Agricultural subsidies]] - try [[Agricultural subsidies]]
+
 
+
Energy efficiency <<<
+
-->  [[:Category:Energy efficiency]] - try [[Energy efficiency]]
+
 
+
Pest control <<<
+
-->  [[:Category:Pest control]] - try [[Pest control]]
+
 
+
-->  [[:Category:Open source software]] - try [[Open source software]]
+
 
+
-->  [[:Category:Greywater]] - try [[Greywater]]
+
 
+
-->  [[:Category:Greywater treatment]] - try [[Greywater treatment]]
+
  
 +
== Notes - finding more ==
  
 +
* I use my [[User:ChriswaterguyBot|bot]] to find <nowiki>#REDIRECT [[:Category</nowiki>
 +
* Check [http://www.appropedia.org/index.php?title=Special:WhatLinksHere/Template:Browsetopic&hidelinks=1 category pages with the Browsetopic template].
 +
* Check [[User:Chriswaterguy/Wikignome/moving category page content with history - track last edits #Not enough content for a stub]]. (Good job for an [[Appropedia:Edit jams|Appropedia Edit Jam]] a.k.a. ApproJam - get people creating stubs, and flagging existing pages to be moved).
  
 +
== Not now ==
  
 
Pages needing attention <<<
 
Pages needing attention <<<
Line 358: Line 36:
  
  
 
 
 
 
 
 
 
add <nowiki>{{topic header | {{subst:PAGENAME}}}}</nowiki> in xml?
 
 
...then use list to add {{cat header
 
add introductory sentence (take from Chriswaterguy/test2)}}
 
  
 
Many locations such as Guatemala...
 
Many locations such as Guatemala...
Line 418: Line 85:
  
  
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?
+
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?
  
 
List of Projects <<<
 
List of Projects <<<
Line 443: Line 110:
  
 
== Editing: ==
 
== Editing: ==
 +
 +
=== Key steps (bot work) ===
 +
 +
Examples for changing headers, removing templates, and adding {{tl|topic page needed}} as appropriate - see also usage notes (more up to date?) at [[User:Chriswaterguy/Wikignome/moving category page content with history - list #Moved, 5 Nov 2011]].
 +
 +
 
rm these:  <nowiki>'{{(?:Browsetopic|Newpageresource|Putinthiscategory)}}'</nowiki>
 
rm these:  <nowiki>'{{(?:Browsetopic|Newpageresource|Putinthiscategory)}}'</nowiki>
  
Line 451: Line 124:
 
Add category:foo to Foo, on all changed pages.
 
Add category:foo to Foo, on all changed pages.
  
=== Redirects ===
+
=== (Updating the category pages) ===
For each (& later for portals) check & change the redirects:
+
<nowiki>python replaceedit.py -regex "(?si)#REDIRECT\s*\[\[(:?)Category:\s*Foo" "#REDIRECT [[Foo" -log -namespace:0 -xml:currentdump.xml </nowiki>
+
  
(then fix double redirects)
 
  
<nowiki>python replaceedit.py -regex "(?si)#REDIRECT\s*\[\[Portal:Greywater treatment" "#REDIRECT [[Greywater treatment]]" -log -xml:currentdump.xml </nowiki>
+
...then use list to add {{cat header..., add introductory sentence.
  
=== Updating the category pages ===
 
  
 +
(Done on first batch.)
 
<nowiki>
 
<nowiki>
python replaceedit.py -regex '(?si)(.*?)\[\[Category:(.*$)' '{{cat header| default.png |{{subst:PAGENAME}}| INSERT_BRIEF_TOPIC_INTRO_HERE. }}\n\n[[Category:\2' -log -file:movedcats1 -namespace:14 -summary:'Add cat header template, pointing to the new location for the topic content. IMAGE NEEDED.'
+
python replaceedit.py -regex '(?si)(.*?)\[\[Category:(.*$)' '{{cat header| default.png |{{subst:PAGENAME}}| Please insert a brief topic summary here (take from the summary on the the topic page). }}\n\n[[Category:\2' -log -file:movedcats3 -namespace:14 -summary:'Add cat header template, pointing to the new location for the topic content. IMAGE NEEDED.' -pt:03 -excepttext:'cat header'
 
</nowiki>
 
</nowiki>
  
 
& e for edit.
 
& e for edit.
  
Then make template to tag cat pages that need moving.
+
Then make template to tag cat pages that need moving.  
  
 
How to search for cat pages > x bytes?
 
How to search for cat pages > x bytes?
  
=== Updating the topic pages ===
+
 
 +
 
 +
=== (Updating the topic pages) ===
 +
 
 +
<blockquote><tt><nowiki>python add_text.py -regex -up -text:'{{topic header| default.png |{{subst:PAGENAME}}}}\n\n'  -log -file:XXXXXX -summary:'Add topic header template to pages recently moved to mainspace. IMAGE NEEDED.' -excepttext:'topic header'</nowiki></tt></blockquote>
 +
 
 +
e.g.
 +
 
 +
<blockquote><tt><nowiki>python add_text.py -up -text:'{{topic header| default.png |{{subst:PAGENAME}}}}\n\n'  -log -file:movedtopics -summary:'Add topic header template to pages recently moved to mainspace. IMAGE NEEDED.'  -except:'topic header'</nowiki></tt></blockquote>
 +
 
 +
offer category equal to the pagename:
 +
 
 +
<blockquote><tt><nowiki>python add_text.py -up -text:'{{topic header| default.png |Chriswaterguy/moving category page content with history}}\n\n'  -log -file:movedtopics -summary:'Add topic header template to pages recently moved to mainspace. IMAGE NEEDED.'  -except:'topic header'</nowiki></tt></blockquote>
 +
 
 +
=== Fixing redirects to the category ===
 +
 
 +
For each (& later for portals) check & change the redirects:
 +
<nowiki>python replaceedit.py -regex "(?si)#REDIRECT\s*\[\[(:?)Category:\s*Foo" "#REDIRECT [[Foo" -log -namespace:0 -xml:currentdump.xml </nowiki>  ???????
 +
 
 +
Try:
 +
'(?si)#REDIRECT\s*\[\[(:?)Category ?:(?:pagename1|...)\s*]]' '#REDIRECT \[\[\1]]'
 +
 
 +
(then fix double redirects)
 +
 
 +
<blockquote><tt><nowiki>python replaceedit.py -regex "(?si)#REDIRECT\s*\[\[Portal:Greywater treatment" "#REDIRECT [[Greywater treatment]]" -log -xml:currentdump.xml </nowiki></tt></blockquote>
 +
 
 +
old idea:
 +
:<nowiki>python replaceedit.py -regex "(?si)#REDIRECT\s*\[\[:Category" "See also: [[Category" -log -xml:currentdump.xml</nowiki>
 +
 
 +
== Special cases ==
 +
 
 +
Don't move these unless we figure out a better way to handle these specific pages:
 +
 
 +
<nowiki>[[Category:Appropedia policy]]
 +
[[Category:Topics]]
 +
</nowiki>
 +
[[:Category:Appropedia policy]]
 +
 
 +
[[:Category:Topics]]
 +
 
 +
[[:Category:User resources]]
 +
 
 +
== Category talk page ==
 +
 
 +
Move corresponding category talk pages using movepages.py.
 +
 
 +
== Cleanup ==
 +
 
 +
Remove category specific templates from mainspace (mostly done):
 +
 
 +
* <nowiki>{{[Tt]opic page needed}}</nowiki>
 +
 
 +
Other follow-on changes:
 +
* <nowiki>{{[Mm]ain article|[^}]*}}</nowiki> to {{tl|cat header}}?  eventually {{tl|main article}} should probably be merged to {{tl|main}}
 +
 
 +
---
 +
 
 +
need to finish cat headers, but move cats to bottom first:
 +
 
 +
:python cosmetic_changes.py -file:movedcats3 -namespace:14
 +
 
 
<nowiki>
 
<nowiki>
 +
-excepttext:'nowiki'
  
python add_text.py -text:'{{topic header| default.png |{{subst:PAGENAME}}}}\n\n  -log -file:XXXXXX -summary:'Add topic header template to pages recently moved to mainspace. IMAGE NEEDED.'
+
'(.*?)([[Category:.*?]])\n([^[].*?)([[Category:.*?]])' '\1\3\2\4'
  
 +
python replaceedit.py -regex '(.*?)([[Category:.*?]])[\n\s]*([^[].*?)([[Category:.*?]].*$)' '\1\3\2\4' -log -xml:currentdump.xml -namespace:14 -summary:'Move categories to bottom of page.' -pt:03
 
</nowiki>
 
</nowiki>
  
== move: ==
+
== See also ==
 +
 
 +
* [[User:Chriswaterguy/Wikignome/Categories to rename]] - moving and merging categories.
  
urban planning
+
[[Category:Moving content from Appropedia categories]]

Latest revision as of 08:21, 30 April 2013

Please add here[edit]

If you find a category page with content that needs to be moved, please add it below. I'll assume it's being moved to a mainspace article of the same name, unless you say otherwise.

Just move to mainspace[edit]

& use {{cat header}} in its place:


No category members:

Notes - finding more[edit]

Not now[edit]

Pages needing attention <<< --> Category:Pages needing attention - try Pages needing attention

Sp <<< --> Category:Suggested projects - try Suggested projects

Hexayurt Project <<< --> Category:Hexayurt project - try Hexayurt project


Many locations such as Guatemala... Indonesia <<< --> Category:Indonesia - try Indonesia

India <<< --> Category:India - try India

Bangladesh <<< --> Category:Bangladesh - try Bangladesh

USA <<< --> Category:USA - try USA

Australia <<< --> Category:Australia - try Australia

Guatemala <<< --> Category:Guatemala - try Guatemala

Category:Humboldt County, California Mexico <<< --> Category:Mexico - try Mexico

Turkmenistan <<< --> Category:Turkmenistan - try Turkmenistan

Australia <<< --> Category:Australia - try Australia

Bolivia <<< --> Category:Bolivia - try Bolivia

Food and drink <<< --> Category:Food and agriculture - try Food and agriculture

Energy <<< --> Category:Energy - try Energy


(then broke...)


Category:Porting helpers - try Porting helpers


Don't touch without confirmation[edit]

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?

List of Projects <<< --> Category:Projects - try Projects

Parras Solar Hot Water <<< --> Category:Parras Solar Hot Water - try Parras Solar Hot Water

Parras <<< --> Category:Parras - try Parras

HSU <<< --> Category:Humboldt State University - try Humboldt State University

Parras summer program <<< --> Category:Parras - try Parras

Campus Center for Appropriate Technology <<< --> Category:CCAT - try CCAT

Parras 2006 <<< --> Category:Parras 2006 - try Parras 2006


Editing:[edit]

Key steps (bot work)[edit]

Examples for changing headers, removing templates, and adding {{topic page needed}} as appropriate - see also usage notes (more up to date?) at User:Chriswaterguy/Wikignome/moving category page content with history - list #Moved, 5 Nov 2011.


rm these: '{{(?:Browsetopic|Newpageresource|Putinthiscategory)}}'

Look for '{{Lang\|\[\[:Category:'

Look for [\[:Category in mainspace pages.

Add category:foo to Foo, on all changed pages.

(Updating the category pages)[edit]

...then use list to add {{cat header..., add introductory sentence.


(Done on first batch.) python replaceedit.py -regex '(?si)(.*?)\[\[Category:(.*$)' '{{cat header| default.png |{{subst:PAGENAME}}| Please insert a brief topic summary here (take from the summary on the the topic page). }}\n\n[[Category:\2' -log -file:movedcats3 -namespace:14 -summary:'Add cat header template, pointing to the new location for the topic content. IMAGE NEEDED.' -pt:03 -excepttext:'cat header'

& e for edit.

Then make template to tag cat pages that need moving.

How to search for cat pages > x bytes?


(Updating the topic pages)[edit]

python add_text.py -regex -up -text:'{{topic header| default.png |{{subst:PAGENAME}}}}\n\n' -log -file:XXXXXX -summary:'Add topic header template to pages recently moved to mainspace. IMAGE NEEDED.' -excepttext:'topic header'

e.g.

python add_text.py -up -text:'{{topic header| default.png |{{subst:PAGENAME}}}}\n\n' -log -file:movedtopics -summary:'Add topic header template to pages recently moved to mainspace. IMAGE NEEDED.' -except:'topic header'

offer category equal to the pagename:

python add_text.py -up -text:'{{topic header| default.png |Chriswaterguy/moving category page content with history}}\n\n' -log -file:movedtopics -summary:'Add topic header template to pages recently moved to mainspace. IMAGE NEEDED.' -except:'topic header'

Fixing redirects to the category[edit]

For each (& later for portals) check & change the redirects: python replaceedit.py -regex "(?si)#REDIRECT\s*\[\[(:?)Category:\s*Foo" "#REDIRECT [[Foo" -log -namespace:0 -xml:currentdump.xml  ???????

Try: '(?si)#REDIRECT\s*\[\[(:?)Category ?:(?:pagename1|...)\s*]]' '#REDIRECT \[\[\1]]'

(then fix double redirects)

python replaceedit.py -regex "(?si)#REDIRECT\s*\[\[Portal:Greywater treatment" "#REDIRECT [[Greywater treatment]]" -log -xml:currentdump.xml

old idea:

python replaceedit.py -regex "(?si)#REDIRECT\s*\[\[:Category" "See also: [[Category" -log -xml:currentdump.xml

Special cases[edit]

Don't move these unless we figure out a better way to handle these specific pages:

[[Category:Appropedia policy]] [[Category:Topics]] Category:Appropedia policy

Category:Topics

Category:User resources

Category talk page[edit]

Move corresponding category talk pages using movepages.py.

Cleanup[edit]

Remove category specific templates from mainspace (mostly done):

  • {{[Tt]opic page needed}}

Other follow-on changes:

---

need to finish cat headers, but move cats to bottom first:

python cosmetic_changes.py -file:movedcats3 -namespace:14

-excepttext:'nowiki' '(.*?)([[Category:.*?]])\n([^[].*?)([[Category:.*?]])' '\1\3\2\4' python replaceedit.py -regex '(.*?)([[Category:.*?]])[\n\s]*([^[].*?)([[Category:.*?]].*$)' '\1\3\2\4' -log -xml:currentdump.xml -namespace:14 -summary:'Move categories to bottom of page.' -pt:03

See also[edit]