Table of Contents

Linking Image A ⇒ Image B

Solution via Textinsert Plugin (Makro)

(Proof of concept)

The Task

Linking of two different images in the current namespace (that means: namespace relative)

The Demonstration

Please klick on the small picture.


sao_small.jpg


The wiki code

#@li2i_HTML~sao_small.jpg,sao.jpg~@#

The macro definition

  li2i_HTML   <a href="/lib/exe/fetch.php?media=#@NS@#:%2" class="media" title="#@NS@#:%2"><img src="/lib/exe/fetch.php?media=#@NS@#:%1" class="mediacenter" title="%1" alt="%1"></a>

The name of the makro  li2i  stands for “Link Image To Image”. The appendix  _HTML  is a requirement of the plugin for generating HTML code.

Limitations

The Textinsert plugin: plugin:textinsert
Backlinks: https://forum.dokuwiki.org/post/63065https://forum.dokuwiki.org/post/63066https://forum.dokuwiki.org/post/65677https://forum.dokuwiki.org/post/66586
Furthermore: namespaces