Pergi ke kandungan

Templat:Click

Templat yang dilindungi selama-lamanya
Daripada Wikipedia, ensiklopedia bebas.

Pendokumenan templat[lihat] [sunting] [sejarah] [nyahcache]

The ImageMap extension has been installed on Wikipedia and should be used where possible in place of this template. However ImageMap does not currently work with template parameters, "magic words" or anchor links and thus cannot yet replace all uses of this template.

This template attempts to superimpose an invisible link on an image. It may not work as expected for all browsers, and creates accessibility problems.

Usage

To use this template, simply copy the text below and replace the text between the <...> with the desired result.

{{Click
|image  = <image to be linked>
|width  = <width of the image>
|height = <height of the image>
|link   = <page the image must link to>
}}

Example

{{Click
|image  = Wikimedia-logo.svg
|width  = 100px
|height = 100px
|link   = :meta:Template:Click
}}

Which will Produce:

Notes

This template attempts to superimpose an invisible link on an image. It doesn't work in text-only browsers, and in screen readers for the disabled,[1] 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.[2] See Wikipedia:WikiProject Usability/Clickable images for detail.