I didn't understand this part: "since the "value" of the "Definition" property can be a wiki
pagename, I would rather avoid page names that are really whole sentences."

I don't think your "Definition" should be of type Page, for the reason you specify - why not just make it a String?

-Yaron

On Thu, Jul 23, 2009 at 1:06 PM, Paul Denning <pauld@mitre.org> wrote:
We have a number of wiki pages used to provide a term and its definition
(one term/definition per wiki page).  A snippet of one such page looks
like this:

==Term==
[[Term::foo]]
==Defintion==
This is the definition of foo.
==Source==
Where we found the definition=
==Other==
Perhaps other things related to the definition.
[[Category:MyDefinitions]][[Category:Stupid]]



I would like to generate a wiki table with the following columns:

1.  Link to wiki page with the definition
2.  term
3.  definition
4.  categories

Something like the following:

{{#ask: [[Category:MyDefinitions]]
| ?Term
| ?Definition <<<<-----????
| ?Category
}}

This works if I change the wiki page as follows:

==Defintion==
[[Definition::This is the definition of foo.]]


but since the "value" of the "Definition" property can be a wiki
pagename, I would rather avoid page names that are really whole sentences.

Is there a way to tell #ask to include the contents of the Definition
section?

I could use DPL, e.g.,

{{#dpl:
|category=MyDefinitions
|include=#Term,#Definition
|addcategories  = true
|table=class="wikitable sortable",,Term, Definition, Categories
|format=,,\n{{!}}%CATLIST%
}}

Is there a way to show the section content (in this case, for the
==Definition== section) using #ask ?

Paul


------------------------------------------------------------------------------
_______________________________________________
Semediawiki-user mailing list
Semediawiki-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-user