you can reference the current page using the MW „magic word“ PAGENAME. So the query


<ask>[[{{PAGENAME}}]] [[propertyA:=*]] [[propertyB:=*]]</ask>


will always show the values of propertyA and propertyB for the current page.





Von: semediawiki-devel-bounces@lists.sourceforge.net [mailto:semediawiki-devel-bounces@lists.sourceforge.net] Im Auftrag von Dan Thomas
Gesendet: Sonntag, 16. Dezember 2007 22:37
An: Semantic MediaWiki devs
Betreff: [SMW-devel] referencing properties on current page


How does one reference only the attributes/relations on the current page in an <ask> tag?  For example, I would like to send the the value of this page's Coordinate property to a template.  Is there a concept similar to " this.Coordinate" ?
Dan Thomas