Difference between revisions of "MediaWiki:ImageAnnotatorConfig.js"

Jump to navigation Jump to search
enable for thumbnails derived from WikiCommons images
(cp from WikiCommons; version 14:39, 10 January 2015‎ Lupo)
 
(enable for thumbnails derived from WikiCommons images)
Line 143: Line 143:
     {
     {
       // Of course you could also use wgNamespace or any other of the wg-globals here.
       // Of course you could also use wgNamespace or any other of the wg-globals here.
       return    (is_thumbnail && !is_local)
       return    ((  thumb.width < 250 && thumb.height < 250
            || ((  thumb.width < 250 && thumb.height < 250
                   && (thumb.width < full_img.width || thumb.height < full_img.height)
                   && (thumb.width < full_img.width || thumb.height < full_img.height)
                 )
                 )

Navigation menu