Template:Click/sandbox

From Dodge Wiki
Jump to navigation Jump to search
[edit] Template-info.svg Template documentation

This template links an image to a page other than its image description page. It has been updated to avoid the accessibility problems caused by an earlier version.

Prerequisites

  • MediaWiki 1.14 (rev:41789) or later

Usage

To use this template, simply copy the text below and replace the text between the <...> with the desired result.

{{Click
|image  = <image to be linked>
|size   = <size of the image> 
|width  = <width of the image> DEPRECATED
|height = <height of the image, optional> DEPRECATED
|link   = <page the image must link to>
|title  = <the label for the image, optional>
|desc   = <location of a description link, optional> DEPRECATED
}}
  • The image parameter specifies the image to be used. It defaults to Image:Transparent.gif when not specified.
  • The size parameter specified the maximum size of the image, either in the format «width»x«height»px, «width»px, or x«height»px.
  • The width parameter specifies the maximum width the image should be scaled to. It defaults to the default size of the image when not specified. Do not add "px" to the value. DEPRECATED
  • The height parameter specifies the maximum height the image should be scaled to. It defaults to the default size of the image when not specified. Do not add "px" to the value. DEPRECATED
  • The link parameter specifies the page to which the image should link. It defaults to the Main Page when not specified.
  • The title parameter specifies text to be used in the tooltip (text which appears on hovering the mouse over the image) and as alternative text if the image fails to load. It is entirely optional, and defaults to the text of the title of the page to which the image links. CURRENTLY BROKEN
  • The desc parameter specifies a location where an icon linking to the description page for the image can be placed. It is entirely optional, and can take any of the following values: top-right, bottom-right, bottom-left, top-left, or none to disable it completely. It defaults to none when not specified. DEPRECATED

Examples

{{Click
|image  = Wikimedia-logo.svg
|size   = 100x100px
|link   = :meta:Template:Click
}}

Which will produce:

:meta:Template:Click

Further examples

{{Click
|image  = Example svg.svg
|size   = 100x100px
|title  = Template:Click
|link   = :meta:Template:Click
}}

Which will produce:

Template:Click


{{Click
|image  = Example svg.svg
|size   = 100px
|title  = Template:Click
|link   = :meta:Template:Click
}}

Which will produce:

Template:Click


{{Click
|image  = Example svg.svg
|size   = x100px
|title  = Template:Click
|link   = :meta:Template:Click
}}

Which will produce:

Template:Click


{{Click
|image  = Example svg.svg
|title  = Template:Click
|link   = :meta:Template:Click
}}

Which will produce:

Template:Click

See also: Wikipedia:Images

als:Vorlage:Link-Bild ar:قالب:نقر ca:Plantilla:Clic cs:Šablona:Obrázek v odkazu da:Skabelon:Klik de:Vorlage:Link-Bild et:Mall:Klikk eo:Ŝablono:Click es:Plantilla:Clic eu:Txantiloi:Lotura iruditik fa:الگو:کلیک fr:Modèle:Lien sur image id:Templat:Klik is:Snið:Smella it:Template:Clic ko:Template:그림고리 na:Template:Click nl:Sjabloon:Klik ja:Template:Click ka:თარგი:ბმული-სურათი no:Mal:Klikk pl:Szablon:Klik fi:Malline:Kuvalinkki th:แม่แบบ:คลิก tr:Şablon:Click vi:Tiêu bản:Hình tượng zh:Template:Click