User Tools

Site Tools


samana:johann:makrosolu
no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


Previous revision
Next revision
samana:johann:makrosolu [2019/01/07 11:39] admin
Line 1: Line 1:
 +~~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.
 +
 +<WRAP center round alert 60%>
 +Sorry, at the moment the demo is broken.
 +</WRAP>
 +
 +
 +----
 +
 +#@li2i_HTML~sao_small.jpg,sao.jpg~@#
 +
 +----
 +
 +===== The wiki code =====
 +<code>
 +#@li2i_HTML~sao_small.jpg,sao.jpg~@#
 +</code>
 +
 +===== The makro 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 =====
 +
 +  * 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 \\
 +**Furthermore:** [[doku>namespaces]]
samana/johann/makrosolu.txt · Last modified: 2019/06/22 08:24 by michaelsy