This is an old revision of the document!
Table of Contents
imagebox Plugin
Compatible with DokuWiki
Angua, Adora Belle, Weatherwax, Binky, Ponder Stibbons, 2014-09-29 "Hrun", Detritus,Elenor of Tsort
This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.
Similar to imagereference, latexcaption, pagebox, side_note
Installation
- Installing the plugin:
- Automatic:
- install the plugin via the Plugin Manager at the admin page under “Manage Plugins”. Then enter the URL for the plugin under
Download and install a new plugin
- Manual:
- you can extract the archive into the
lib/plugins
directory manually
- Update the
Configuration Settings
under the admin page.
Preview
Usage
Just add [ ]
around the image tag.
[{{ImagePath|Caption}}]
The caption can be formatted.
Make sure, to empty the cache of the browser. (In Firefox: Press [shift] while clicking the reload button)
History
- 2016/11/04 : PHP7 compatibility
- 2016/11/04 : Forked to github
- 2010/05/30 : Improve compatibility with last DokuWiki version
- 2010/01/21 : bug fix
- 2009/12/06 : Relative paths work!
- 2009/04/23 : Add error message when image doesn't exist
- 2009/02/27 : Minor update
- 2009/01/12 : Add configuration + language
- 2008/12/29 : Minor Style update
- 2008/11/18 : Don't resize images to their original size. (Better compression)
- 2008/11/07 : imagebox use more DokuWiki functions (+ fix bad media URL)
- 2008/10/07 : new version ! (Clean “<div class=“thumbinner”>”, add a better EntryPatern.)
Discussion
Does not work properly when picture is last item of paragraph
When you have a picture in an imagebox at the last line of a paragraph the edit button does not show up below the imagebox but at the top line of the imagebox. (tested with DokuWiki Release 2009-02-14 and default template) — Ralf 2009/02/23 14:14
Add this code in style.css:
div.dokuwiki div.secedit input.button { clear:both !important; }
— myst6re 2009/02/27 18:35
Does not display box
I have installed and refreshed the page and if I use the syntax you specified:
[{{news:imagehere.jpg|caption text}}]
it does not show a box at all, but rather it shows it like below:
Title
Try HARD-refresh (Shift + refresh)
-myst6reStill doesn't work! -ivan
relative folder
Limitation: in version available at 6/12/2009 only absolute path for the media-folder are supported.
If $match['src'] would be resolved with resolve_mediaid() even inputs like [{{car.gif|abc}}] (with car.gif is in a parallel media folder) could be displayed.
Fixed
— myst6re 2009/12/06 19:17
Does not display caption
$match['title'] is always empty, so the caption gets display:none;. I’ve changed the Parser in the handle function to workaround this:
$match=Doku_Handler_Parse_Media(substr($match.'|',3));
: Yes, this plugin seems to be broken (version 25.12.09) - changing the handle function has to be done in the universal DokuWiki code, not just the plugin folder - so this might brake other functions. - Could someone please fix this bug? (Bernd, 20. Jan 2010)
I fixed my mistake, sorry
— myst6re 2009/21/01 17:15
Thanks, comrade, this was fast, and it works - you are hereby awarded the Order of Glory! (Bernd 23.Jan 2010)
Does not work with image links?
It seems the plugin does not work with linked images.
[[www.somelink.com|{{www.somelink.com/imageone.jpg}}]]]
But thanks anyway - great idea
It works
You weren't using the right syntax. Here's how it works:
[{{http://exampleimage.jpg|Your caption}}]
Not working inside lists e.g. yalist
The image box is not shown as inline picture, but only as floating box:
-- item .. [{{...}}] - ... - ...
Not working between two paragraphs
This will place the second paragraph on the right side of the picture instead of after it (Google Chrome):
Text text text [{{...}}] Text text text
Similar problem. If i wrote:
[{{...|figure1}}]Paragraph 1 right to figure 1 [{{...|figure2}}]Paragraph 2 right to figure 2and if figure 1 is quite high, it show:
figure1 paragraph1 figure1 figure2 paragraph2instead of
figure1 paragraph1 figure2 paragraph2
(ribez 2011/04/23)
2015/10/16 - problem “Not working between two paragraphs” not fixed yet =(