Hey,
Sounds like what you want to do can be achieved using the gallery format of
Semantic Result Formats, see
http://semantic-mediawiki.org/wiki/Help:Gallery_format
Typically you want to send such questions to wikitech-l(a)lists.wikimedia.org,
not this list :)
Cheers
--
Jeroen De Dauw
http://www.bn2vs.com
Don't panic. Don't be evil.
--