Template:ClickInternal: Difference between revisions

From The Urban Dead Wiki
Jump to navigationJump to search
(Updated to include host of fixes by User:Aichon from User:Aichon/Sandbox/Templates11 revision 00:40, 31 August 2010 (BST))
(Redirected page to Template:Click)
 
(10 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly><div style="display:-moz-inline-stack; display:inline-block; zoom:1; *display:inline; height:{{{height}}}; width: {{{width}}}; overflow:hidden; vertical-align:text-bottom">[[{{{link}}}|<span style="position:absolute; display:block; overflow:hidden; font-size:{{{height}}}; *font-size:0px; line-height:2; line-height:1\9; height:{{{height}}}; width:{{{width}}}" title="{{{mouseover|{{{link}}}}}}"> &emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;</span>]][[Image:{{{image}}}|{{{width}}}]]<span style="background:#F08; display: block; width:100%; height:100%">'''Use a smaller height''' if you can see this message.</span></div><noinclude></includeonly><noinclude>
#REDIRECT [[Template:Click]]
===Usage===
Give images your own link.
 
*''link'' and ''image'' don't need square brackets.
*''height'' and ''width'' must be specified in px and should match the image's size.
**If the sizes are not correct, you may see a message with a hot pink background; simply decrease the height
*''mouseover'' is optional (and will default to ''link'')
 
This template will work in signatures as an alternative to image redirects, but be aware that it is quite weighty and so should be used in moderation.
 
===Example===
<pre>
{{ClickInternal
|link=Example Page
|image=Example.jpg
|width=200px
|height=150px
|mouseover=You'll see this when you mouseover the image
}}
</pre>
Will produce:
{{ClickInternal
|link=Example Page
|image=Example.jpg
|width=200px
|height=150px
|mouseover=You'll see this when you mouseover the image
}}
 
[[Category:Utility Templates|{{PAGENAME}}]]</noinclude>

Latest revision as of 04:27, 22 April 2011

Redirect to: