• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

User:Mwilso24/Click

  • User page
  • Talk
  • Language
  • Watch
  • Edit
< User:Mwilso24
Documentation[view] [edit] [history] [purge]

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. Using this template is deprecated to new wiki syntax: [[File:Example.jpg|link=Link title]] will just work the same as {{Click|image=File:Example.jpg|link=Link title}}

Contents

  • 1 Prerequisites
  • 2 Usage
  • 3 Examples
    • 3.1 Further examples

Prerequisites

edit
  • MediaWiki 1.14 (rev:41789) or later

Usage

edit

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.
  • 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

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

Which will produce:

:meta:Template:Click

Further examples

edit
{{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
The above documentation is transcluded from User:Mwilso24/Click/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this page.
Retrieved from "https://en.wikipedia.org/w/index.php?title=User:Mwilso24/Click&oldid=341686389"
Last edited on 3 February 2010, at 14:37

Languages

      This page is not available in other languages.

      Wikipedia
      • Wikimedia Foundation
      • Powered by MediaWiki
      • This page was last edited on 3 February 2010, at 14:37 (UTC).
      • Content is available under CC BY-SA 4.0 unless otherwise noted.
      • Privacy policy
      • About Wikipedia
      • Disclaimers
      • Contact Wikipedia
      • Code of Conduct
      • Developers
      • Statistics
      • Cookie statement
      • Terms of Use
      • Desktop