CIForms sandbox: Difference between revisions
| Line 211: | Line 211: | ||
==Cloze tests == | ==Cloze tests == | ||
===Html=== | |||
Cloze tests are mainly used to administer quizzes and tests. | Cloze tests are mainly used to administer quizzes and tests. | ||
The following is a quiz adapted from [https://en.wikiversity.org/wiki/Help:Quiz-Simple this page] | The following is a quiz adapted from [https://en.wikiversity.org/wiki/Help:Quiz-Simple this page] | ||
| Line 220: | Line 221: | ||
}} | }} | ||
</pre> | </pre> | ||
{{#CI form: title = Complete the text from the Wikipedia article on [https://en.wikipedia.org/wiki/Aristotle Aristotle] | {{#CI form: title = Complete the text from the Wikipedia article on [https://en.wikipedia.org/wiki/Aristotle Aristotle] | ||
| Line 227: | Line 229: | ||
===Suggestions=== | |||
<pre> | |||
{{#CI form: type = cloze test | |||
| title = Completa come nell'esempio | |||
| suggestions = poca, nessun, poco, altra, molti, troppo, nessuno, tante, qualsiasi, qualche, ogni | |||
| * C'è [altra] pasta ? Ho ancora fame | |||
| Non c'è [] tavolo libero: aspettiamo o cambiamo ristorante? | |||
| Ho bevuto [] spumante. Mi gira la testa. | |||
| [] mattina la mia sveglia suona alle 7.00 | |||
| Se c'è un problema, chiamami a [] ora | |||
| Ho scritto [] cartolina e poi sono uscito a comprare i francobolli | |||
| Stefano legge [] romanzi gialli perché gli piace trovare il colpevole | |||
| a [] persone passano il fine settimana fuori città | |||
| C'è [] latte nel frigo, lo compri tu? | |||
| Ho [] voglia di vedere mia cugina. Ultimamente non andiamo d'accordo. | |||
| Bravo! Questo compito è perfetto. Non c'è [] sbaglio. | |||
}} | |||
</pre> | |||
{{#CI form: type = cloze test | |||
| title = Completa come nell'esempio | |||
| suggestions = poca, nessun, poco, altra, molti, troppo, nessuno, tante, qualsiasi, qualche, ogni | |||
| * C'è [altra] pasta ? Ho ancora fame | |||
| Non c'è [] tavolo libero: aspettiamo o cambiamo ristorante? | |||
| Ho bevuto [] spumante. Mi gira la testa. | |||
| [] mattina la mia sveglia suona alle 7.00 | |||
| Se c'è un problema, chiamami a [] ora | |||
| Ho scritto [] cartolina e poi sono uscito a comprare i francobolli | |||
| Stefano legge [] romanzi gialli perché gli piace trovare il colpevole | |||
| a [] persone passano il fine settimana fuori città | |||
| C'è [] latte nel frigo, lo compri tu? | |||
| Ho [] voglia di vedere mia cugina. Ultimamente non andiamo d'accordo. | |||
| Bravo! Questo compito è perfetto. Non c'è [] sbaglio. | |||
}} | |||
<!-- | <!-- | ||
| Line 232: | Line 268: | ||
[select={{#replace:{{Template:Countries}}|*|,}}] | [select={{#replace:{{Template:Countries}}|*|,}}] | ||
<pre> | <pre> | ||
| Line 256: | Line 292: | ||
| Qui vedo che [andare] ad abitare in un'altra citta' | | Qui vedo che [andare] ad abitare in un'altra citta' | ||
}} | }} | ||
--> | |||
Revision as of 22:34, 8 January 2022
This is a sandbox for https://www.mediawiki.org/wiki/Extension:CIForms !
Basic, one column
This is the simplest form (type "inputs" by default, one column)
The square brackets represent an input, the square brackets contain the input type, the asterisk indicates a mandatory field
{{#CI form: title = Contact form
| type = inputs
| first and last name [] *
| email [email] *
| your message [textarea] *
}}
which produces the following
Placeholders
Form with placeholders. The square brackets contain the placeholder and the input type after the equal symbol:
{{#CI form: title = Contact form
| [first and last name] *
| [email=email] *
| [phone=tel]
| [your message=textarea] *
}}
which produces the following:
Two columns
Inputs responsive (two columns), the square brackets contain the input type, the form rows can contain html (the label of the email input is bold)
{{#CI form: title = Contact form
| type = inputs responsive
| submit = abc@test.com
| first name [] *
| last name [] *
| <b>email</b> [email] *
| phone [tel]
| your message [textarea] *
}}
Multiple choice
Multiple choice with arbitrary input between answers
{{#CI form: title = Why are you applying to this job ?
| type = multiple choice
| I send bulk application, even if I will be selected I'm not sure to confirm
| I ran out of money, I have to find whatever job quickly
| I want to learn something new
| The job fits my background and I'm very skilled, I look forward to join your team!
| Let me explain []
}}
Select
Select populated by wikitext
{{#CI form: title = Country and city
| type = inputs
| country [select={{#replace:{{Template:Countries}}|*|,}}] *
| city [] *
}}
Nested sections
Form with nested sections
{{#CI form: title = Job application
| submission groups = sysop
|
{{#CI form section: type = inputs
| name [] *
| email [] *
}}
|
{{#CI form section: type = inputs
| title = What about your motivation ?
| type = multiple choice
| I send bulk application, even if I will be selected I'm not sure to confirm
| I ran out of money, I have to find whatever job quickly
| I want to learn something new
| The job fits my background and I'm very skilled, I look forward to join your team!
| Let me explain []
}}
{{#CI form section: type = multiple choice
| title = If you will be selected (on the basis of the answer above), how will you undertake your work ? (up to 3 answers allowed)
| type = multiple choice
| max answers=3
| I will work scrupulously
| I will work meticulously
| I will pretend to work
| I will delegate all my work to my sister
| I will work seriously
}}
{{#CI form section: type = inputs
|title = Please describe yourself (1000 characters max)
| [textarea=1000] *
}}
}}
Cloze tests
Html
Cloze tests are mainly used to administer quizzes and tests. The following is a quiz adapted from this page
{{#CI form: title = Complete the text from the Wikipedia article on [https://en.wikipedia.org/wiki/Aristotle Aristotle]
| type = cloze test | list-type = none
| <b>Early Years</b> <br> Aristotle was born in [] in Chalcidice. His parents were [] and [], who became physician to King Amyntas of Macedon. <br> Aristotle was educated as a member of the aristocracy. At about the age of [], he went to [] to continue his education at []'s Academy.
}}
Suggestions
{{#CI form: type = cloze test
| title = Completa come nell'esempio
| suggestions = poca, nessun, poco, altra, molti, troppo, nessuno, tante, qualsiasi, qualche, ogni
| * C'è [altra] pasta ? Ho ancora fame
| Non c'è [] tavolo libero: aspettiamo o cambiamo ristorante?
| Ho bevuto [] spumante. Mi gira la testa.
| [] mattina la mia sveglia suona alle 7.00
| Se c'è un problema, chiamami a [] ora
| Ho scritto [] cartolina e poi sono uscito a comprare i francobolli
| Stefano legge [] romanzi gialli perché gli piace trovare il colpevole
| a [] persone passano il fine settimana fuori città
| C'è [] latte nel frigo, lo compri tu?
| Ho [] voglia di vedere mia cugina. Ultimamente non andiamo d'accordo.
| Bravo! Questo compito è perfetto. Non c'è [] sbaglio.
}}