Feature Requests item #3150628, was opened at 2011-01-03 23:54 Message generated for change (Comment added) made by xqt You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603141&aid=3150628...
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: Hercule (herculefr)
Assigned to: xqt (xqt)
Summary: add an option to template.py
Initial Comment: Can you please add an option (eg -assubst) on template.py, so the remplacements are done with the same restrictions as -subst ?
This feature is needed to create advanced conventions templates, such as http://fr.wikipedia.org/wiki/Mod%C3%A8le:Lien/Conversion_automatique that must be immediatly substed.
the command line
template.py "Lien" "subst:Lien/Conversion automatique" -assubst
would avoid the replacement on reference tags, and all places excluded for substitution
Thanks in advance
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2011-09-25 22:23
Message: done in r9556 You may use the new option -assubst as well as both options --remove subst in one command line
----------------------------------------------------------------------
Comment By: Hercule (herculefr) Date: 2011-09-22 11:53
Message: can someone apply the attached patch ? I works fine
----------------------------------------------------------------------
Comment By: Hercule (herculefr) Date: 2011-06-01 10:48
Message: The patch seem good. I have detected a bug today, but it's because of the "subst" management, not because of this patch. It could be integrated in the script
----------------------------------------------------------------------
Comment By: Hercule (herculefr) Date: 2011-02-04 00:15
Message: The patch seem quite good. 2 remarks :
I'm not sure that it's necessary to add the subst in the script. My command line was template.py "Lien" "subst:Lien/Conversion automatique" -assubst with your patch I must use template.py "Lien" "Lien/Conversion automatique" -assubst
If I want to change one template to subst and another one not to subst I prefer the command line template.py "Lien" "subst:Lien/Conversion automatique" -assubst
The replacement is done in <code> and <nowiki> tags. But it's possible that the bug exist with 'subst' option
----------------------------------------------------------------------
Comment By: Toto Azéro (toto-azero) Date: 2011-01-21 18:00
Message: I've sent a patch here : https://sourceforge.net/tracker/?func=detail&aid=3163473&group_id=93...
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603141&aid=3150628...