Hello,
I have list of names, which exists both in article and category namespace
Foo | Category:Foo
Bar | Category:Bar
I want to link them together:
To every category I want to add {{Catmore}}, so I use:
add_text.py -file:skwiki.txt -up
-text:"{{Catmore|{{subst:PAGENAME}}}}" -except:"\{\{[Cc]atmore(.*?)"
-lang:sk
And I want add to every article "[[Category:{{subst:PAGENAME}}| ]]",
ideally as first category. But I didn't found any suitable script for
this.
I can add it without checking existence as last category, but this
will lead to duplicate categories in article:
add_text.py -file:skwiki1.txt -text:"[[Category:{{subst:PAGENAME}}| ]]" -lang:sk
Have you any idea how to make it?
JAnD
_______________________________________________
Pywikipedia-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l