DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:stepbystep

StepByStep Plugin

Compatible with DokuWiki

  • 2024-02-06 "Kaos" unknown
  • 2023-04-04 "Jack Jackrum" yes
  • 2022-07-31 "Igor" unknown
  • 2020-07-29 "Hogfather" unknown

plugin Displays step-by-step tutorials, spoilers, or more information about a topic

Last updated on
2023-09-25
Provides
Syntax
Repository
Source

Similar to folded, hidden, hide, spoiler

Tagged with hidden, spoiler

Installation

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

Requirement

:!: Configuration Setting: defer_js must be set to true!

Examples/Usage

The purpose of the plugin is to display information (as a box) that can be expanded by clicking on it to show more details.

A simple box with title is created this way:

#: Title of the hidden content
Hidden content goes here
:#

The Image shows the following:

#: Step 1
If you already know this, you can also continue with [[#step 3]].

more text...
:#

#: Step 2
Much more Text... 
:#

#: Step 3
Finally done :-)
:#

Looks like:

Syntax

There are two start(#:, ##:) and two end (:#, :##) tags. A complete box is created according to the following scheme:

  1. Start: #: title [||options] /n
  2. Content: content
  3. End: :# /n

The title is optional, but it makes no sense without a title. Here the DokuWiki markup is not parsed. Each title becomes the anchor of a box, following the naming conventions of DokuWiki. Characters that are not allowed are replaced by _. This also applies to :. This makes it possible (e.g. in instructions) to skip steps by specifying the corresponding target step in a link(e.g:[[#step_3|step 3]] link to a box with title Step 3 on the same page).

:!: Tags must be placed alone on one line.

The content is optional as well. But it also makes no sense to work without content. The content understands DokuWiki markup.

Options are possible in the start tag. These are separated from the title by a double pipe (||). Each individual option must be separated from the next by a space. Currently the following options are supported:

ValueDescriptionExample
openexpand the box by default#: Step 1||open
preview:xxxexpand part of the box to the specified height, where xxx is a css length#: Step 1||preview:5em
noframeremoves the border and background, set title to bold#: Step 1||noframe

Options and combinations with noframe:

#: 2023-09-19: Hello again...||noframe
Lorem ipsum dolor ...
:#

#: 2023-09-15: Hello World 2!||noframe preview:2.5em
Lorem ipsum dolor ...
:#

#: 2023-09-10: Hello World!||noframe open
Lorem ipsum dolor ...
:#

No frame

Nesting of levels is possible.

Configuration and Settings

There are no additional settings.

The following colors are used and depend on the style chosen:

ElementColor in stylestyle.ini
Box header backgroundNeutral background color@ini_background_neu
Box header hoovered/openedThe general link color@ini_link
Box backgroundMain background color@ini_background
Box BorderThe general link color@ini_link
TextMain text color@ini_text

Those colors are easily changed. The bundled styling plugin available via “admin” → “template style setting” allows easy changes. Alternatively, one can directly edit style.ini file.

Change Log

Known Bugs and Issues

plugin/stepbystep.txt · Last modified: 2023-09-25 10:32 by saggi

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