[Mediawiki-l] parsing tag body

Ittay Dror ittayd at qlusters.com
Wed Jan 3 11:20:22 UTC 2007


looking at the page source, the table seems to be rendered after the tag's output.

Ittay Dror wrote:
> ok, i used the parser itself, not creating a local one. that solved this.
> 
> another question. the text returned by my taq is surrounded by a table, 
> but it looks like once it is returned, the table is not parsed:
> {|
> <my_tag>
>   <another_tag>...</another_tag>
> </my_tag>
> |}
> 
> (my_tag returns something like '|foo\n|-')
> 
> thanks for your help,
> ittay
> 
> Ittay Dror wrote:
>> i created an extension as instructed in 
>> http://meta.wikimedia.org/wiki/Extending_wiki_markup
>>
>> i use it basically as:
>> <my_tag>
>>   <another_tag>...</another_tag>
>> </my_tag>
>>
>> the $input parameter to my function contains '<another 
>> tag>...</another tag>', which i want to process:
>>   $localParser = new Parser();   $output = $localParser->parse($input, 
>> $parser->mTitle, $parser->mOptions, false);
>>
>> but $output->getText() returns <another_tag>foo</another_tag>
>> how should i properly parse the text?
>>
>> thanks,
>> ittay
>>
> 
> 


-- 
===================================
Ittay Dror, 
Chief architect, 
R&D, Qlusters Inc.
ittayd at qlusters.com
+972-3-6081994 Fax: +972-3-6081841

www.openqrm.org - Data Center Provisioning



More information about the MediaWiki-l mailing list