MediaWiki talk:Gadget-ChooseResolution.js

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search


This gadget gives an quick link to other resolutions, for easy re-use of pictures


Bug: Invalid argument

[edit]

This script does not run corerctly and fails in IE. Line 45, character 3: Invalid argument.

td.style.borderLeft = "1px solid grey"

The assigned value is clearly invalid (probably: undefined color name, replace by standard "gray"). Verdy p 18:46, 2 January 2008 (UTC)[reply]

Rewrite

[edit]

This gadget didn't work at all for me (verified in several browsers, also under a fresh account to be sure it's not something else I run). All it did was give me the bold text "Use this image on your website" (no link, no nothing) plus a bolded link to the full resolution image. That's not what this was or is supposed to do.

I've hence rewritten this thing completely. It now adds a list of larger sizes, up to the full size, followed by "(HTML)" links that give HTML that can be copied and inserted in one's own webpage. This HTML contains backlinks to the image description page and, if the script managed to figure out a license, also a link to a license. If the script found an author, it is also mentioned in that HTML.

Tested on IE6, FF3.0.11, Safari 4, and Opera 9.26.

If you don't find this useful, feel free to revert. Lupo 14:51, 15 July 2009 (UTC)[reply]

It looks good IMHO, also that these links are not added in the case of SVG as they already are links displayed to all users. --Leyo 17:15, 15 July 2009 (UTC)[reply]