Re: [SMW-devel] Using #ifexist with images

2011-09-22 Thread badon
Here's how I suggest solving the problem: {{#if: {{#ask:[[Category:Images]] [[Belongs to::{{PAGENAME}}]] [[Main::Yes]] [[Image of::Portrait]]|?}} | {{#ask:[[Category:Images]] [[Belongs to::{{PAGENAME}}]] [[Main::Yes]] [[Image of::Portrait]]|?}} | {{#formlink: form

Re: [SMW-devel] Using #ifexist with images

2011-09-22 Thread Krabina Bernhard
Hi, I am not the parser functions guru, but in my template for displaying images, I use the following: {{#if: {{{Diagramm1|}}}| [[Diagramm::Image:{{{Diagramm1|}}}| ]] [[Image:{{{Diagramm1|}}}|thumb|800px|left|{{Datei:{{{Diagramm1|}]] |}} You don't need this: {{Datei:{{{Diagramm1|} it j

[SMW-devel] Using #ifexist with images

2011-09-21 Thread asafbareket
Hi all, I have a very large wiki site for literature. I want to upload a photo for each author on the site, but I don't have all the photos. So I thought I can upload the images that I have, and the authors that don't have a photo will get the default image "No photo Available". So I guess I s