Template:Click
From WoWRosterWiKi
(Difference between revisions)
m (1 revision(s)) |
m (Protected "Template:Click": spam [edit=sysop:move=sysop]) |
||
(3 intermediate revisions by one user not shown) | |||
Line 19: | Line 19: | ||
This template attempts to superimpose an invisible link on an image, such that clicking on the image does ''not'' take you to the image description page (normal behaviour). | This template attempts to superimpose an invisible link on an image, such that clicking on the image does ''not'' take you to the image description page (normal behaviour). | ||
− | It's useful for small icons/logos which are representative of an article, and which a user might click on expecting to be taken to that article. Here we are using it on the [[Main Page]] for example. It's use should | + | It's useful for small icons/logos which are representative of an article, and which a user might click on expecting to be taken to that article. Here we are using it on the [[Main Page]] for example. It's use should minimized because of the following problems. |
==== Problems ==== | ==== Problems ==== | ||
− | It doesn't work in text-only browsers, and in screen readers for the disabled, and possibly other situations. The technique of using | + | It doesn't work in text-only browsers, and in screen readers for the disabled, and possibly other situations. The technique of using CSS to change page content also completely breaks an article's web accessibility by contravening a WAI priority-one checkpoint.[http://www.w3.org/TR/WAI-WEBCONTENT/#tech-order-style-sheets] |
==== See also ==== | ==== See also ==== |
Latest revision as of 01:04, 28 July 2007
Usage: {{Click | image=myimage.png | link=PageName | width=10px | height=10px}}
This template attempts to superimpose an invisible link on an image, such that clicking on the image does not take you to the image description page (normal behaviour).
It's useful for small icons/logos which are representative of an article, and which a user might click on expecting to be taken to that article. Here we are using it on the Main Page for example. It's use should minimized because of the following problems.
Problems
It doesn't work in text-only browsers, and in screen readers for the disabled, and possibly other situations. The technique of using CSS to change page content also completely breaks an article's web accessibility by contravening a WAI priority-one checkpoint.[1]
See also
- Template:Click on wikipedia where we got this from.
- Bug 539 - Feature request to allow linked images without nasty CSS.