DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:structnumber

structnumber Plugin

Compatible with DokuWiki

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

plugin A formatable number type for struct

Last updated on
2024-05-08
Provides
Action
Repository
Source
Requires
sqlite, struct

This plugin is only a case study and will soon be marked as obsolete

This extension is marked as obsoleted. Therefore it is hidden in the Extension Manager and the extension listing. Furthermore, it is candidate for removal.

Tagged with !obsolete

Installation

:!: This plugin is only a case study and will soon be marked as obsolete :!:

:!: 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

The number type is structured like the decimal type. Maximum and minimum values can be specified. The difference to decimal is that a format can be specified. This is done under the configuration of the field.

The format is checked; if it is not acceptable, the standard format %01.2f is used.

Permitted types are: bdeEfFu

Syntax

Configuration and Settings

The following configuration is available in addition to the basic type configuration:

Config Format Description
min float The number has to be at least this value. Be sure to specify decimals with a . as decimal point!
max float The number may be at most this value. Be sure to specify decimals with a . as decimal point!
format string a format for sprintf format
prefix string This text will be prepended to the saved value - useful for currency symbols
postfix string This text will be appended to the saved value - useful for currency symbols

Development

The source code of the plugin is available at GitHub: https://github.com/saggi-dw/dokuwiki-plugin-structnumber.

Changelog

plugin/structnumber.txt · Last modified: 2024-05-13 07:24 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