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

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T13405, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 11405 - Expand templates implementation in the API
Expand templates implementation in the API
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.12.x
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  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: ---


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

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 <http://www.mediawiki.org/wiki/Manual:Parameters_to_index.php#Raw>.

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.


Navigation
Links