On 02/14/2014 04:00 AM, Toni Hermoso Pulido wrote:
> Within an extension, is there a
> specific method (via Parser class, for instance) or a more or less
> direct way that could turn a template in a wikitext string into an
> object or associative array.

If you need both the parameters (including nested templates) and the
rendered output, then one option is to use Parsoid for this by calling
the web service:
http://parsoid-lb.eqiad.wikimedia.org/
https://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Transclusion_content

Gabriel

_______________________________________________
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to