(→‎Updating the topic pages: format, fix nowiki)
(update)
Line 93: Line 93:
-->  [[:Category:Parras 2006]] - try [[Parras 2006]]
-->  [[:Category:Parras 2006]] - try [[Parras 2006]]


=== Redirects ===


For each (& later for portals) check & change the redirects:
== Editing: ==
<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)
=== Key steps (bot work) ===


<nowiki>python replaceedit.py -regex "(?si)#REDIRECT\s*\[\[Portal:Greywater treatment" "#REDIRECT [[Greywater treatment]]" -log -xml:currentdump.xml </nowiki>
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/moving category page content with history - list 2 #Moved, 5 Nov 2011]].


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


OTHER CASES OF CAT & PORTAL REDIR:
Subsidies and grants
Agricultural subsidies
Renewable energy
Engineers Without Borders UK
Wind power
Information technology
== Editing: ==
rm these:  <nowiki>'{{(?:Browsetopic|Newpageresource|Putinthiscategory)}}'</nowiki>
rm these:  <nowiki>'{{(?:Browsetopic|Newpageresource|Putinthiscategory)}}'</nowiki>


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


=== Updating the category pages ===
=== (Updating the category pages) ===




Line 145: Line 128:




=== 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>
<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>
Line 156: Line 139:


<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>
<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 ==  
== Special cases ==  
Don't move these unless we figure out a better way to handle these specific pages:


<nowiki>[[Category:Appropedia policy]]
<nowiki>[[Category:Appropedia policy]]
Line 163: Line 163:
</nowiki>
</nowiki>
[[:Category:Appropedia policy]]
[[:Category:Appropedia policy]]
[[:Category:Topics]]
[[:Category:Topics]]


== move: ==
[[:Category:User resources]]


urban planning
== Category talk page ==
 
Each category talk page.
 
== Next batch - notes ==
 
Skip these:
[[:Category:User resources]]


Move corresponding category talk pages using movepages.py.


== STATUS ==
== STATUS ==
Line 181: Line 176:
need to finish cat headers, but move cats to bottom first:
need to finish cat headers, but move cats to bottom first:


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


<nowiki>
<nowiki>

Revision as of 09:42, 13 March 2012

Please add here

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.

Notes - finding more

I use my bot to find #REDIRECT [[:Category


Not now

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

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:

Key steps (bot work)

Examples for changing headers, removing templates, and adding {{topic page needed}} as appropriate - see also usage notes (more up to date?) at User:Chriswaterguy/moving category page content with history - list 2 #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)

...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)

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

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

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

Move corresponding category talk pages using movepages.py.

STATUS

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

Cookies help us deliver our services. By using our services, you agree to our use of cookies.