DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:structprogress

structprogress Plugin

Compatible with DokuWiki

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

plugin Progress type for struct

Last updated on
2023-06-21
Provides
Action
Repository
Source
Requires
struct

Tagged with progress, progressbar

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.

Examples/Usage

As with the Decimal type, a number can be entered that will be displayed in a progress bar:

Progres bar in struct

Usage

This plugin adds another struct type Progress.

The bar is represented as x% of the maximum (100*value/max), so that also specifications like 789/1000, 80 of 85 points or 0.94/1 are possible.

maxprefixpostfixvalueresult
1000Progress: /1000789
85empty/85 Points80
1cos⁡ φ: empty0,94

Configuration and Settings

OptionDescriptiondefaultComments
maxThe Maximum Progress100Value must be greater than 0, otherwise the default value is used
prefixA text displayed before the valueemptyIn Sample: Progress: is used
postfixA text displayed after the valueemptyIn Sample: % is used
typeA Style DescriptordefaultA style for the value rounded also exist

The style under type is accessible under the following descriptors in e.g. userstyle.css:

OptionValue
typemystyle
.struct_progress-background_mystyle {
  
}

.struct_progress_mystyle {
  
}

.struct_progress_mystyle>p {
  
}

Styles that do not exist are displayed in the default style.

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

ElementColor in stylestyle.ini
Border of the Progress barBorder color@ini_border
TextMain text color@ini_text
Progress bar fillThe Neutral background color@ini_background_neu

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.

Development

Change Log

Discussion

plugin/structprogress.txt · Last modified: 2023-06-21 08:57 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