https://bugzilla.wikimedia.org/show_bug.cgi?id=46115
Web browser: ---
Bug ID: 46115
Summary: Template expansion via API fails
Product: MediaWiki
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: critical
Priority: Unprioritized
Component: Parser
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Mobile Platform: ---
The problem is that the expandtemplates API call returns with some unexpanded
templates:
Minimal Example:
http://en.wikipedia.org/w/index.php?title=User:Volker.haas/TemplateExpansion&oldid=544039610
API Call (without revision info of article...):
https://en.wikipedia.org/w/api.php?action=expandtemplates&format=jsonfm&text={{User:Volker.haas/TemplateExpansion}}
Result:
>{
> "expandtemplates": {
> "*": "blub<ref>{{Structurae|id=s0015184|title=Padma
> >Bridge|nolink=1}}, [[Padma Bridge|Report on the official hearing on
> construction >progress]]<\/ref>\n\n== References ==\n<div class=\"reflist
> >references->column-count references-column-count-2\"
> style=\"-moz-column-count: >2; -webkit-column-count: 2; column-count: 2;
> list-style-type: decimal;\">\n<references group=\"\"><\/references><\/div>"
> }
>}
This issue is criticial for the PDF rendering software (Extension:Collection
and mwlib), since it now uses the API for expanding templates
--
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l