summaryrefslogtreecommitdiff
path: root/templates/popup.mdwn
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2010-10-14 13:38:46 +0200
committerJonas Smedegaard <dr@jones.dk>2010-10-14 13:38:46 +0200
commit5749a9d2cc502cee4451b8b01898649d1bad8444 (patch)
treef7095d1c2fe24202c3e9cf873d358cebb0e9f17a /templates/popup.mdwn
Sync with ikiwiki 3.20100926.
Diffstat (limited to 'templates/popup.mdwn')
-rw-r--r--templates/popup.mdwn16
1 files changed, 16 insertions, 0 deletions
diff --git a/templates/popup.mdwn b/templates/popup.mdwn
new file mode 100644
index 0000000..92455eb
--- /dev/null
+++ b/templates/popup.mdwn
@@ -0,0 +1,16 @@
+<TMPL_UNLESS mouseover>
+Use this template to create a popup window that is displayed when the mouse
+is over part of the page. This template has two parameters:
+<ul>
+<li>`mouseover` - This is the text or other content that triggers the
+popup.
+<li>`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.
+</ul>
+Note that browsers that do not support the CSS will display the popup
+inline in the page, inside square brackets.
+</TMPL_UNLESS>
+<span class="popup"><TMPL_VAR mouseover>
+<span class="paren">[</span><span class="balloon"><TMPL_VAR popup></span><span class="paren">]</span>
+</span>