I want to copy (not move) a few hundred pages from one namespace to another.
Any ideas how?

I think I can do it in two stages - if I can create a page. I'd create each
page with only the page name, then convert that to a transclusion from the
mainspace article:

python replace.py -regex ".*" "{{subst:PAGENAME}}" -file:pagelist
python replace.py -regex ".*" "{{subst::\\1}}" -file:pagelist

But I get the error "Page [[blah blah]] not found" when I run the first
command. I also tried with "" as the search string in the first line, but
it's the same. And ideally I'd like it to exclude cases where the page
already exists.

Any solution? Thanks!

-- 
Chris Watkins

Appropedia.org - Sharing knowledge to build rich, sustainable lives.

blogs.appropedia.org
community.livejournal.com/appropedia
identi.ca/appropedia
twitter.com/appropedia
_______________________________________________
Pywikipedia-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l

Reply via email to