The %%viewer JSPWikiStyles allows you to embed images, video's (check out the supported formats), wikipages or external sites directly into your page. Viewer is available since v2.10.x, in the Haddock Template.
Usage#
Put the %%viewer markup around one or more links: images, video's, wiki-pages or external links.
%%viewer [Man Eater on VIMEO|https://vimeo.com/44866791] /%You can also add the viewer class directly to the link.
[ Man Eater on VIMEO | https://vimeo.com/44866791 | class='viewer' ]
Example
Supported formats#
- Images: .bmp, .gif, .png, .jpg, .jpeg, .tiff
- Special: the following urls are automatically recognised and converted to retrieve the actual media (mostly video). This means that you can just include the e.g. youtube-url and the viewer will show the actual media.
- JSPWiki page links
- Any external links: eg https://jspwiki-wiki.apache.org
Note: you can use Maps followed by an address to quickly access google maps.
Examples#
View the Haddock Template wikipage#
[Haddock Template |Reader:Haddock Template|class='viewer']
Youtube#
%%viewer [Flat Life by Jonas Geirnaert | http://www.youtube.com/watch?v=YMkHBGWFysY] /%
Vimeo#
[Man Eater on VIMEO|http://vimeo.com/44866791|class='viewer']
TEDx#
%%viewer [Growing Mustaches on TEDx|http://www.ted.com/talks/adam_garone_healthier_men_one_moustache_at_a_time.html] /%
Google Maps#
%%viewer [Atomium on G-Maps|https://maps.google.com/maps?q=Atomium,City+of+Brussels,Belgium] /%TEST
External website#
%%viewer [Apache JSPWiki.org|https://jspwiki-wiki.apache.org] /%
%%viewer [http://jsfiddle.net/zalun/NmudS/] /%