~~Title: Makrosolution ~~
====== 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.
----
#@li2i_HTML~sao_small.jpg,sao.jpg~@#
----
===== The wiki code =====
#@li2i_HTML~sao_small.jpg,sao.jpg~@#
===== The macro definition =====
| \_\_%%li2i_HTML%%\_\_ | %%%% |
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 =====
* This macro links only two images that belong to the current namespace. (References //beneath// the current namespace should also be possible. But not tested yet.)
* There are no formatting options. (You can do this by CSS or by changing the makro code.)
* Maybe it works only with JPG-images (I have seen that PNG-files are linked by DokuWiki in another way.)
===== Links =====
**The Textinsert plugin:** [[doku>plugin:textinsert]] \\
**Backlinks:** https://forum.dokuwiki.org/post/63065 -- https://forum.dokuwiki.org/post/63066 -- https://forum.dokuwiki.org/post/65677 -- [[https://forum.dokuwiki.org/post/66586]] \\
**Furthermore:** [[doku>namespaces]]