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
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
On 03/01/07, Ittay Dror ittayd@qlusters.com 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|-')
Parser hook extensions of this variety are expected to return HTML output.
Rob Church
Rob Church wrote:
On 03/01/07, Ittay Dror ittayd@qlusters.com 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|-')
Parser hook extensions of this variety are expected to return HTML output.
ok, but even if i return <tr><td>foo</td></tr>, the text is still rendered outside of the <table> tags
Rob Church _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
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
mediawiki-l@lists.wikimedia.org