rougail-output-doc/tests/docs/no_namespace/40_8calculation_multi_variable.adoc

52 lines
1.8 KiB
Text
Raw Normal View History

2024-07-10 21:27:48 +02:00
== dictionaries/rougail/00-base.yml
[,yaml]
----
version: '1.1'
var:
description: a first variable
default:
- type: variable
variable: _.var2
- type: variable
variable: _.var3
var2: no # a second variable
var3: yes # a third variable
----
== Variables
[cols="108a,108a",options="header"]
|====
| Variable | Description
|
**var** +
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `unique` `multiple` |
A first variable. +
**Default**:
* the value of the variable "var2".
* the value of the variable "var3".
|
**var2** +
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` |
A second variable. +
**Default**: no
|
**var3** +
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` |
A third variable. +
**Default**: yes
|====
== Example with all variables modifiable
[,yaml]
----
var:
- no
- yes
var2: no
var3: yes
----