MediaWiki:Query:MediaThumbnails

From FridaV

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

Current revision as of 20:27, 5 June 2009

maps, graphs & data