Template:ClickInternal: Difference between revisions

From The Urban Dead Wiki
Jump to navigationJump to search
m (lets try this)
(Dead dead dead dead. DEAD!)
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="text-decoration:none; 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></includeonly><noinclude>
<includeonly><div style="display:-moz-inline-stack; display:inline-block; zoom:1; *display:inline; height:{{{height}}}; width: {{{width}}}; overflow:hidden; vertical-align:text-bottom">[[Image:{{{image}}}|{{{width}}}|link={{{Link}}}]]</div></includeonly><noinclude>
===Usage===
===Usage===
Give images your own link.
Give images your own link.


*''link'' and ''image'' don't need square brackets.
*''link'' and ''image'' don't need square brackets.
*''height'' and ''width'' must be specified in px and should match the image's size.
*<s>''height'' and ''width'' must be specified in px and should match the image's size.</s>
**If the sizes are not correct, you may see a message with a hot pink background; simply decrease the height
**<s>If the sizes are not correct, you may see a message with a hot pink background; simply decrease the height</s>
*''mouseover'' is optional (and will default to ''link'')
*<s>''mouseover'' is optional (and will default to ''link'')</s>


This template will work in signatures, but be aware that it is quite weighty and so should be used in moderation (preferably just 1-2 images in your signature). '''If you choose to use it in your signature, you MUST set up [[Redirect#Redirects|redirects]] from each image you use to the desired page.'''
This template is [[wikipedia:depricated|depricated]]. <nowiki>[[File:Example.jpg|link=Example Page]]</nowiki> fullfills this function. The template has been simplified to make use of this feature. It is advised to not bother with this template.


===Example===
===Example===

Revision as of 03:58, 22 April 2011

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 is depricated. [[File:Example.jpg|link=Example Page]] fullfills this function. The template has been simplified to make use of this feature. It is advised to not bother with this template.

Example

{{ClickInternal
 |link=Example Page
 |image=Example.jpg
 |width=200px
 |height=150px
 |mouseover=You'll see this when you mouseover the image
}}

Will produce:

link={{{Link}}}