https://bugzilla.wikimedia.org/show_bug.cgi?id=45861
--- Comment #34 from Brad Jorsch <[email protected]> --- (In reply to comment #33) > Thanks for the work on this! > > (In reply to comment #32) > > > http://en.wikipedia.org/wiki/Climate_of_Russia > > > The Lua-based climate boxes look great in PDF, but all the references > > > embedded in the templates are absent from the References section. > > > > The problem is that the expandTemplates API call returns with some > > unexpanded > > templates: > > > > Minimal Example: > > http://en.wikipedia.org/wiki/User:Volker.haas/TemplateExpansion > > > > Result: > > https://en.wikipedia.org/w/api. > > php?action=expandtemplates&format=jsonfm&text={{User:Volker.haas/ > > TemplateExpansion}} > > > > Can this be fixed on the mediawiki end? > > Would be good to file a separate ticket for this, so it doesn't get lost. > This report is about code changes in the "Collection" extension. It wouldn't surprise me if there's already a bug about it somewhere. Note the problem is in the parser, not the API. The problem is that the underlying parser logic behind expandtemplates treats anything inside a tag hook's tags (e.g. between "<ref>" and "</ref>") as opaque text to be handled by the tag hook's callback. Some of those callbacks turn right around and parse the contents, but that happens at a later stage than where expandtemplates stops. -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
