Forms & quizzes

From Redazione
Jump to navigation Jump to search
Line 18: Line 18:
 
{{#CI form:  
 
{{#CI form:  
 
title = Contact form
 
title = Contact form
| submit = ici.tbilisi@culturaitaliana.org
+
| submit = support@culturaitaliana.org
 
| first and last name [] *
 
| first and last name [] *
 
| email [email]  *
 
| email [email]  *
Line 24: Line 24:
 
}}
 
}}
  
where the double square brackets represent an input (if empty the input type is assumed to be 'text' otherwise it can be any of 'password', 'textarea', 'email', 'search', 'tel', 'file', 'number', 'url', 'time', 'date') the asterisk a mandatory field, and a pipe is of course used to separate the rows.
+
where the double square brackets represent an input (if empty the input type is assumed to be 'text' otherwise it can be any of 'password', 'textarea', 'email', 'search', 'tel', 'file', 'number', 'url', 'time', 'date') the asterisk a mandatory field, and the pipe is of course used to separate rows.
  
 
But a '''CI form''' template (precisely a 'parser function') can be also used to display inputs with placeholders, like the following:
 
But a '''CI form''' template (precisely a 'parser function') can be also used to display inputs with placeholders, like the following:
  
{{#CI form:  
+
{{#CI form: title = Contact form
title = Contact form
+
| submit = support@culturaitaliana.org
| submit = ici.tbilisi@culturaitaliana.org
 
 
| [first name] *
 
| [first name] *
 
| [last name] *
 
| [last name] *
| [email=email ] *
+
| [email=email] *
| [textarea]  *
 
 
}}
 
}}
  
  
 +
multiple choice questions:
  
 +
{{#CI form: title = Why do you want to learn Italian?
 +
| type = multiple choice  | list-type = letters | max answers = 2
 +
| I want to work using Italian language
 +
| I want to study using Italian language
 +
| Cultural interest / personal knowledge
 +
| interpersonal relationships [] *
 +
| prospective stay in Italy
 +
}}
  
  
Currently the parser function '''CI form''' can display the following type of forms:
+
and even [https://en.wikipedia.org/wiki/Cloze_test cloze (completion) test], like the following:
* inputs (as in the example above)
+
 
* multiple choice questions
+
{{#CI form: title = Metti i verbi al futuro semplice
* Cloze tests (completion tests)
+
| type = cloze test
 +
| * Vedo, vedo... che tra poco [incontrare=incontrerai] l'uomo della tua vita
 +
| Vedo, vedo... che [avere] una grande vincita al gioco
 +
| Questa carta mi dice che [vincere] il concorso che hai appena fatto
 +
| Quest'altra carta mi dice che [sposarsi] al massimo entro tre anni
 +
| Ah, qui vedo che [fare] un viaggio molto interessante
 +
| Qui vedo che [andare] ad abitare in un'altra citta'
 +
}}
  
The
+
where the asterisk denotes an example answer, conversely than a mandatory field in the 'inputs' type

Revision as of 19:38, 1 February 2021

Cultura italiana offers effective tools for rapid creation of forms, fitted to various purposes, and quizzes, which have been inspired by this Wikiversity's extension and have further developed for an optimal user experience, and diverge mainly because the submitted data are sent to the provided email address, rather than used to compute a score.

A form can be created through a template like the following:

{{#CI form: 
title = Contact form
| submit = support@culturaitaliana.org
| first and last name [] *
| email [email] *
| your message [textarea] *
}}

which produces the following result


Contact form
form protected using Google recaptcha

where the double square brackets represent an input (if empty the input type is assumed to be 'text' otherwise it can be any of 'password', 'textarea', 'email', 'search', 'tel', 'file', 'number', 'url', 'time', 'date') the asterisk a mandatory field, and the pipe is of course used to separate rows.

But a CI form template (precisely a 'parser function') can be also used to display inputs with placeholders, like the following:

Contact form
form protected using Google recaptcha


multiple choice questions:

Why do you want to learn Italian?
  1. I want to work using Italian language
  2. I want to study using Italian language
  3. Cultural interest / personal knowledge
  4. interpersonal relationships *
  5. prospective stay in Italy
form protected using Google recaptcha


and even cloze (completion) test, like the following:

Metti i verbi al futuro semplice
  1. Vedo, vedo... che tra poco (incontrare) incontrerai l'uomo della tua vita
  2. Vedo, vedo... che (avere) una grande vincita al gioco
  3. Questa carta mi dice che (vincere) il concorso che hai appena fatto
  4. Quest'altra carta mi dice che (sposarsi) al massimo entro tre anni
  5. Ah, qui vedo che (fare) un viaggio molto interessante
  6. Qui vedo che (andare) ad abitare in un'altra citta'
form protected using Google recaptcha

where the asterisk denotes an example answer, conversely than a mandatory field in the 'inputs' type