Jump to content

User:Superkuh

From Wikipedia, the free encyclopedia

I enjoy recursion, dissipating local energy gradients, lipid bilayers, and biophysics in general. I host my own website at superkuh.com.





I am strongly against the wikipedia policy of using javascript dependent fake "anchors" as links to rich media in navigation. Wikipedia should put real HTML anchors alongside the fake Javascript dependent anchors so that when a user copies a link from wikipedia and shares it with others it will actually be a link to an anchor. Currently if the person receiving the link does not execute javascript they will not be sent to the 'fake' javascript dependent anchor. An example is,

https://en.wikipedia.org/wiki/Influenza_A_virus_subtype_H5N1#/media/File:Global_spread_of_H5N1_map.svg

vs

https://upload.wikimedia.org/wikipedia/commons/a/a1/Global_spread_of_H5N1_map.svg

The HTML5 way to do it is to use the '<a id=' attribute like described in https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#id . For the above example,

<a id="#/media/File:Global_spread_of_H5N1_map.svg" ...

Or in terms of HTML 4,

<a name="/media/File:Global_spread_of_H5N1_map.svg" ...

By proper use of HTML5 tags both the javascript enhanced and proper fallback behavior can be preserved.