MediaWiki:Query:MediaThumbnails

From FridaV

Jump to: navigation, search
(Created page with 'SELECT xmlelement(name img, xmlattributes(url as src, 'wdbi-thumbnail' as class)) ) as thumbnail FROM frida.media LIMIT 100')
 
-
SELECT xmlelement(name img, xmlattributes(url as src, 'wdbi-thumbnail' as class))  
+
SELECT xmlelement(name a, xmlattributes('/srv/photo/'||media_id||'/' as href),
-
      ) as thumbnail
+
        xmlelement(name img, xmlattributes(frida.icon_from_url(url) as src, 'wdbi-thumbnail' as class))  
-
  FROM frida.media
+
        ) as thumbnail
-
LIMIT 100
+
  FROM frida.media
 +
  ORDER BY media_id desc
 +
  LIMIT 108

Current revision as of 20:27, 5 June 2009

Personal tools
maps, graphs & data