Template:Click/doc
Jump to navigation
Jump to search
Page Information |
This is a documentation subpage for the Click template. It contains usage information, categories and other content that is not part of the original template page. |
Contents
Intro
The Click template allows you to overlay a link on top of a wiki image. This allows you to sidestep MedaiWiki's insistence on linking a graphic to the image's page.
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. It is used extensively by the Dwilight Daily.
Parameters
- image = The file name of the image. Do not include the "Image:" portion.
- link = The page name to link to. Do not include the brackets.
- width = The width of the image. It must be in pixels.
- height = The height of the image. It must be in pixels.
Usage
Inline format:
- {{Click | image= | link= | width= | height= }}
Vertical format:
{{Click |image = |link = |width = |height = }}
Limitations
These are some things I have noticed while using this template. I'm not enough of an HTML guru to figure out why, let alone fix it.
- Apparently you can only have a max image size of 100 pixels for the thumbnail. This is probably due to the "line-height: 100px;" parameter in the template. I don't know enough about HTML to figure out what would happen if I were to change that parameter. Would it still work in all cases? Why not just use the "height" parameter there, rather than hardcode the line height? I dunno, I copied it from Wikipedia...
- It appears to work best with square thumbnail graphics. (Or possibly with graphics that are taller than they are wide.) I tired a 100px by 79px graphic, and the right side was not completely covered by the hotlink.
See also
- Template:Click on wikipedia where this came from.