Fullscreen
Loading...
 
[Show/Hide Right Column]

(deprecated with 5.0) Display a thumbnail

Plugin Thumb


Close
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: lindon5651 points  , ellmann82 points  , Marc Laporte8141 points  , Scot Wilcoxon683 points  , Xavi64467 points  , sylvie7154 points  and system .
Page last modified on Saturday 06 March, 2010 06:03:32 UTC by lindon5651 points .
The content on this page is licensed under the terms of the Creative Commons Attribution-ShareAlike License.

Site Language

Reference Guide

Keywords

These keywords serve as "hubs" for navigation within the Tiki documentation. They correspond to development keywords (bug reports and feature requests):



Tiki Newsletter

Delivered fresh to your email inbox!
Newsletter subscribe icon
Don't miss major announcements and other news!
Contribute to Tiki

Show php error messages