User:Bigpeteb/Image alt tags

Here is how the globe and map icons currently appear:


 * [[Image:P geography 3 b.png|14px|link=http://www.hardrock.com/]]
 * Alt text = "P geography 3 b.png"
 * (This is what screen readers will read)
 * Title not set
 * Hovertext = " http://www.hardrock.com/ "
 * Dotted underline (because of &lt;abbr&gt; tag)
 * Map mag16.png
 * Alt text = "Map mag16.png"
 * Title not set
 * Hovertext = "Special:mapsources/40.756872,-73.986493"
 * (I think this is broken. Apparently all browsers are showing the destination of the link as its hovertext, instead of the title of the  tag.)
 * Dotted underline
 * (I think this is broken. Apparently all browsers are showing the destination of the link as its hovertext, instead of the title of the  tag.)
 * Dotted underline

Instead, we ought to use proper  and   tags. Since IE, Firefox, and Chrome all display  tags as hoverboxes, this lets us get rid of the   tag and the underline it creates.
 * [[Image:P geography 3 b.png|14px|alt=Link to Hard Rock Cafe's website|link=http://www.hardrock.com/|Website]]
 * Alt text = "Link to Hard Rock Cafe's website"
 * (This is what screen readers will read)
 * Title = "Website"
 * (This will display as hovertext in all major browsers)
 * No dotted underline
 * Map mag16.png
 * Alt text = "Map of Hard Rock Cafe" (screenreaders)
 * Title = "Map" (hovertext)
 * No dotted underline
 * Title = "Map" (hovertext)
 * No dotted underline

I could see maybe changing the  tag to contain the URL and lat/long in addition to a description. So the hovertext might be: (hover these to see the result)
 * [[Image:P geography 3 b.png|14px|alt=Link to Hard Rock Cafe's website|link=http://www.hardrock.com/|Website (http://www.hardrock.com/)]] "Website ( http://www.hardrock.com/ )"
 * Map mag16.png "Map (40.756872, -73.986493)".
 * Or we could be more verbose and have Map mag16.png "Map (40.756872&deg; latitude, -73.986493&deg; longitude)".
 * I think using MediaWiki ParserExtensions we could also have it print like "40.756872&deg;, 73.986493&deg; ", substituting N/S/E/W appropriately. The code for that is something like