Hi Ben,
My site Discourse DB has formatted ask queries, using code that's pending
inclusion into SMW; I don't know if it's been released into any version yet.
It doesn't use a syntax that looks like 'format="template"
name="TemplateName"' syntax but, instead, one that looks like
'format="TemplateName"'. (If the format name specified is not one of the
standard ones ( i.e. "table", "list", etc.), the parser looks for a template
of that name. It might have been better to go with the first type of syntax,
the one you suggest; that way it would be clearer to users what's going on
behind the scenes. It's still possible to change it; does anyone have an
opinion on that?)
In any case, in Discourse DB, every page that uses the "Position" template
contains a formatted ask query:
http://discoursedb.org/w/index.php?title=Template:Position&action=edit
The template it uses for ask queries, "ItemQuery", can be seen here:
http://discoursedb.org/w/index.php?title=Template:ItemQuery&action=edit
And here's one example of the Position template in action, for a page on a
minimum wage bill:
http://discoursedb.org/wiki/Fair_Minimum_Wage_Act_of_2007_/_Act_should_be_passed
If the code that handles such queries is not yet in the released version, I
can send it to you.
-Yaron
On 3/1/07, Ben Hyde <[EMAIL PROTECTED]> wrote:
Is <ask format="template" ...> in the released version, and if so can
somebody suggest a pointer to an example I can mimic? Thanks! - ben
-------------------------------------------------------------------------
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-user mailing list
Semediawiki-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-user
-------------------------------------------------------------------------
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-user mailing list
Semediawiki-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-user