DragoonWraith and Daniel - very clever solutions.
These should be documented - maybe in a few weeks I'll take some of the things I've learnt on this list and add them to the MediaWiki.org pages. I assume that's the main place - or should it go on the Botwikihttp://botwiki.sno.cc/wiki/ ?
Many thanks! Chris
On Wed, Nov 26, 2008 at 03:26, Daniel Herding DHerding@gmx.de wrote:
Dear Chris,
Am Dienstag 25 November 2008 03:09:20 schrieb Chris Watkins:
If I run: python replace.py -cat:"The Transition Handbook" "-- Please do not remove
"
"!-- Please do not remove "
...t doesn't change anything.
You can use HTML entities: python replace.py -cat:"The Transition Handbook" "-- Please do not remove " "!-- Please do not remove "
The downside of this is that the HTML entity will be in the wiki source code. If you do, however, enable the cosmetic changes, the entity will automatically be converted to an exclamation mark before saving to the wiki. Just add this line to your user-config.py:
cosmetic_changes = True
Cheers
Daniel
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l