> I expect that this works now with #ask, *BUT* there already is a format for > what you want to do. It is called "embedded" and it can be customised with > the following parameters:
> * embedformat = {h1, h2, h3, ol, ul} (how to format the result list) > * embedonly = true (whether to leave away the headlines) It's great, but I use a div tag with special css style to separate the rows.., so {{ {{{1}}} }} is probably better to me, or maybe embedformat can be expanded to custom set of tags? The only concern is, how much the template expansion is inefficient comparing to format="embedded"... > This must, however, be combined with <noinclude> so as not to import semantic > data or category data to the page that asks the query (especially when using > #ask). Such as with templates. I know that, but thank's for reminding.. > Embed also works for annotation-objects, e.g. to print the > query "[[some page]] [[links to::*]]" -- then all the values of "links to" > will be embedded. Other than the "first column", print requests > for "embedded" are usually ignored. Also, there are known ways of cyclic > embedding that may lead to infinite inclusion loops (though in practice these > tend to be as finite as available memory). I see.. > Yes, I already use this for my (semi-)blog that is based on SMW :-) (not that > I am very active as a blogger, but anyway here is the example page, mostly > generated by a query: http://korrekt.org/index.php/Blog). Great! May I suggest another kind of ask format? Sometimes it's desirable to get only a simple count of rows instead of the query result rows. So, if there's a 5 rows in the query result, ask format="count" would return a number 5. It may be useful to statistics, in further computations in templates and so on... I really think that SMW requires a better documentation on new formats of queries, #ask and subqueries. Because the only documentation I've used is outdated: http://meta.wikimedia.org/wiki/Help:Substitution e.g. no new features, no subqueries here and so on.. In the future, after releasing final version, I would suggest reporting a story about SMW to slashdot, to get some more publicity.. Dmitriy ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel