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-27 23:55] – [structcondstyle Plugin] larsOhne | plugin:structcondstyle [2024-03-04 09:56] (current) – Aleksandr | ||
---|---|---|---|
Line 5: | Line 5: | ||
author | author | ||
email : ohnemus.lars@gmail.com | email : ohnemus.lars@gmail.com | ||
- | type : | + | type : |
- | 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 28: | Line 28: | ||
Search and install the plugin using the [[plugin: | Search and install the plugin using the [[plugin: | ||
- | ===== Examples/ | ||
- | //[Most people learn by example, so this goes first]// | + | ===== Syntax ===== |
- | See the plugin | + | The plugin |
- | A simple box: | + | Basic syntax: |
+ | < | ||
+ | ---- struct table---- | ||
+ | schema: schema1 | ||
+ | cols: * | ||
+ | condstyle: COLUMN NAME = ARGUMENT ? "STYLE TRUE" : "STYLE FALSE" | ||
+ | ---- | ||
+ | </ | ||
- | < | + | 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: | ||
- | Some more complex boxes | + | ^ Operator |
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
- | <box 80% round orange|a title> | + | To adress |
- | <box 50% left blue>the box contents< | + | |
- | <box 60% round #f99 #fc9 #fcc # | + | |
- | //[Pictures showing the rendered result will help users to understand]// | + | //Example:// |
+ | condstyle | ||
- | ===== Syntax ===== | ||
- | |||
- | //[Complete syntax]// | ||
- | |||
- | Basic syntax: | ||
- | < | ||
- | * **action** can be one of this: | ||
- | * // | ||
- | * //history// --- old revisions | ||
- | |||
- | ===== Configuration and Settings ===== | ||
- | |||
- | //[also CSS style tips]// | ||
===== Development ===== | ===== Development ===== | ||
- | // | + | The pluging is actively maintained and improved. |
=== Change Log === | === Change Log === | ||
- | // | + | FIXME |
- | + | ||
- | * **2009-01-01** | + | |
- | * Initial release | + | |
- | + | ||
- | === Known Bugs and Issues === | + | |
- | + | ||
- | //[this section might not be needed in case of external bug manager, or use RSS feed]// | + | |
=== ToDo/Wish List === | === ToDo/Wish List === | ||
- | // | + | This plugin uses the PHP mbstring extension which is rarely included by default. |
===== FAQ ===== | ===== FAQ ===== | ||
- | //[discussions should ideally be deleted and turned into FAQ entries along the way]// | + | //Nothing yet// |
===== Discussion ===== | ===== Discussion ===== | ||
- | //Could be placed on an external page (e.g. plugin: | + | //nothing yet// |
plugin/structcondstyle.1609109709.txt.gz · Last modified: 2020-12-27 23:55 by larsOhne