plugin:imagebox
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:imagebox [2016-11-04 15:47] – bug is closed flam | plugin:imagebox [2024-01-14 18:43] (current) – Aleksandr | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
---- plugin ---- | ---- plugin ---- | ||
- | description: | + | description : Syntax for display an image with a caption, like Wikipedia.org |
- | author | + | author |
- | email : lukas@rademacher.ac | + | email |
- | type | + | type : syntax |
- | lastupdate : 2016-11-04 | + | lastupdate |
- | compatible : Angua, Adora Belle, Weatherwax, Binky, Ponder Stibbons, | + | compatible |
- | depends | + | depends |
- | conflicts | + | conflicts |
- | similar | + | similar |
- | tags | + | tags : media, images, mediawiki, caption |
- | + | ||
- | downloadurl: | + | |
- | bugtracker : https:// | + | |
- | sourcerepo : https:// | + | |
+ | downloadurl : https:// | ||
+ | bugtracker | ||
+ | sourcerepo | ||
+ | donationurl : | ||
+ | |||
+ | screenshot_img : | ||
---- | ---- | ||
- | ===== Installation | + | ===== Description |
- | - Installing the plugin: | + | This plugin |
- | * Automatic: | + | |
- | * install the plugin via the [[plugin: | + | |
- | * Manual: | + | |
- | * you can extract the archive into the '' | + | |
- | - Update the '' | + | |
- | ===== Preview ===== | ||
- | {{http:// | + | {{https:// |
- | {{http:// | + | {{https:// |
- | {{http:// | + | {{https:// |
===== Usage ===== | ===== Usage ===== | ||
- | Just add '' | + | Just add '' |
[{{ImagePath|Caption}}] | [{{ImagePath|Caption}}] | ||
- | + | ||
The caption can be formatted. | The caption can be formatted. | ||
- | Make sure, to empty the cache of the browser. (In Firefox: Press [shift] while clicking | + | ===== Configuration ===== |
+ | |||
+ | The plugin can be configured within | ||
+ | |||
+ | ==== display magnify ==== | ||
+ | |||
+ | Display the click-enlarge icon: | ||
+ | |||
+ | * If necessary | ||
+ | * Always | ||
+ | * Never | ||
+ | |||
+ | ==== center align ==== | ||
+ | |||
+ | ==== default caption style ==== | ||
+ | |||
+ | Default style for the image caption: | ||
+ | |||
+ | * Normal | ||
+ | * Italic | ||
+ | * Bold | ||
===== History ===== | ===== History ===== | ||
+ | * 2023/08/13 : svg support, move plugin support, fix: alignmend-issues, | ||
+ | * 2019/07/31 : fixed height syntax | ||
+ | * 2019/07/02 : New languages, Float-fixes | ||
+ | * 2016/11/22 : Fixed responsive image size,fixed centered imageboxes, fixed overwidth captions | ||
* 2016/11/04 : PHP7 compatibility | * 2016/11/04 : PHP7 compatibility | ||
* 2016/11/04 : Forked to github | * 2016/11/04 : Forked to github | ||
Line 59: | Line 79: | ||
* 2008/11/18 : Don't resize images to their original size. (Better compression) | * 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/11/07 : imagebox use more DokuWiki functions (+ fix bad media URL) | ||
- | * 2008/10/07 : new version ! (Clean "< | + | * 2008/10/07 : new version ! (Clean "%%<div class=" |
- | + | ||
- | ====== Discussion ====== | + | |
- | + | ||
- | Brilliant! Kudos to FFTiger & myst6re. | + | |
- | --- //Kudos 2008/??/?? ??:??// | + | |
- | + | ||
- | > Thanks | + | |
- | > --- // | + | |
- | + | ||
- | Awesome plugin, but I have one feature request. | + | |
- | Maybe syntax like < | + | |
- | + | ||
- | Thanks, | + | |
- | -- // | + | |
- | + | ||
- | Hacked in support for the odt plugin. I've modified the code from syntax.php above so you'll have to manually copy and paste the code. Changes (added temporary private variable, modified render() function to include the ' | + | |
- | + | ||
- | It's very nice, but does not work in combination with the odt plugin. images within a box are ignored when exporting. | + | |
- | -- [[mc.prins@gmail.com|Mark]] | + | |
- | + | ||
- | I love the plugin and use it all over my wiki. I'm starting to use the [[http:// | + | |
- | -- [[apascall@engineering.ucsb.edu|Andy]] | + | |
- | + | ||
- | + | ||
- | ==== Does not work correctly? ==== | + | |
- | + | ||
- | This plugin does not work correctly. As instructed, I used the plugin manager to install this. Installation was successful, but using the code | + | |
- | [{{Image: | + | |
- | results in the following (with a single box around both text and image, but without box around the text and without the maximize icon on the right of the text): | + | |
- | + | ||
- | {{wiki: | + | |
- | + | ||
- | Title | + | |
- | + | ||
- | --- //Anonymous 2008/??/?? ??:??// | + | |
- | + | ||
- | > Firstly, have you tried Shift+Refresh? | + | |
- | > | + | |
- | > --- //FFTiger 2008/12/29 ??:??// | + | |
- | + | ||
- | >> I can confirm that the above described functionality is working correctly with the '' | + | |
- | >> | + | |
- | >> --- // | + | |
- | + | ||
- | ---- | + | |
- | + | ||
- | Version 2009-04-23 | + | |
- | Bug: alignment to center does not work. | + | |
- | Fix: in file style.css line 19 change | + | |
- | < | + | |
- | div.tcenter{ | + | |
- | to | + | |
- | div.ttcenter{ | + | |
- | </ | + | |
- | --- // | + | |
- | + | ||
- | ---- | + | |
- | + | ||
- | For me, the alignment to center didn't work, even with the Marhaj' | + | |
- | In the syntax.php, line 35, I replaced: | + | |
- | < | + | |
- | by: | + | |
- | < | + | |
- | + | ||
- | With the original version, the script takes the syntax " | + | |
- | In my modification, | + | |
- | + | ||
- | To center a picture, you have to put a space after " | + | |
- | + | ||
- | --- Yohann - 10:05 - 06-29-2009 | + | |
- | + | ||
- | ==== 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: | + | |
- | > <code css> | + | |
- | 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: | + | |
- | < | + | |
- | + | ||
- | {{wiki: | + | |
- | + | ||
- | Title | + | |
- | + | ||
- | + | ||
- | > Try HARD-refresh (Shift + refresh) | + | |
- | > | + | |
- | >> | + | |
- | + | ||
- | ==== relative folder ==== | + | |
- | + | ||
- | __Limitation__: | + | |
- | + | ||
- | If **$match[' | + | |
- | + | ||
- | > Fixed :-) | + | |
- | > --- //myst6re 2009/12/06 19:17// | + | |
- | + | ||
- | ==== Does not display caption ==== | + | |
- | + | ||
- | %%$match[' | + | |
- | $match=Doku_Handler_Parse_Media(substr($match.' | + | |
- | + | ||
- | : 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 [[wp> | + | |
- | + | ||
- | ====Does not work with image links? | + | |
- | + | ||
- | It seems the plugin does not work with linked images. | + | |
- | [[www.somelink.com|{{www.somelink.com/ | + | |
- | But thanks anyway - great idea | + | |
- | + | ||
- | === It works === | + | |
- | + | ||
- | You weren' | + | |
- | + | ||
- | ==== 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 paragraph1 | + | |
- | figure1 figure2 paragraph2 | + | |
- | </ | + | |
- | >< | + | |
- | figure1 paragraph1 | + | |
- | + | ||
- | figure2 paragraph2 | + | |
- | </ | + | |
- | > (ribez 2011/ | + | |
- | > 2015/10/16 - problem "Not working between two paragraphs" | + | |
- | === " | + | ===== Discussion & Troubleshooting ===== |
- | If used with a img url it displays bos and caption but " | + | If you encounter problems make sure, to empty the cache of the browser. (In Firefox: Press [shift] while clicking the reload button) |
- | [{{http:// | + | Please use the issue tracker for feature-requests and bug-reports. |
plugin/imagebox.1478270825.txt.gz · Last modified: 2016-11-04 15:47 by flam