Feature Requests item #1775389, was opened at 2007-08-16 14:30
Message generated for change (Comment added) made by wikipedian
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=177538…
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: None
Group: None
Status: Closed
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: restriction for replace.py
Initial Comment:
==Francais== texte d'origine
bonjour
je voudrais proposer un mode de restriction pour le module replace.py afin qu'il
ignore tous caractères se trouvant entre [[ et ]] ou entre {{ et }}.
Ceci avec un paramètre en ligne de commande tel que -ignorelink:(YES|no), yes par défaut.
ceci aurait l'avantage de ne pas modifier les liens et les modèles
Merci
==English== translated text
Hello
I would like to propose a mode of limitation for the replace.py module so that he ignores
any characters between [[ and ]] or {{ and }}.
This with an on-line parameter of command such as -ignorelink:(YES|no), yes by default.
This would have the advantage not to modify the links and the models.
Thank you
==Fin/End==
----------------------------------------------------------------------
Comment By: Daniel Herding (wikipedian)
Date:
2007-09-24 10:36
Message:
Logged In: YES
user_id=880694
Originator: NO
You can now skip templates and links by adding this parameter:
-exceptinsidetag:template -exceptinsidetag:link
Note that -exceptinsidetag:link also skips occurences within categories,
interwikis, and images that are not in galleries.
To make sure all image links are skipped, use -exceptinsidetag:gallery
additionally. External links can be skipped with
-exceptinsidetag:hyperlink.
There is more stuff that can be excepted, see replaceExcept() in
wikipedia.py. Also, replace.py can now except pages because of their title
or a contained text part, and can except occurences not only because they
are inside templates, links etc., but also because they are inside a region
which matches a regular expression that you entered.
----------------------------------------------------------------------
Comment By: Annabel (annabel)
Date: 2007-08-16 18:28
Message:
Logged In: YES
user_id=1868962
Originator: NO
I agree to russblau. Good as an option, but it should not be the default
setting. In extension, it should also be good option not to allow text
replacements in external links and image links, but allowing text
replacements in ordinary wiki-links.
----------------------------------------------------------------------
Comment By: Russell Blau (russblau)
Date: 2007-08-16 14:51
Message:
Logged In: YES
user_id=855050
Originator: NO
I suppose this could have some value as an option, but the default should
be NO. Replacing links is one of the major uses of replace.py.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=177538…