Hi Nils,
Two things:
1) You're correct that extension tags don't expand template parameters. What you'd want is what's called a parser function [1] [2].
2) You may want to have a look at Semantic Forms - there's a chance it may already do what you want (or perhaps at least a portion thereof) [3].
[1] Explanation of Parser Functions: http://meta.wikimedia.org/wiki/Help:Parser_function [2] Some examples: http://www.mediawiki.org/wiki/Category:Parser_function_extensions [3] Semantic Forms extension: http://www.mediawiki.org/wiki/Extension:Semantic_Forms
-- Jim R. Wilson (jimbojw)
On 6/6/07, Nils Oppermann nilito@web.de wrote:
My motivation is to automate page creation and semantic annotation by using html-forms. One use case would be to automatically annotate creation relationships between pages. To do so I implemented a tag hook which creates the forms.
My problem: I want to use this extension tag inside templates and also use template parameters.
Contents inside an extension tag are not parsed but treated separately.
<tag>...contents...</tag>
Therefore template variables inside a tag like the following are not replaced.
<tag>...{{parameter}}...</tag>
I already figured out that extension tag hooks are treated within the function split() in Parser.php.
But how can I get the parser to parse the contents of the tag before calling the according extension callback function?
Function recursiveTagParse() seems to be an option but I can't get it to work.
Or is it necessary to work with an extension function hook instead of a tag hook?
Any suggestions? Or indications where I could find help? Thanks in advance. _______________________________________________________________ SMS schreiben mit WEB.DE FreeMail - einfach, schnell und kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/wikitech-l