Predefinição Discussão:Click-Inline

Da Thinkfn

This template causes an image to link to a specified page when clicked, rather than its image description page. It doesn't generate a new paragraph (newline), eg. can be used inline in text. It should be used sparingly as image description pages contain copyright information and should normally be easily accessible. There is also an alternative Version of this Template, Click. It does practically the same as Click-Inline, but it generates a new paragraph (newline). For more information see Discussion on Click.

Syntax

{{Click-Inline |
| image = <location of image>
| link = <page to link to>
| width = <width of image> (not more than 100px)
| height = <height of image> (not more than 100px)
}}

Examples

{{Click-Inline |
| image = Nuvola apps package network.png
| link = :Category:Geography
| width = 40px
| height = 40px
}}

40px   

{{Click-Inline |
| image = Wikinews-logo.svg
| link = n:Main Page
| width = 35px
| height = 19px
}}

35px   

Unlinked image

This template can also be used to produce images that are not clickable, by using as the link parameter:

link = {{FULLPAGENAME}}

The cursor can also be changed to appear normal when over the image by using styles

<div style="cursor:default;">
{{Click-Inline |
| image = Nuvola mimetypes info.png 
| link = {{FULLPAGENAME}}
| width = 30px 
| height = 30px
}}
</div>

30px   

See also: Wikipedia:Images

I ported this from Vorlage:Link-Bild-Inline from the German Wikipedia. --PSIplus Ficheiro:PSIplus Micro-Avatar.png 19:06, 24 May 2006 (UTC)