Bugs item #3021792, was opened at 2010-06-26 10:36
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=302179…
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: Open
Resolution: None
Priority: 6
Private: No
Submitted By: Anypodetos (anypodetos)
Assigned to: Nobody/Anonymous (nobody)
Summary:
templatesWithParams() misses templates
Initial Comment:
wikipedia.templatesWithParams() does not find templates if they contain curly braces. For
example, {{drugbox}} on
en.wikipedia.org/wiki/Semagacestat is not found, but after
removing the "{" in the parameter IUPAC_name (which I tried in my sandbox),
everything works fine.
output of version.py:
Pywikipedia [http] trunk/pywikipedia (r8334, 2010/06/25, 17:45:36)
Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit (Intel)]
config-settings:
use_api = True
use_api_login = True
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2013-04-21 07:28
Message:
Since python regex cannot exclude a pattern but a character only from a
regex string it is indeed just easier to change the content of these very
few pages. I just haven't an idea to solve that problem yet in an easy
manner. Maybe someone else has the time to investigate.
----------------------------------------------------------------------
Comment By: Anypodetos (anypodetos)
Date: 2013-04-21 01:55
Message:
xqt, this would mean manually going through the pages the bot is going to
edit, to replace the curly braces with HTML tags. Am I missing something?
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2013-04-04 00:22
Message:
I guess it is easier to replace "{" inside the parameter field with the
corresponding hmtl tag
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=302179…