DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:togglewrap

togglewrap Plugin

Compatible with DokuWiki

Hrun

plugin Show/hide wraps with checkboxes

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

This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.

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:

Search and install the plugin using the Extension Manager. 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: 2018-06-06 00:11 by Klap-in

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki