Last modified: 2007-09-25 18:36:45 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 11405 - Expand templates implementation in the API
Expand templates implementation in the API
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2007-09-19 21:04 UTC by Bryan Tong Minh
Modified: 2007-09-25 18:36 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---

ExpandedTemplates patch (1.04 KB, patch)
2007-09-19 21:04 UTC, Bryan Tong Minh

Description Bryan Tong Minh 2007-09-19 21:04:33 UTC
Created attachment 4134 [details]
ExpandedTemplates patch

The API should have a function to return the page content with all templates expanded, similarly to templates=expand in index.php, see <>.

I have already created a patch for this, however I'm unsure about the parameters that should invoke this function. It is an extra property to Revisions. It could be implemented as rvprop=expanded_content. Or there could be another rvexpandtemplates parameters. 

I have attached a patch for the latter one.
Comment 1 Victor Vasiliev 2007-09-25 03:10:53 UTC
Nice patch. Nevertheless we still need a module like Extension:ExpandTemplates for expanding templates passed as an argument
Comment 2 Roan Kattouw 2007-09-25 18:36:45 UTC
Fixed in r26125

Note You need to log in before you can comment on or make changes to this bug.