Hi,

Try adding "|link=none" to the query. Also, if these are images stored on the wiki, the type of "hasImage" should probably be "Page".

Also, it might be worthwhile to check out the new "Semantic Gallery" extension:

http://www.mediawiki.org/wiki/Extension:Semantic_Gallery

(I don't know if Rowan, the author, is planning to announce it, but this seems like a good place to mention it.)

-Yaron


On Fri, Dec 19, 2008 at 3:52 AM, Felix Kratzer <felix.kratzer@brandmaker.com> wrote:

Hi List,

 

I have several pages that contain an image. The image is also annotated by [[hasImage::UrlOfImage]]

 

Now I want to show the images in a query:

{{#ask…..

| blah….

| ?hasImage

}}

 

This shows only the link to the image (which is fine)

Now I define hasImage to [[has type::URL]]

Now in query the images are shown…

 

BUT: they have a wrong format… so I want to format the images ;-)

I change the query to use a template

{{#ask…..

| blah….

| ?hasImage

| format=template

| template=MitarbeiterListeQuery

}}

 

And try to format the image in the template… but in vain..

 

Any suggestions? Or am I just looking COMPLETELY the wrong way?

 

FEZ


------------------------------------------------------------------------------

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