Expand templates implementation in the API
Closed, ResolvedPublic

Assigned To
None
Priority
Normal
Author
bzimport
Subscribers
Catrope, vvv, wikibugs-l
Projects
Reference
bz11405
Description

Author: Bryan.TongMinh

Description:
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.


Version: 1.12.x
Severity: enhancement

Attached: ApiExpandedTemplates.diff

bzimport added a project: MediaWiki-API.Via ConduitNov 21 2014, 9:57 PM
bzimport added a subscriber: wikibugs-l.
bzimport set Reference to bz11405.
bzimport created this task.Via LegacySep 19 2007, 9:04 PM
vvv added a comment.Via ConduitSep 25 2007, 3:10 AM

Nice patch. Nevertheless we still need a module like Extension:ExpandTemplates for expanding templates passed as an argument

Catrope added a comment.Via ConduitSep 25 2007, 6:36 PM

Fixed in r26125

Add Comment

Column Prototype
This is a very early prototype of a persistent column. It is not expected to work yet, and leaving it open will activate other new features which will break things. Press "\" (backslash) on your keyboard to close it now.