From b007af915b2e35f89e7fdfe7b2c7d16bbeed5e92 Mon Sep 17 00:00:00 2001 From: Thibaud WOJTOWICZ Date: Sat, 14 Aug 2021 23:23:08 +0200 Subject: [PATCH] number is just after string type --- .../packaging_apps_arguments_format.fr.md | 62 +++++++++---------- .../packaging_apps_arguments_format.md | 62 +++++++++---------- 2 files changed, 62 insertions(+), 62 deletions(-) diff --git a/pages/04.contribute/04.packaging_apps/07.arguments/01.arguments_format/packaging_apps_arguments_format.fr.md b/pages/04.contribute/04.packaging_apps/07.arguments/01.arguments_format/packaging_apps_arguments_format.fr.md index b9678599..236acd02 100644 --- a/pages/04.contribute/04.packaging_apps/07.arguments/01.arguments_format/packaging_apps_arguments_format.fr.md +++ b/pages/04.contribute/04.packaging_apps/07.arguments/01.arguments_format/packaging_apps_arguments_format.fr.md @@ -113,9 +113,38 @@ default = "en" # optional "en": "the question in english", "fr": "la question en français" }, - "example": "an example value", + "example": "Un exemple de valeur", "choices": ["fr", "en"], - "default": "en" // optional + "default": "en" // optionel +}, +``` +[/ui-tab] +[/ui-tabs] + +### Nombre + +Comme le type chaîne de caractères (en anglais: `string`) mais uniquement pour les nombres. + +[ui-tabs position="top-left" active="0" theme="lite"] +[ui-tab title="in toml"] +```toml +[maybe.some.stuff.before.the_name] +type = "number" +ask.en = "the question in english" +ask.fr = "la question en français" +default = 0 +``` +[/ui-tab] +[ui-tab title="in json"] +```javascript +{ + "name": "the_name", + "type": "number", + "ask": { + "en": "the question in english", + "fr": "la question en français" + }, + "default": 0 }, ``` [/ui-tab] @@ -268,35 +297,6 @@ default = true [/ui-tab] [/ui-tabs] -### Nombre - -Comme le type string mais uniquement pour les nombres. - -[ui-tabs position="top-left" active="0" theme="lite"] -[ui-tab title="in toml"] -```toml -[maybe.some.stuff.before.the_name] -type = "number" -ask.en = "the question in english" -ask.fr = "la question en français" -default = 0 -``` -[/ui-tab] -[ui-tab title="in json"] -```javascript -{ - "name": "the_name", - "type": "number", - "ask": { - "en": "the question in english", - "fr": "la question en français" - }, - "default": 0 -}, -``` -[/ui-tab] -[/ui-tabs] - ### Application Ce type demande à l'utilisateur de selectionner une application dans la liste diff --git a/pages/04.contribute/04.packaging_apps/07.arguments/01.arguments_format/packaging_apps_arguments_format.md b/pages/04.contribute/04.packaging_apps/07.arguments/01.arguments_format/packaging_apps_arguments_format.md index 4a1aebc4..f3dbfb27 100644 --- a/pages/04.contribute/04.packaging_apps/07.arguments/01.arguments_format/packaging_apps_arguments_format.md +++ b/pages/04.contribute/04.packaging_apps/07.arguments/01.arguments_format/packaging_apps_arguments_format.md @@ -118,6 +118,37 @@ default = "en" # optional ``` [/ui-tab] [/ui-tabs] +### Number + +Like string except the user needs to enter a number + +Example in toml: +[ui-tabs position="top-left" active="0" theme="lite"] +[ui-tab title="in toml"] + +```toml +[maybe.some.stuff.before.the_name] +type = "number" +ask.en = "the question in english" +ask.fr = "la question en français" +default = 0 +``` +[/ui-tab] +[ui-tab title="in json"] +```javascript +{ + "name": "the_name", + "type": "number", + "ask": { + "en": "the question in english", + "fr": "la question en français" + }, + "default": 0 +}, +``` +[/ui-tab] +[/ui-tabs] + ### Domain @@ -270,37 +301,6 @@ default = true [/ui-tab] [/ui-tabs] -### Number - -Like string except the user needs to enter a number - -Example in toml: -[ui-tabs position="top-left" active="0" theme="lite"] -[ui-tab title="in toml"] - -```toml -[maybe.some.stuff.before.the_name] -type = "number" -ask.en = "the question in english" -ask.fr = "la question en français" -default = 0 -``` -[/ui-tab] -[ui-tab title="in json"] -```javascript -{ - "name": "the_name", - "type": "number", - "ask": { - "en": "the question in english", - "fr": "la question en français" - }, - "default": 0 -}, -``` -[/ui-tab] -[/ui-tabs] - ### App This type will ask the user to select an application in the list of installed