File:  [NetBSD Developer Wiki] / wikisrc / templates / popup.mdwn
Revision 1.1: download - view: text, annotated - select for diffs
Tue Nov 10 00:29:02 2009 UTC (11 years ago) by jym
Branches: MAIN
CVS tags: HEAD
Add the popup template. Appeared in the template directory, but was not yet
added. Wikify and add examples.

    1: <TMPL_UNLESS NAME="mouseover">
    2: ## Description
    3: 
    4: Use this template to create a popup window that is displayed when the mouse
    5: is over part of the page. This template has two parameters:
    6: 
    7: * *mouseover* - This is the text or other content that triggers the popup.
    8: * *popup* - This should be the content of the popup window. It can be anything, even images or a whole little wiki page, but should not be too large for good usability.
    9: 
   10: Note that browsers that do not support the CSS will display the popup inline in the page, inside square brackets.
   11: 
   12: ## Examples
   13: 
   14: Trigger a popup when [[!template id=popup mouseover="hovering this text" popup="Here comes the content of the popup."]]:
   15: 
   16:         \[[!template id=popup mouseover="hovering this text" popup="Here comes the content of the popup."]]
   17: 
   18: </TMPL_UNLESS>
   19: <span class="popup"><TMPL_VAR mouseover>
   20: <span class="paren">[</span><span class="balloon"><TMPL_VAR popup></span><span class="paren">]</span>
   21: </span>

CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb