https://bugzilla.wikimedia.org/show_bug.cgi?id=55169
Web browser: --- Bug ID: 55169 Summary: Reading Templates within Templates Product: Pywikibot Version: unspecified Hardware: All OS: All Status: ASSIGNED Severity: normal Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: legoktm.wikipedia@gmail.com Classification: Unclassified Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/bugs/1525/ Reported by: Anonymous user Created on: 2012-10-24 04:53:20 Subject: Reading Templates within Templates Assigned to: xqt Original description: Hi!
Pywikipedia is used to harvest the in-wiki monument lists to the monuments database. I noticed the Error https://bugzilla.wikimedia.org/show%5C_bug.cgi?id=39973, the following lines are a copy of the existing bug:
Some values provided by headertemplates (ie 'Gemeinde' in Austrian lists) are not filled if there is a template part of any row parameter. Specific example:
http://de.wikipedia.org/wiki/Liste%5C_der%5C_denkmalgesch%C3%BCtzten%5C_Obje...
In article: {{Denkmalliste Österreich Tabellenkopf |Gemeinde = Pfons |Bezirk = Bezirk Innsbruck Land <...> }} {{Denkmalliste Österreich Tabellenzeile |Name = Friedhof mit Kapellen und Kleindenkmalen |Beschreibung = |ObjektID = 110694 <...> }} {{Denkmalliste Österreich Tabellenzeile |Name = Kath. Pfarrkirche Mariä Himmelfahrt |Beschreibung = {{Hauptartikel|Mariä-Himmelfahrt-Kirche (Pfons)}} |ObjektID = 64604 <...> }}
and in database: SELECT `objektid`, `name`, `gemeinde`, `bezirk` FROM `p_erfgoed_p`.`monuments_at_(de)` WHERE `objektid` = 110694 or `objektid` = 64604;
| objektid | name | gemeinde | bezirk | 110694 | Friedhof mit Kapellen<...> | Pfons | Bezirk Innsbruck Land | 64604 | Kath. Pfarrkirche Mar<...> | |
many other examples can be found by SELECT * FROM `p_erfgoed_p`.`monuments_at_(de)` WHERE `gemeinde` = '';
https://bugzilla.wikimedia.org/show_bug.cgi?id=55169
--- Comment #1 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- could you give me a pwb code snippet or a script command line to reproduce this behaviour
https://bugzilla.wikimedia.org/show_bug.cgi?id=55169
--- Comment #2 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- - **assigned_to**: nobody --> xqt
https://bugzilla.wikimedia.org/show_bug.cgi?id=55169
Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://sourceforge.net/p/p | |ywikipediabot/bugs/1525
https://bugzilla.wikimedia.org/show_bug.cgi?id=55169
xqt info@gno.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEW CC| |info@gno.de
https://bugzilla.wikimedia.org/show_bug.cgi?id=55169
Amir Ladsgroup ladsgroup@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |ladsgroup@gmail.com Resolution|--- |INVALID
--- Comment #4 from Amir Ladsgroup ladsgroup@gmail.com --- you can use page.get(expandtemplates=True)
https://bugzilla.wikimedia.org/show_bug.cgi?id=55169
--- Comment #5 from Ricordisamoa ricordisamoa@openmailbox.org --- expandtemplates is not the solution. Instead, use mwparserfromhell.
pywikipedia-bugs@lists.wikimedia.org