> Finally, we were rightly asked to provide a parser function for <ask> > (something like {{#ask|...}}). This would yield full template compatibility. > The new "::" syntax is one step towards this, the better datavalue formatting > is another one. What is really missing is the conversion of HTML-query > outputs to wiki text. We still consider whether this is realistic for SMW > 1.0 ... I will discuss this on the devel list.
Mediawiki is strange thing - why in the world they are using different type of outputs for parser functions and for parser tags? Unfortunately, these things are preserved for better compatibility, and won't be fixed. Though I don't know why can't MW crew introduce a feature to parser's setHook method: instead of function setHook( $tag, $callback ) function setHook( $tag, $callback, $expandTemplates = false ) so, the extension like SMW can register with something like: $wgParser->setHook( "ask", cbfn, true ) no incompatibility will be introduced in such case (because third parameter is optional). About conversion of HTML-query output into the wiki text, is it really necessary? I've thought that ask results are lists of the pagenames (Titles) and values of propeties? Then, these are unlikely have to contain HTML tags or wiki-tags, they should be plain UTF8 texts with no special purpose characters, am I wrong? Or, that's because of fansy HTML tables formatting ("table" attribute of ask query)? Then, maybe it's better to limit functionality of {{#ask|...}} to plain lists and template output? Or, just a one base output class and extend with two different methods - one for <ask>, another for {{#ask}}.. Dmitriy ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel