]> sipb.mit.edu Git - ikiwiki.git/blobdiff - doc/plugins/toggle.mdwn
Migrate doc/plugins via prefix_directives
[ikiwiki.git] / doc / plugins / toggle.mdwn
index cb76d0b7b396b5797d0557b580076c6b0dda42c9..f25719ad3d56f124eab5479e6f79cee50ad692cd 100644 (file)
@@ -1,5 +1,5 @@
-[[template id=plugin name=toggle author="[[Joey]]"]]
-[[tag type/chrome]]
+[[!template id=plugin name=toggle author="[[Joey]]"]]
+[[!tag type/chrome]]
 
 With this plugin you can create links on pages that, when clicked, toggle
 display of other parts of the page.
@@ -28,3 +28,6 @@ each other, but can be located anywhere on the page. There can also be
 mutiple toggles that all toggle a single togglable.
 
 The id has a default value of "default", so can be omitted in simple cases.
+
+If you'd like a toggleable to be displayed by default, and toggle to
+hidden, then pass a parameter "open=true" when setting up the toggleable.