Latest revision |
Your text |
Line 1: |
Line 1: |
| This is a sandbox for https://www.mediawiki.org/wiki/Extension:CIForms ! | | 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) | | 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 | | The square brackets represent an input, the square brackets contain the input type |
|
| |
|
| <pre> | | <pre> |
Line 29: |
Line 27: |
|
| |
|
|
| |
|
| | | Form with placeholders. The square brackets contain the placeholder and the input type after the equal symbol: |
| ==Placeholders==
| |
| | |
| Form with placeholders. The square brackets contain the placeholder and optionally the input type after the equal symbol: | |
|
| |
|
| <pre> | | <pre> |
Line 54: |
Line 49: |
| }} | | }} |
|
| |
|
|
| |
|
| |
| ==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) | | 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) |
Line 84: |
Line 76: |
|
| |
|
|
| |
|
| | | Multiple choice with arbitrary input between answers |
| == Multiple choice ==
| |
| | |
| Multiple choice with arbitrary text inputs between answers (on the last line in the example) | |
|
| |
|
| <pre> | | <pre> |
Line 95: |
Line 84: |
| | I ran out of money, I have to find whatever job quickly | | | I ran out of money, I have to find whatever job quickly |
| | I want to learn something new | | | I want to learn something new |
| | The job fits my background and I'm very skilled, I look forward to join your team! | | | The job fits my background and I'm very skilled, I look forward to join your team |
| | Let me explain [] | | | Let me explain [] |
| }} | | }} |
Line 111: |
Line 100: |
|
| |
|
|
| |
|
| | | Select populated by wikitext |
| | |
| == Select ==
| |
| | |
| Select with placeholder and hardcoded options. An option contain a comma? Just escape it!
| |
| | |
| <pre>
| |
| {{#CI form: title = Select your preferred IT course
| |
| | type = inputs
| |
| | [Please chose one=select=PHP and Mysql, Node.js\, Vue.js\, React, Mediawiki and Gerrit ] *
| |
| }}
| |
| </pre>
| |
| | |
| | |
| {{#CI form: title = Select your preferred IT course
| |
| | type = inputs
| |
| | [Please chose one=select=PHP and Mysql, Node.js\, Vue.js\, React, Mediawiki and Gerrit ] *
| |
| }}
| |
| | |
| | |
| | |
| | |
| ==Select with combobox==
| |
| | |
| Select populated by wikitext (if the select contains more than 20 options CIForms will automatically display it as a [https://select2.org/ select2] combobox) | |
|
| |
|
| <pre> | | <pre> |
Line 155: |
Line 120: |
|
| |
|
|
| |
|
| ==Nested sections==
| | Form with nested sections |
| | |
| Form with nested sections. The multiple choice accepts up to 3 answers ("max answers=3") The textarea has a maxlength attribute ("[textarea=1000]") | |
|
| |
|
| <pre> | | <pre> |
Line 175: |
Line 138: |
| | I want to learn something new | | | I want to learn something new |
| | The job fits my background and I'm very skilled, I look forward to join your team! | | | The job fits my background and I'm very skilled, I look forward to join your team! |
| | Let me explain [] | | | None of the above |
| }} | | }} |
|
| |
|
Line 186: |
Line 149: |
| | I will pretend to work | | | I will pretend to work |
| | I will delegate all my work to my sister | | | I will delegate all my work to my sister |
| | I will work seriously | | | This is my personal approach (explain) [] |
| }} | | }} |
|
| |
|
| {{#CI form section: type = inputs
| |
| |title = Please describe yourself (1000 characters max)
| |
| | [textarea=1000] *
| |
| }}
| |
|
| |
|
| }} | | }} |
Line 213: |
Line 172: |
| | I want to learn something new | | | I want to learn something new |
| | The job fits my background and I'm very skilled, I look forward to join your team! | | | The job fits my background and I'm very skilled, I look forward to join your team! |
| | Let me explain [] | | | None of the above |
| }} | | }} |
|
| |
|
Line 224: |
Line 183: |
| | I will pretend to work | | | I will pretend to work |
| | I will delegate all my work to my sister | | | I will delegate all my work to my sister |
| | I will work seriously | | | This is my personal approach (explain) [] |
| }}
| |
| | |
| {{#CI form section: type = inputs
| |
| |title = Please describe yourself (1000 characters max)
| |
| | [textarea=1000] *
| |
| }}
| |
| | |
| | |
| }}
| |
| | |
| ==Cloze test==
| |
| | |
| Cloze tests are mainly used to administer quizzes and tests.
| |
| | |
| Square brackets represent an input, a square bracket with text inside represents a suggestion. The asterisk represents an example sentence. Each row can contain an arbitrary number of inputs.
| |
| | |
| <pre>
| |
| {{#CI form: type = cloze test
| |
| | title = Put the verbs between parentheses in the proper tense
| |
| | * I (to be) [have been] proud to win the match
| |
| | I (to do) [] a wonderful work
| |
| | I (to drink) [] too much at the last party
| |
| | I (to eat) [] 3 pizzas and 4 portions of french fries, and now I don't perform really well in intimate situations
| |
| | (to make) We are such stuff as dreams are [] on; and our little life ...
| |
| }}
| |
| </pre>
| |
| | |
| {{#CI form: type = cloze test
| |
| | title = Put the verbs between parentheses in the proper tense
| |
| | * I (to be) [have been] proud to win the match
| |
| | I (to do) [] a wonderful work
| |
| | I (to drink) [] too much at the last party
| |
| | I (to eat) [] 3 pizzas and 4 portions of french fries, and now I don't perform really well in intimate situations
| |
| | (to make) We are such stuff as dreams are [] on; and our little life ...
| |
| }} | | }} |
|
| |
|
| ==Cloze test with suggestions==
| |
|
| |
| The list of suggestions is automatically shuffled and the suggestion is automatically canceled from the list. (line-through)
| |
|
| |
| <pre>
| |
| {{#CI form: type = cloze test
| |
| | title = Put the right word in each sentence
| |
| | suggestions = pencils, cats, dogs, car, house, pizzas
| |
| | * There are three [pencils] on my table
| |
| | My [] is pretty fast
| |
| | My [] barks a lot but welcomes thieves equipped with sausages
| |
| | I love [] because they say "meeeooow"
| |
| | I'm able to eat 4 [] at any time
| |
| | My [] has 3 swimming pools and a bowling lane, are you envious ?
| |
| }}
| |
| </pre>
| |
|
| |
|
| {{#CI form: type = cloze test
| |
| | title = Put the right word in each sentence
| |
| | suggestions = pencils, cats, dogs, car, house, pizzas
| |
| | * There are three [pencils] on my table
| |
| | My [] is pretty fast
| |
| | My [] barks a lot but welcomes thieves equipped with sausages
| |
| | I love [] because they say "meeeooow"
| |
| | I'm able to eat 4 [] at any time
| |
| | My [] has 3 swimming pools and a bowling lane, are you envious ?
| |
| }} | | }} |
|
| |
|
|
| |
|
|
| |
|
| ==Cloze test with transformed suggestions==
| | <!-- |
| | |
| In some cases the answer has to be "transformed" with regard of the list of suggestions. In this case the relationship is expressed with the equal symbol within square brackets.
| |
| | |
| <pre> | |
| {{#CI form: type = cloze test
| |
| | title = Chose the right verb for each sentence and put it in the proper tense
| |
| | suggestions = to be, to win, to do, to drink, to make
| |
| | * I [to be=have been] proud to win the match
| |
| | I [] a wonderful work
| |
| | I [] too much at the last party
| |
| | I [] 3 pizzas and 4 portions of french fries, and now I don't perform really well in intimate situations
| |
| | We are such stuff as dreams are [] on; and our little life ...
| |
| }}
| |
| </pre>
| |
| | |
| {{#CI form: type = cloze test
| |
| | title = Chose the right verb for each sentence and put it in the proper tense
| |
| | suggestions = to be, to win, to do, to drink, to make
| |
| | * I [to be=have been] proud to win the match
| |
| | I [] a wonderful work
| |
| | I [] too much at the last party
| |
| | I [] 3 pizzas and 4 portions of french fries, and now I don't perform really well in intimate situations
| |
| | We are such stuff as dreams are [] on; and our little life ...
| |
| }}
| |
|
| |
|
| ==Cloze tests with html == | | [select={{#replace:{{Template:Countries}}|*|,}}] |
|
| |
|
| The following is a quiz adapted from [https://en.wikiversity.org/wiki/Help:Quiz-Simple this page]
| | --> |
|
| |
|
| <pre> | | <pre> |
| {{#CI form: title = Complete the text from the Wikipedia article on [https://en.wikipedia.org/wiki/Aristotle Aristotle] | | {{#CI form: title = Metti i verbi al futuro semplice |
| | type = cloze test | | | type = cloze test |
| | list-type = none | | | * Vedo, vedo... che tra poco [incontrare=incontrerai] l'uomo della tua vita |
| | suggestions = Athens, Nicomachus, eighteen, 347, Stageira, Phaestis, Plato | | | Vedo, vedo... che [avere] una grande vincita al gioco |
| | <b>Early Years</b> <br> Aristotle was born in [Stageira] 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 for nearly twenty years, not leaving until after
| | | Questa carta mi dice che [vincere] il concorso che hai appena fatto |
| Plato's death in [] BC.
| | | 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' |
| }} | | }} |
| </pre> | | </pre> |
|
| |
|
|
| |
|
| {{#CI form: title = Complete the text from the Wikipedia article on [https://en.wikipedia.org/wiki/Aristotle Aristotle] | | {{#CI form: title = Metti i verbi al futuro semplice |
| | type = cloze test | list-type = none | | | type = cloze test |
| | suggestions = Athens, Nicomachus, eighteen, 347, Stageira, Phaestis, Plato | | | * Vedo, vedo... che tra poco [incontrare=incontrerai] l'uomo della tua vita |
| | <b>Early Years</b> <br> Aristotle was born in [Stageira] 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 for nearly twenty years, not leaving until after
| | | Vedo, vedo... che [avere] una grande vincita al gioco |
| Plato's death in [] BC.
| | | 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' |
| }} | | }} |