Click: Difference between revisions
m (1 revision(s)) |
No edit summary |
||
Line 5: | Line 5: | ||
'''Usage:''' <nowiki>{{Click | image=myimage.png | link=PageName | width=10px | height=10px}}</nowiki> | '''Usage:''' <nowiki>{{Click | image=myimage.png | link=PageName | width=10px | height=10px}}</nowiki> | ||
*'''NOTE:''' this can be accomplished without this template by placing the switch link= in the picture link | |||
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). | ||
Line 12: | Line 14: | ||
==== Problems ==== | ==== Problems ==== | ||
It doesn't work in text-only browsers, and in screen readers for the disabled, and possibly other situations | It doesn't work in text-only browsers, and in screen readers for the disabled, and possibly other situations. [http://www.w3.org/TR/WAI-WEBCONTENT/#tech-order-style-sheets] | ||
== See also == | == See also == | ||
* [http://en.wikipedia.org/wiki/Template:Click Template:Click on wikipedia] where we got this from. | * [http://en.wikipedia.org/wiki/Template:Click Template:Click on wikipedia] where we got this from. | ||
[[Category:Templates]] | [[Category:Unused Templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 17:27, 16 November 2015
Usage: {{Click | image=myimage.png | link=PageName | width=10px | height=10px}}
- NOTE: this can be accomplished without this template by placing the switch link= in the picture link
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. [1]
See also
- Template:Click on wikipedia where we got this from.