Template

Clickpic: Difference between revisions

From Joomla! Documentation

CirTap (talk | contribs)
m Replacing page with '<span class="plainlinks">[{{SERVER}}{{localurl:{{{1}}}}} {{{2}}}]</span> <noinclude> {{documentation}}</noinclude>'
 
CirTap (talk | contribs)
m 1 revision(s)
 
(No difference)

Latest revision as of 17:47, 9 May 2008

{{{2}}}

[view] [edit] [history]

Template documentation


This templates allows images to be used as links pointing to a desired page. i.e. a navigational image.

Functions/Features

For information such as:

  • How to get the full path of the image which this template needs
  • What to do if you have a whitespace problem in Internet Explorer or Opera

then please see further details at wikimedia.org

Usage

{{clickpic|TITLE OF TARGET PAGE|URL OF IMAGE FILE}}

Parameters

Parameter Name Parameter Description req./opt.
{{{1}}} title of target page Required.
{{{2}}} fullurl of image file Optional.

This is how you find the image url needed for the link:

  • Scale the image to the right size using the usual display method and specifying the width of the image in pixels, e.g.:
[[Image:abc123.jpg|150px]]
  • Preview or save the page so the image renders on-screen
  • Then right-click on it and select 'Properties'. Cut and paste the path from:
    • Internet Explorer: the 'Address' field in the dialog box
    • Firefox: the 'Location' field in the dialog box.

Known Issues

This only works if support for embedding external images is allowed. (internally held images can be referenced this way too).