Skip to content

Commit

Permalink
wip: add FAQ entry for conditional rules syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
yohanboniface committed May 31, 2024
1 parent 86c15f2 commit bad5daf
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
10 changes: 10 additions & 0 deletions docs-users/fr/support/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,13 @@
* `Lien simple : [[http://example.com]]` → Lien simple : [http://example.com](http://example.com)
* `Lien avec texte : [[http://exemple.fr|texte du lien]]` → Lien avec texte : [texte du lien](http://example.com)
* `--- pour un séparateur horizontal` ⤵ <hr>


## Quelle syntaxe est acceptée dans les règles de formattage conditionnel ? {: #conditional-rules }

* `macolonne=impair` → cible les éléments dont la colonne `macolonne` vaut `impair`
* `macolonne!=impair` → cible les éléments dont la colonne `macolonne` est absente ou dont la valeur est différente de `impair`
* `macolonne>12` → cible les éléments dont la colonne `macolonne` est supérieur au nombre `12`
* `macolonne<12.34` → cible les éléments dont la colonne `macolonne` est inférieure au nombre `12.34`

Quand la condition est vraie pour un élément donné, le style associé sera appliqué.
11 changes: 10 additions & 1 deletion docs-users/support/faq.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Frequently Asked Questions (FAQ)

## Which syntax is allowed in description fields?
## Which syntax is allowed in description fields? {: #text-formatting }

* `*single star for italic*`*single star for italic*
* `**double star for bold**`**double star for bold**
Expand All @@ -10,3 +10,12 @@
* `Simple link: [[http://example.com]]` → Simple link: [http://example.com](http://example.com)
* `Link with text: [[http://example.com|text of the link]]` → Link with text: [text of the link](http://example.com)
* `--- for a horizontal rule` ⤵ <hr>

## Which syntax is allowed in conditional rules? {: #conditional-rules }

* `mycolumn=odd` → will match features whose column `mycolumn` equal `odd`
* `mycolumn!=odd` → will match features whose column `mycolumn` is missing or different from `odd`
* `mycolumn>12` → will match features whose column `mycolumn` is greater than `12` (as number)
* `mycolumn<12.34` → will match features whose column `mycolumn` is lower than `12.34` (as number)

When the condition match, the associated style will be applied to corresponding feature.

0 comments on commit bad5daf

Please sign in to comment.