Hi everyone,

Im developing a new extension for SMW.

From that extension I need to acces to the text of a given article.
Im doing something like this:

$resTitle = Title::makeTitle( NS_MAIN, 'ArticleName');
$resArticle = MediaWiki::articleFromTitle($resTitle);
$valuestring =$resArticle->getContent();

Then, I get the content of the article.

The problem is when the article use a template, I get this:

{{TemplateName | param1 | param2....}}

And I need to get the text after the template is applied.

How can I get the text of the article after the template is applied ?