(→‎Updating the topic pages: format, fix nowiki)
Line 147: Line 147:
=== Updating the topic pages ===
=== Updating the topic pages ===


<nowiki>
<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>
 
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.
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'
<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>


</nowiki>
offer category equal to the pagename:
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'
<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>
 


== Special cases ==  
== Special cases ==  

Revision as of 09:29, 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

Redirects

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

OTHER CASES OF CAT & PORTAL REDIR:

Subsidies and grants
Agricultural subsidies
Renewable energy
Engineers Without Borders UK
Wind power
Information technology

Editing:

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'

Special cases

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

move:

urban planning

Each category talk page.

Next batch - notes

Skip these: Category:User resources


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.