Template:Click
From Nemesis
(Difference between revisions)
| (3 intermediate revisions by one user not shown) | |||
| Line 1: | Line 1: | ||
<div style="position: relative; width: {{{width}}}; height: {{{height}}}; overflow: hidden;"> | <div style="position: relative; width: {{{width}}}; height: {{{height}}}; overflow: hidden;"> | ||
| − | <div style="position: absolute; top: 0px; left: 0px; font-size: | + | <div style="position: absolute; top: 0px; left: 0px; font-size: 100px; overflow: hidden; line-height: 100px; z-index: 3;">[[{{{link}}}| ]]</div> |
<div style="position: absolute; top: 0px; left: 0px; z-index: 2;">[[Image:{{{image}}}|{{{width}}}|{{{link}}}]]</div> | <div style="position: absolute; top: 0px; left: 0px; z-index: 2;">[[Image:{{{image}}}|{{{width}}}|{{{link}}}]]</div> | ||
</div> | </div> | ||
<noinclude> | <noinclude> | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| Line 22: | Line 13: | ||
==== Problems ==== | ==== Problems ==== | ||
| − | + | See [http://en.wikipedia.org/wiki/Template:Click Template:Click on wikipedia] where we got this from. | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
</noinclude> | </noinclude> | ||
Latest revision as of 03:14, 12 January 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 minimised because of the following problems.
[edit] Problems
See Template:Click on wikipedia where we got this from.