History: PluginThumb
Source of version: 20 (current)
Copy to clipboard
!Plugin Thumb {REMARKSBOX(type=warning title=Warning!)}''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.''{REMARKSBOX} 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 {CODE()}{thumb image="img/wiki_up/393px-Pears.jpg" max="100" float="left"}{CODE} will be transformed in the following thumbnail. Pass your mouse over the thumbnail to get a frame/popup/thing with the full sized image. {THUMB(image=>img/wiki_up/393px-Pears.jpg,max=>52,float=>left)}{THUMB} You will see something like: ^::{img src="img/wiki_up/plugin_thumb_02.png" }::^ You can also use an image from an image gallery (tw >= 1.9.8) with the scaled image in the popup {CODE()}{THUMB(id=94)}{THUMB}{CODE} {THUMB(id=94)/} with the original image in the popup {CODE()}{THUMB(id=94,original=y)}{THUMB}{CODE} {THUMB(id=94,original=y)/} !! 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