plugin:structcondstyle
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:structcondstyle [2020-12-28 00:27] – [Development] larsOhne | plugin:structcondstyle [2024-03-04 09:56] (current) – Aleksandr | ||
---|---|---|---|
Line 6: | Line 6: | ||
email : ohnemus.lars@gmail.com | email : ohnemus.lars@gmail.com | ||
type : action, struct | type : action, struct | ||
- | lastupdate : 2020-12-27 | + | lastupdate : 2022-06-02 |
compatible : Hogfather | compatible : Hogfather | ||
depends | depends | ||
conflicts | conflicts | ||
similar | similar | ||
- | tags : color, struct, data, strata, conditional, | + | tags : color, struct, data, strata, conditional, |
downloadurl: | downloadurl: | ||
- | bugtracker : http:// | + | bugtracker : https:// |
- | sourcerepo : http:// | + | sourcerepo : https:// |
donationurl: | donationurl: | ||
Line 30: | Line 30: | ||
===== Syntax ===== | ===== Syntax ===== | ||
+ | |||
The plugin adds a new keyword to the definition of struct aggregations (see [[plugin: | The plugin adds a new keyword to the definition of struct aggregations (see [[plugin: | ||
Line 40: | Line 41: | ||
---- | ---- | ||
</ | </ | ||
+ | |||
The conditional part (// COLUMN = ARGUMENT//) compares the current row's value in the //COLUMN// to the argument, using a (boolean) operator. If the condition is true, the //STYLE TRUE// will be applied to the row, otherwise the //STYLE FALSE// will be applied. The style are plain CSS code (multiple statements, each ended with a semicolon) and have to be allways wrapped within quotation marks. | The conditional part (// COLUMN = ARGUMENT//) compares the current row's value in the //COLUMN// to the argument, using a (boolean) operator. If the condition is true, the //STYLE TRUE// will be applied to the row, otherwise the //STYLE FALSE// will be applied. The style are plain CSS code (multiple statements, each ended with a semicolon) and have to be allways wrapped within quotation marks. | ||
Currently, the following operators are recognized: | Currently, the following operators are recognized: | ||
+ | |||
^ Operator | ^ Operator | ||
- | | = | Row value has to be equal to the argument | + | | '' |
- | | != / not | Row value has to be not equal to the argument | + | | '' |
- | | < | Row value has to be less than the argument | + | | '' |
- | | > | Row value has to be greater than the argument | + | | '' |
- | | < = | Row value has to be less than or equal to the argument | + | | '' |
- | | >= | Row value has to be greater than or equal to the argument | + | | '' |
- | | contains | + | | '' |
- | To adress the current date and time, the keyword //now// may be used as a argument. | + | To adress the current date and time, the keyword //now// may be used as an argument. |
+ | // | ||
+ | condstyle | ||
===== Development ===== | ===== Development ===== | ||
+ | |||
The pluging is actively maintained and improved. | The pluging is actively maintained and improved. | ||
=== Change Log === | === Change Log === | ||
+ | |||
FIXME | FIXME | ||
=== ToDo/Wish List === | === ToDo/Wish List === | ||
- | FIXME | + | |
+ | This plugin uses the PHP mbstring extension which is rarely included by default. | ||
===== FAQ ===== | ===== FAQ ===== | ||
Line 71: | Line 79: | ||
//nothing yet// | //nothing yet// | ||
- | |||
plugin/structcondstyle.1609111647.txt.gz · Last modified: 2020-12-28 00:27 by larsOhne