模板:Click

来自Ubuntu中文
Oneleaf留言 | 贡献2007年5月16日 (三) 10:51的版本 (New page: <div style="position: relative; width: {{{width}}}; height: {{{height}}}; overflow: hidden;"> <div style="position: absolute; top: 0px; left: 0px; font-size: 100px; overflow: hidden; line-...)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳到导航跳到搜索
[[{{{link}}}|   ]]
[[Image:{{{image}}}|{{{width}}}|{{{link}}}]]







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 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 WAI priority-one checkpoint.[1]

See also