Klap-in / dokuwiki-plugin-imagereference

Dokuwiki plugin that creates references to images/tables in your text, like the LaTeX figure references.
https://www.dokuwiki.org/plugin:imagereference
0 stars 7 forks source link

Numbering is not working and Imagedescription not shown by <imgref image1> #2

Closed joemouth closed 11 years ago

joemouth commented 11 years ago

Hi,

I have two images in my page:

====== Level 1 ====== ===== Level 1.1 ===== ==== Level 1.1.1 ==== <imgcaption image1| Text 1>{{i1.jpg?Text 1}}</imgcaption>

===== Level 1.2 ===== ==== Level 1.2.1 ==== <imgcaption image1| Text 2>{{i2.jpg?Text 2}}</imgcaption>

The numbering for both images is: Abb. 1 I thought image 2 should be: Abb. 2

With <imgref image1> at the end of the page only Abbildung 1 and no description is displayed.

It would be nice not only th show a link but also the description of the images.

Klap-in commented 11 years ago

image1 should be unique for each image, so please change your syntax to:

<imgcaption image1| Text 1>{{i1.jpg?Text 1}}</imgcaption> <imgcaption image2| Text 2>{{i2.jpg?Text 2}}</imgcaption>

-> see the change of the 2nd image1 into image2.

and <imgref image1> respectively <imgref image2> will input only figure 1 resp. figure 2.

So far i have no plans for including the caption too. What is the use case for displaying the caption too with <imgref >? For me it seems not useful... but maybe you can clear up this view.

joemouth commented 11 years ago

Thanks for the fast response and clarification.

There was a misunderstanding, I thought ....image1.... is some kind of a group of images and '''''' is an index of all images in the group "image1".

It would be a great help and work, if your plugin will do such things which are very useful in technical documentations.

Klap-in commented 11 years ago

It would be a great help and work, if your plugin will do such things which are very useful in technical documentations.

I add it to my todo list, but please don't hurry :)