[Show/Hide Right Column]

(deprecated with 5.0) Display a thumbnail
Print

Plugin Thumb

warningWarning!
Starting with version 4.0, Plugin Thumb likely won't work and its features are incorporated into PluginImg. With version 5.0, Plugin Thumb will no longer be available. Upgrade scripts for 5.0 will automatically convert uses of Plugin Thumb to Plugin Img.

After upgrade, the sticky parameter won't work using Plugin Thumb - convert to PluginImg to use this feature.

This plugin is useful to include images in wiki pages with minimal disturbance of the text flow. It's an autonomous plugin, you should be able to use it with any version of Tiki (at least since 1.6). If you want to use it in an old version just copy the file in lib/wiki-plugins/

Syntax

{thumb image="img/wiki_up/393px-Pears.jpg" max="100" float="left"}
will be transformed in the following thumbnail. Pass your mouse over the thumbnail to get a frame/popup/thing with the full sized image. Image

You will see something like:

Image

You can also use an image from an image gallery (tw >= 1.9.8) with the scaled image in the popup

{THUMB(id=94)}{THUMB}

Image

with the original image in the popup

{THUMB(id=94,original=y)}{THUMB}
Image

Parameters

  • Mandatory
    • image : the local path to the image file (won't work with remote files)

or

    • id: the image Id
  • Optional
    • url : the url of the link
    • max : indicate the max width or height (whichever is higher) for the thumbnail (default 84)
    • float : none (default), left or right to make the text run around the thumbnail if wanted
    • data : it's the special plugin parameter to name what is between the tags. If text is included there, it will be printed over the image. This can be weird, but fun.
    • original: y - optional if it is an image of a scale gallery, the popup will display the original iamge, otherwise, the scaled image
    • sticky: y|n - default n - ioptional - to have a sticky popup (tw 1.10)

Note

  • for tw <1.9.8, you must specify url

Contributors to this page: lindon2331 points  , Xavi36278 points  , system , sylvie4333 points  , Scot Wilcoxon680 points  , Marc Laporte5511 points  and ellmann82 points  .
Page last modified on Saturday 06 March, 2010 06:03:32 UTC by lindon2331 points .

Find by Page Name

Exact match

Keywords

The following is a list of keywords that should serve as hubs for navigation within the Tiki documentation and should correspond to development keywords (bug reports and feature requests):