Jump to content
Toggle menu
  • 3.1K articles
  • 4.4K files
  • 18 users
  • 91.5K edits
Ashenzari's Archive
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Click/doc: Difference between revisions

Template page
imported>Demos
mNo edit summary
 
Predelnik (talk | contribs)
No edit summary
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>{{Documentation subpage}}</noinclude>
==Usage==
==Usage==
Usage format:
Usage format:
Line 11: Line 9:
== 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 [[w:CSS|CSS]] to change page content also completely breaks an article's [[w:web accessibility|web accessibility]] by contravening a [[w:WAI|WAI]] priority-one checkpoint.[http://www.w3.org/TR/WAI-WEBCONTENT/#tech-order-style-sheets]  
It doesn't work in text-only browsers, and in screen readers for the disabled, and possibly other situations.  The technique of using [http://www.w3.org/Style/CSS/Overview.en.html CSS] to change page content also completely breaks an article's [[wikipedia:web accessibility|web accessibility]] by contravening a Web Accessibility Initiative priority-one checkpoint [http://www.w3.org/TR/WAI-WEBCONTENT/#tech-order-style-sheets].


[[Extension:ImageMap]] can achieve the same effect and much more.  
[http://www.mediawiki.org/wiki/Extension:ImageMap Extension:ImageMap] can achieve the same effect and much more.  


== See also ==
== See also ==

Latest revision as of 11:05, 27 September 2026

Usage

Usage format:

{{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 minimised 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 Web Accessibility Initiative priority-one checkpoint [1].

Extension:ImageMap can achieve the same effect and much more.

See also