Appropedia needs your support - Please Donate Today

User:Chriswaterguy/Wikignome/moving category page content with history - process

From Appropedia
Jump to: navigation, search

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]