X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/0bb4eaad092f0c6bdcd3ec779a27763c282cd00e..edfe8693814ef48426dc35fa76cdd145871fbc96:/doc/plugins/toggle.mdwn?ds=sidebyside diff --git a/doc/plugins/toggle.mdwn b/doc/plugins/toggle.mdwn index cb76d0b7b..5e0b8392a 100644 --- a/doc/plugins/toggle.mdwn +++ b/doc/plugins/toggle.mdwn @@ -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. @@ -9,15 +9,15 @@ always see the full page content. Example use: - \[[toggle id="ipsum" text="show"]] + \[[!toggle id="ipsum" text="show"]] - \[[toggleable id="ipsum" text=""" + \[[!toggleable id="ipsum" text=""" Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. - [[toggle id="ipsum" text="hide"]] + [[!toggle id="ipsum" text="hide"]] """]] Note that you can include wiki markup in the toggleable text, @@ -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.