Bugs item #1901650, was opened at 2008-02-25 15:30 Message generated for change (Comment added) made by andreasjs You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1901650...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: other Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: replace.py
Initial Comment: When I use replace.py, the bot changes interwiki's too, like here: http://nl.wikipedia.org/w/index.php?title=Evenaar&diff=prev&oldid=11... Can anyone do something to this?
----------------------------------------------------------------------
Comment By: AndreasJS (andreasjs)
Date: 2008-03-01 13:55
Message: Logged In: YES user_id=1738850 Originator: NO
It does not work properly when brackets are nested. see http://en.wikipedia.org/w/index.php?title=User%3AAndreasJS%2Ftest&diff=1... Also, the documentation is incomplete, the -exceptinsidetag keywords are not explained. Here they are:
comment: between '<!--' and '-->' includeonly: between '<includeonly>' and '</includeonly>' math: between '<math>' and '</math>' noinclude: between '<noinclude>' and '</noinclude>' nowiki: between '<nowiki>' and '</nowiki>' (wiki tags are ignored inside nowiki tags) pre: between '<pre>' and '</pre>' (preformatted text) source: between '<source ' and '</source>' (inline references) ref: between '<ref[ >]' and '</ref>' timeline: between '<timeline>' and '</timeline>' startspace: lines that start with a space table: within a table template: between '{{' and '}}' (cascaded up to level 3, but no deeper) hyperlink: gallery: between '<gallery' and '</gallery>' link: within internal wikilinks, but also interwiki, categories, and images
----------------------------------------------------------------------
Comment By: AndreasJS (andreasjs) Date: 2008-03-01 12:19
Message: Logged In: YES user_id=1738850 Originator: NO
(please disregard my previous comment) using the parameter -exceptinsidetag:link solves this problem.
----------------------------------------------------------------------
Comment By: AndreasJS (andreasjs) Date: 2008-02-27 17:21
Message: Logged In: YES user_id=1738850 Originator: NO
This is as intended because it might be that it is the interwikis or the images that you want to change. It is recommended that you do not run replace.py in unattended mode, this is a very dangerous bot. Somebody could add an option not to change anything betwenn [[...]] or {{{...}}, but this might be a lot of work because the brackets might be nested. Any takers?
----------------------------------------------------------------------
Comment By: Adnergje (adnergje) Date: 2008-02-25 15:38
Message: Logged In: YES user_id=2019409 Originator: NO
The same question for images, like this: http://nl.wikipedia.org/w/index.php?title=De_goddelijke_komedie&diff=pre...
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1901650...