Wikipedia:Images linking to articles Information & Wikipedia:Images linking to articles Links at HealthHaven.com
advertise
add site
services
publishers
database
health videos
Bookmark and Share

search wiki for    ?
web dir firms image gallery news pdf wiki shop video 
about
toolbar
stats
live show
health store
more stuff
JOIN/LOGIN
Featured Results:
SAPHO Syndrome Wikipedia - Orthopedics, Orthopedic Surgery & Orthopedic...
SAPHO Syndrome Wikipedia - Orthopedics, Orthopedic Surgery & Orthopedic...
orthopaedicweblinks.com
 Quality Vascular Imaging-Quality Vascular Imaging Links Page
Quality Vascular Imaging-Quality Vascular Imaging Links Page
qualityvascular.com
 Fitness Through Fasting - Directory, Article Websites Link Exchange...
Fitness Through Fasting - Directory, Article Websites Link Exchange...
fitnessthroughfasting.com
 

This page explains how to place images on wiki pages, where the image acts as a hypertext link to somewhere other than the image description page.

Most image links are created using the [[Image:...]] syntax, and clicking on such an image follows a link to a page with information about the image itself. However, it is sometimes desirable to have images that link to other pages. This can be done in two ways:

  1. Using the |link= option with the [[Image:...]] syntax.
  2. Using the <imagemap>...</imagemap> syntax, provided by the ImageMap extension.

The |link= syntax is easier to use and can create simple images that the imagemap syntax cannot, but it can only be used with plain pictures; it cannot be used with thumb images.

The imagemap syntax is very flexible, but it is complicated. It allows different parts of the image to link to different targets; the details of how to do that are out of scope of this article.

Contents

[edit] Examples

Note: Line breaks have been inserted to make the example easier to read, but must be removed in real use.

[edit] Internal link without a caption or magnification link

With image syntax, it can be done this way:

[[Image:Example2.png|150px |link=Main Page |alt=Alt text |Title text]]

Alt text

This cannot be done with imagemap syntax.

[edit] External link without a caption or magnification link

With image syntax:

[[Image:Example2.png|150px |link=http://www.example.org |alt=Alt text|Title text]]

Alt text

With imagemap syntax:

 <imagemap> Image:Example2.png|150px|alt=Alt text default [http://www.example.org Title text] desc none </imagemap> 
Alt text

[edit] With a caption

This cannot be done with the image syntax, because a thumb image ignores its |link= parameter. With imagemaps, it can be done this way:

 <imagemap> Image:Example2.png|150px|thumb|alt=Alt text|Caption default [[Main Page|Title text]] </imagemap> 
Alt text
Caption


[edit] With info link but no caption

This cannot be done with image syntax. With imagemap syntax, it can be done this way:

 <imagemap> Image:Example2.png|150px|alt=Alt text default [[Main Page|Title text]] </imagemap> 
Alt text
About this image

[edit] See also




Product Results (view all...)

search wiki for    ?
web dir firms image gallery news pdf wiki shop video 



↑ top of page ↑about thumbshots