DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:togglewrap

togglewrap Plugin

Compatible with DokuWiki

  • 2017-02-19 "Frusterick Manners" unknown
  • 2016-06-26 "Elenor Of Tsort" unknown
  • 2015-08-10 "Detritus" unknown
  • 2014-09-29 "Hrun" yes

plugin Show/hide wraps with checkboxes

Last updated on
2014-12-07
Provides
Syntax
Repository
Source
Requires
wrap

Similar to hidden, hide, sectiontoggle, spoiler

Tagged with hide, spoiler, wrap

Installation

:!: External requirements: This plugin requires the following additional components that must be installed separately:

Install the plugin using the Plugin Manager and the download URL above, which points to latest version of the plugin. Refer to Plugins on how to install plugins manually.

:!: seems the plugin don't save the checked-state after reloading the page it's default again:

Examples/Usage

{{togglewrap>wrapname&checked|label for checkbox}}

<WRAP wrapname>
This wrap is visible when checkbox is checked and is not visible when checkbox is unchecked.
</WRAP>

<WRAP not_wrapname>
This wrap is not visible when checkbox is checked and is visible when checkbox is unchecked.
</WRAP>

See the plugin in action http://jonas.tuxfamily.org/wiki/playground/playground/togglewrap, http://mythtv-fr.org/wiki/mythtv-setup.

Syntax

Syntax for a checkbox:

{{togglewrap>wrapname[&checked][|label])}}
  • wrapname the name of WRAP or wrap.
  • checked (optionnal) is checked by default
  • label (optonnal) the label of checkbox

Syntax for wrap

<wrap wrapname>...</wrap>
<WRAP wrapname>...</WRAP>
  • is visible when checkbox wrapname is checked
<wrap not_wrapname>...</wrap>
<WRAP not_wrapname>...</WRAP>
  • is visible when checkbox wrapname is unchecked

Change Log

Known Bugs and Issues

plugin/togglewrap.txt · Last modified: 2016-10-21 23:17 by 130.83.7.77