<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.tfcmud.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Help%3ANavigational_image</id>
	<title>Help:Navigational image - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.tfcmud.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Help%3ANavigational_image"/>
	<link rel="alternate" type="text/html" href="https://www.tfcmud.com/wiki/index.php?title=Help:Navigational_image&amp;action=history"/>
	<updated>2026-04-30T16:06:03Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.36.1</generator>
	<entry>
		<id>https://www.tfcmud.com/wiki/index.php?title=Help:Navigational_image&amp;diff=400&amp;oldid=prev</id>
		<title>Tynian: 1 revision: Import helps</title>
		<link rel="alternate" type="text/html" href="https://www.tfcmud.com/wiki/index.php?title=Help:Navigational_image&amp;diff=400&amp;oldid=prev"/>
		<updated>2011-01-10T23:24:41Z</updated>

		<summary type="html">&lt;p&gt;1 revision: Import helps&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{H:h|editor toc}}&lt;br /&gt;
:''If you are not reading this in [http://meta.wikimedia.org/wiki/Help:Navigational_image Meta] it is advised that you go there to view this page otherwise some links in this page will not work''&lt;br /&gt;
&lt;br /&gt;
By default an image is linked to its [[Help:Image page|image page]]: &amp;lt;nowiki&amp;gt;[[Image:Catapult.jpg|80px]]&amp;lt;/nowiki&amp;gt; [[Image:Catapult.jpg|80px]]&lt;br /&gt;
&lt;br /&gt;
However, an image can be made to link to another page.&lt;br /&gt;
&lt;br /&gt;
== Link parameter ==&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;[[Image:Catapult.jpg|80px|link=Main Page]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
gives:&lt;br /&gt;
[[Image:Catapult.jpg|80px|link=Main Page]]&lt;br /&gt;
&lt;br /&gt;
See [[Help:Images_and_other_uploaded_files#Link]] for details.&lt;br /&gt;
&lt;br /&gt;
== ImageMap ==&lt;br /&gt;
&lt;br /&gt;
All Wikipedia sites seem to have the [[:mw:Extension:ImageMap]] installed. Although aimed at multiple areas with different links on an image, one can use it also to link the whole image to a single page. It works on internal and interwiki links.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;imagemap&amp;gt;&lt;br /&gt;
Image:Foo.jpg|200px|Help on images (text outside link area)&lt;br /&gt;
default [[w:Help:Images_and_other_uploaded_files|Help on images]]&lt;br /&gt;
desc none&lt;br /&gt;
#use desc bottom-left to have a blue i link to the image page&lt;br /&gt;
&amp;lt;/imagemap&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;imagemap&amp;gt;&lt;br /&gt;
Image:Foo.jpg|200px|Help on images (text outside link area)&lt;br /&gt;
desc none&lt;br /&gt;
#use desc bottom-left to have a blue i link to the image page&lt;br /&gt;
default [[w:Help:Images_and_other_uploaded_files]]&lt;br /&gt;
&amp;lt;/imagemap&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Using the external link format ==&lt;br /&gt;
&lt;br /&gt;
In projects that allow [[Help:Images_and_other_uploaded_files#Embedding_external_images|the embedding of external_images]] (in which case you see images in the lefthand column of the table below) there are the following possibilities:&lt;br /&gt;
&lt;br /&gt;
(The image can be an internally or externally held image, and the target can be an external URL or a wiki page).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;table border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot; cellspacing=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th&amp;gt;What it looks like&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th&amp;gt;What you type&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tr valign=&amp;quot;top&amp;quot;&amp;gt;&amp;lt;td&amp;gt;An external image linking to an external page, image, etc.:&amp;lt;br&amp;gt;&lt;br /&gt;
[http://www.google.com http://www.google.com/images/logo.gif]&lt;br /&gt;
&amp;lt;/td&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
[http://www.google.com http://www.google.com/images/logo.gif]&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&lt;br /&gt;
An external image linking to an internal page:&amp;lt;br&amp;gt;&lt;br /&gt;
[[Help:Redirect|http://www.google.com/images/logo.gif]] &amp;lt;u&amp;gt;'''does not work!'''&amp;lt;/u&amp;gt;&lt;br /&gt;
&amp;lt;/td&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;td&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;[[Help:Redirect|http://www.google.com/images/logo.gif]]&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&lt;br /&gt;
An external image linking to an internal page with external link style, with :&amp;lt;br&amp;gt;&lt;br /&gt;
[{{SERVER}}{{localurl:Help:Redirect}} http://www.google.com/images/logo.gif]&lt;br /&gt;
&amp;lt;/td&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
[{{SERVER}}{{localurl:Help:Redirect}} http://www.google.com/images/logo.gif]&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&lt;br /&gt;
An internal image linking to an internal page with external link style:&amp;lt;br&amp;gt;&lt;br /&gt;
[{{SERVER}}{{localurl:Help:Redirect}} http:../upload/b/bc/Wiki.png] Again, there is no automatic link to the image page, use [[:Image:wiki.png]]. With this method, the same image can be used on another page linking as usual to the image page, or linking to a different target.&lt;br /&gt;
&amp;lt;/td&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
[{{SERVER}}{{localurl:Help:Redirect}} http:../upload/b/bc/Wiki.png]&lt;br /&gt;
&lt;br /&gt;
[[Image:wiki.png]]&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&lt;br /&gt;
If you don't want the small icon indicating it is an external link to appear, because it is actually an internal link (and looks untidy), you can surround the image link with code to supress it. This will be most useful to people running their own corporate or independent wikis, rather than Wikimedia sites.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;span class=&amp;quot;plainlinks&amp;quot;&amp;gt;[{{SERVER}}{{localurl:Help:Redirect}} http:../upload/b/bc/Wiki.png]&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;font size=1&amp;gt;''If you are looking at this on Meta, you will not see the effect here as it doesn't allow embedding of 'external' images...''&amp;lt;/font&amp;gt;&lt;br /&gt;
&amp;lt;/td&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
&amp;lt;span class=&amp;quot;plainlinks&amp;quot;&amp;gt;[{{SERVER}}{{localurl:Help:Redirect}} http:../upload/b/bc/Wiki.png]&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Using 'span' instead of 'div' means a navigational image can be embedded within text without linebreaks spoiling the show&lt;br /&gt;
&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&lt;br /&gt;
To make it easy to create navigational images based on the above method, a template can be employed. In this example a template called ''''clickpic'''' is created that takes two parameters: target page name and image path. &amp;lt;font size=1&amp;gt;''(''''clickpic'''' template not to be confused with ''''click'''' template mentioned in [[#Method 3: Using 'Click' template|Method 3]])''.&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{clickpic|Main Page|http:../upload/b/bc/Wiki.png}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;small&amp;gt;For more info on using this template, see [[User:CharlesC/Template for navigational images on Mediawiki websites]].&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now you can easily have proper internal linking with images in MediaWiki sites - hooray!&lt;br /&gt;
&amp;lt;/td&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;td&amp;gt;&lt;br /&gt;
*Create template called 'clickpic'. Probably easiest method is to type 'template:clickpic' at the end of your wiki's URL, then click 'edit'.&lt;br /&gt;
*This is the text you need add to your template page (see Meta's one at [[:Template:Clickpic]]):&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
&amp;lt;span class=&amp;quot;plainlinks&amp;quot;&amp;gt;[{{SERVER}}{{localurl:{{{1}}}}} {{{2}}}]&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Using the template above, this is all that needs to be written to create a navigational image:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
{{clickpic|Main Page|http:../upload/b/bc/Wiki.png}}&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
*This creates a navigational image that has 'Main Page' as the target page and displays the image stored at 'http:../upload/b/bc/Wiki.png'&lt;br /&gt;
&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Thumbnail ===&lt;br /&gt;
One application is linking a small version of an image to a large one. Example where both are external:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;[http://pennine.demon.co.uk/photos/seakayak/xga/Lunga-P7-100-3086.jpg  http://pennine.demon.co.uk/photos/seakayak/small/Lunga-P7-100-3086.jpg]&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
gives&lt;br /&gt;
&lt;br /&gt;
[http://pennine.demon.co.uk/photos/seakayak/xga/Lunga-P7-100-3086.jpg  http://pennine.demon.co.uk/photos/seakayak/small/Lunga-P7-100-3086.jpg]&lt;br /&gt;
&lt;br /&gt;
The alternate text is the name of the image, after the last slash in the URL. If you have control over the image, give it a meaningful name; you could even include a text like &amp;quot;click to enlarge&amp;quot; in the name.&lt;br /&gt;
&lt;br /&gt;
== Superimposing a hyperlink onto an image ==&lt;br /&gt;
A linked text can be superimposed onto an image, see [[Help:Composite images]]. In particular there can be a dummy text such as an &amp;amp;amp;nbsp; character in a very large font, covering the whole image.&lt;br /&gt;
&lt;br /&gt;
Using {{tim|navimg}}:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;top{{navimg|xsize=50|ysize=50|image=Today's_Issues.svg|link=MediaWiki}}bottom&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt; gives:{{clear}}&lt;br /&gt;
&lt;br /&gt;
top{{navimg|xsize=50|ysize=50|image=Today's_Issues.svg|link=MediaWiki}}bottom&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Similarly with {{tim|navimgx}} for an external link:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;top{{navimgx|xsize=50|ysize=50|image=Wikimedia-logo.svg|link=http://meta.wikimedia.org/w/index.php?title=Help:Navigational_image&amp;amp;action=edit&amp;amp;section=4}}bottom&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt; gives:{{clear}}&lt;br /&gt;
&lt;br /&gt;
top{{navimgx|xsize=50|ysize=50|image=Wikimedia-logo.svg|link=http://meta.wikimedia.org/w/index.php?title=Help:Navigational_image&amp;amp;action=edit&amp;amp;section=4}}bottom&lt;br /&gt;
&lt;br /&gt;
However, if the browser is set to ignore font sizes specified in web pages then only part of the area in the image links to the specified page, and the rest of the image to the image page. Check the hoverbox or status line to see the target at any position of the mouse cursor. Some versions of the template have the same hoverbox for the two areas.&lt;br /&gt;
&lt;br /&gt;
The image cannot be inline. Positioning can be done e.g. with a table.&lt;br /&gt;
&lt;br /&gt;
Image links were easy to do with the navimg template, but I thought the directions here were lacking a bit;&lt;br /&gt;
&lt;br /&gt;
The Template looks like - &lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt; &amp;lt;div style=&amp;quot;position: relative; width: {{{xsize|{{{size|}}}}}}px; height: {{{ysize|{{{size|}}}}}}px; overflow: hidden;&amp;quot;&amp;gt;&amp;lt;div style=&amp;quot;position: absolute; top: 0; left: 0; font-size: 200pt; width: {{{xsize|{{{size|}}}}}}px; height: {{{ysize|{{{size|}}}}}}px;  overflow: hidden; line-height: {{{ysize|{{{size|}}}}}}px; z-index: 3;&amp;quot;&amp;gt;[[:{{{link|}}}|{{{linktext|&amp;amp;nbsp;}}}]]&amp;lt;/div&amp;gt;&amp;lt;div style=&amp;quot;position: absolute; top: 0; left: 0; z-index: 2;&amp;quot;&amp;gt;[[Image:{{{image|}}}|{{{xsize|{{{size|}}}}}}px|image page]]&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt; &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example: &amp;lt;nowiki&amp;gt;{{navimg|xsize=25|ysize=25|image=Wikibooks-logo.png|link=Documentation_Guidelines}}&amp;lt;/nowiki&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
; All attributes are required.&lt;br /&gt;
: xsize = horizontal&lt;br /&gt;
: ysize = veritacal&lt;br /&gt;
: image = internal image file&lt;br /&gt;
: link = internal link location.&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The image will always show up on a newline on the left unless you put the image in a table. &lt;br /&gt;
:; Example of image appearing on the right.&lt;br /&gt;
&amp;lt;nowiki&amp;gt;{| border=&amp;quot;0&amp;quot; cellspacing=&amp;quot;0&amp;quot; align=&amp;quot;right&amp;quot; style=&amp;quot;text-align: left;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| {{navimg|xsize=25|ysize=25|image=Wikibooks-logo.png|link=Documentation_Guidelines}}&amp;gt;&lt;br /&gt;
|}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
See also:&lt;br /&gt;
*{{tiw|click}}.&lt;br /&gt;
*{{tiw|nl|klikafb}}&lt;br /&gt;
*[[wikt:de:Template:Link-Bild]]&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[w:Wikipedia:Images linking to articles]]&lt;br /&gt;
*[[Help:Images_and_other_uploaded_files#Navigational_maps|Navigational maps]]&lt;br /&gt;
*[[Help:Composite images]] - Allows superimposing a linked text onto an image.&lt;br /&gt;
*[[w:Template:Annotated image]]&lt;br /&gt;
{{h:f|enname=Navigational image}}&lt;br /&gt;
[[Category:Mediawiki Hacks]]&lt;/div&gt;</summary>
		<author><name>Tynian</name></author>
	</entry>
</feed>