http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9543
Revision: 9543 Author: xqt Date: 2011-09-25 09:08:55 +0000 (Sun, 25 Sep 2011) Log Message: ----------- do not subst inside gallerys (maybe mw bug) due to bug #3413643 reported by hercule.
Modified Paths: -------------- trunk/pywikipedia/template.py
Modified: trunk/pywikipedia/template.py =================================================================== --- trunk/pywikipedia/template.py 2011-09-24 16:36:14 UTC (rev 9542) +++ trunk/pywikipedia/template.py 2011-09-25 09:08:55 UTC (rev 9543) @@ -253,7 +253,7 @@ replacements.append((templateRegex, '')) elif self.subst: replacements.append((templateRegex, '{{subst:' + old + '\g<parameters>}}')) - exceptions['inside-tags']=['ref'] + exceptions['inside-tags']=['ref', 'gallery'] else: replacements.append((templateRegex, '{{' + new + '\g<parameters>}}'))