I would suggest using Special:Export and Special:Import, and just changing
<title>namespace: to <title>new namespace:. I'm not quite sure what
happens
with the id parameters thought; you might want to strip those.
-Merlijn
On 26 March 2010 07:04, Chris Watkins <chriswaterguy(a)appropedia.org> wrote:
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
Pywikipedia-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l