On Tuesday 10 April 2007 17:37, cnit wrote:
> Greetings,
> As I've reported before, I found that template parameters aren't
> expanded inside <ask></ask> text. I've tried to write a patch, yet it
> seems to be tricky. Even such a simple attempt completely breaks an
> output. Strange.
>
> I will be investigating further tomorrow. Maybe someone can provide a
> fix or clue to my code?

I think our problem is this: 
http://bugzilla.wikimedia.org/show_bug.cgi?id=2257

Hopefully will be fixed in MW at some stage. We cannot really do anything 
about it as an extension -- the only solution would be to parse 
<ask> "manually" during normal parsing instead of registering "ask" with the 
parser. Arriving at an implementation that supports both could be tricky, 
since the current ask-code introduces <a>-tags that might be killed later 
during (normal) parsing.

Regards,

Markus

>
> function smwfProcessInlineQueries( $text, $param ) {
>   global $smwgIQEnabled;
>   global $wgParser;
>   // try to expand template parameters:
>   $text=$wgParser->preprocess( $text, $wgParser->mTitle,
> $wgParser->mOptions); $iq = new SMWInlineQuery($param);
>   if ($smwgIQEnabled) {
>     return $iq->getHTMLResult($text);
>   } else {
>     return wfMsgForContent('smw_iq_disabled');
>   }
> }
>
> Sincerely,
> Dmitriy
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Semediawiki-devel mailing list
> Semediawiki-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/semediawiki-devel

-- 
Markus Krötzsch
Institute AIFB, University of Karlsruhe, D-76128 Karlsruhe
[EMAIL PROTECTED]        phone +49 (0)721 608 7362
www.aifb.uni-karlsruhe.de/WBS/     fax +49 (0)721 693  717

Attachment: pgpuwb86baXZY.pgp
Description: PGP signature

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel

Reply via email to