2024-07-10 21:27:48 +02:00
|
|
|
== dictionaries/rougail/00-base.yml
|
|
|
|
|
|
|
|
[,yaml]
|
|
|
|
----
|
2024-11-08 22:11:34 +01:00
|
|
|
---
|
2024-07-10 21:27:48 +02:00
|
|
|
version: '1.1'
|
|
|
|
general: # a family
|
|
|
|
int:
|
|
|
|
description: a first number
|
|
|
|
type: number
|
2024-11-06 17:39:13 +01:00
|
|
|
test:
|
|
|
|
- 5
|
2024-07-10 21:27:48 +02:00
|
|
|
validators:
|
2024-11-06 17:39:13 +01:00
|
|
|
- jinja: |
|
2024-07-10 21:27:48 +02:00
|
|
|
{% if _.int == int2 %}
|
|
|
|
int and int2 must be different
|
|
|
|
{% endif %}
|
|
|
|
params:
|
|
|
|
int2:
|
|
|
|
variable: _.int2
|
|
|
|
optional: true
|
|
|
|
description: int and int2 must be different
|
2024-11-06 17:39:13 +01:00
|
|
|
- jinja: |
|
|
|
|
{% if int3 is defined and _.int == int3 %}
|
2024-07-10 21:27:48 +02:00
|
|
|
int and int3 must be different
|
|
|
|
{% endif %}
|
|
|
|
params:
|
|
|
|
int3:
|
|
|
|
variable: _.int3
|
|
|
|
optional: true
|
|
|
|
description: int and int3 must be different
|
|
|
|
int2: 1 # a second number
|
|
|
|
----
|
|
|
|
== Variables
|
|
|
|
|
|
|
|
=== a family
|
|
|
|
|
|
|
|
`basic`
|
|
|
|
|
2024-11-08 22:11:34 +01:00
|
|
|
[cols="1a,1a"]
|
2024-07-10 21:27:48 +02:00
|
|
|
|====
|
2024-11-15 08:13:45 +01:00
|
|
|
| Variable | Description
|
2024-07-10 21:27:48 +02:00
|
|
|
|
|
2024-11-15 08:13:45 +01:00
|
|
|
|
2024-07-10 21:27:48 +02:00
|
|
|
**general.int** +
|
2024-11-15 08:13:45 +01:00
|
|
|
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[number]` `basic` `mandatory` |
|
2024-07-10 21:27:48 +02:00
|
|
|
A first number. +
|
2024-11-07 22:51:28 +01:00
|
|
|
**Validators**:
|
2024-07-10 21:27:48 +02:00
|
|
|
|
|
|
|
* int and int2 must be different.
|
2024-11-06 17:39:13 +01:00
|
|
|
* int and int3 must be different.
|
|
|
|
|
2024-11-15 08:13:45 +01:00
|
|
|
**Example**: 5
|
2024-07-10 21:27:48 +02:00
|
|
|
|
|
2024-11-15 08:13:45 +01:00
|
|
|
|
2024-07-10 21:27:48 +02:00
|
|
|
**general.int2** +
|
2024-11-15 08:13:45 +01:00
|
|
|
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[number]` `standard` `mandatory` |
|
2024-07-10 21:27:48 +02:00
|
|
|
A second number. +
|
2024-11-15 08:13:45 +01:00
|
|
|
**Default**: 1
|
2024-07-10 21:27:48 +02:00
|
|
|
|====
|
|
|
|
|