Editing CIForms sandbox

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 27: Line 27:
| your message [textarea]  *
| your message [textarea]  *
}}
}}


==Placeholders==
==Placeholders==


Form with placeholders. The square brackets contain the placeholder and optionally the input type after the equal symbol:
Form with placeholders. The square brackets contain the placeholder and the input type after the equal symbol:


<pre>
<pre>
Line 53: Line 51:
| [your message=textarea]  *
| [your message=textarea]  *
}}
}}




Line 82: Line 79:
| your message [textarea]  *
| your message [textarea]  *
}}
}}




== Multiple choice ==
== Multiple choice ==


Multiple choice with arbitrary text inputs between answers (on the last line in the example)
Multiple choice with arbitrary input between answers


<pre>
<pre>
Line 109: Line 105:
| Let me explain []  
| Let me explain []  
}}
}}




== Select ==
== 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)
Select populated by wikitext (if the select contains more than 20 options CIForms will automatically display it as a [https://select2.org/ select2] combobox)
Line 151: Line 125:
| city [] *
| city [] *
}}
}}


==Nested sections==
==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]")
Form with nested sections


<pre>
<pre>
Line 193: Line 164:
| [textarea=1000] *
| [textarea=1000] *
}}
}}


}}
}}
Line 235: Line 207:
}}
}}


==Cloze test==


==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]
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>
<pre>
{{#CI form: type = cloze test  
{{#CI form: title = Complete the text from the Wikipedia article on [https://en.wikipedia.org/wiki/Aristotle Aristotle]
| title = Put the verbs between parentheses in the proper tense
| type = cloze test | list-type = none
| * I (to be) [have been] proud to win the match
| <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 for nearly twenty years, not leaving until after
| I (to do) [] a wonderful work
Plato's death in [] BC.  
| 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>
</pre>


{{#CI form: type = cloze test  
 
| title = Put the verbs between parentheses in the proper tense
{{#CI form: title = Complete the text from the Wikipedia article on [https://en.wikipedia.org/wiki/Aristotle Aristotle]
| * I (to be) [have been] proud to win the match
| type = cloze test | list-type = none
| I (to do) [] a wonderful work
| <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 for nearly twenty years, not leaving until after
| I (to drink) [] too much at the last party
Plato's death in [] BC.  
| 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)
===Suggestions===


<pre>
<pre>
{{#CI form: type = cloze test  
{{#CI form: title = Complete the text from the Wikipedia article on [https://en.wikipedia.org/wiki/Aristotle Aristotle]
| title = Put the right word in each sentence
| type = cloze test | list-type = none
| suggestions = pencils, cats, dogs, car, house, pizzas
| suggestions = Athens, Nicomachus, eighteen, 347, Stageira, Phaestis, Plato
| * There are three [pencils] on my table
| <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
| My [] is pretty fast
Plato's death in [] BC.
| 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>
</pre>
{{#CI form: title = Complete the text from the Wikipedia article on [https://en.wikipedia.org/wiki/Aristotle Aristotle]
| type = cloze test | list-type = none
| suggestions =  Athens, Nicomachus, eighteen, 347, Stageira, Phaestis, Plato
| <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
Plato's death in [] BC.
}}


{{#CI form: type = cloze test  
{{#CI form: type = cloze test  
Line 291: Line 265:




==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  
{{#CI form: type = cloze test  
| title = Chose the right verb for each sentence and put it in the proper tense
| title = Chose the right verbs for each sentence and put them in the proper tense
| suggestions = to be, to win, to do, to drink, to make
| suggestions = to be, to win, to do, to drink, to make
| * I [to be=have been] proud to win the match
| * I [to be=have been] proud to win the match
Line 305: Line 274:
| We are such stuff as dreams are [] on; and our little life ...
| We are such stuff as dreams are [] on; and our little life ...
}}
}}
</pre>
 


{{#CI form: type = cloze test  
{{#CI form: type = cloze test  
| title = Chose the right verb for each sentence and put it in the proper tense
| title = Put the verbs in the proper tense  
| suggestions = to be, to win, to do, to drink, to make
| suggestions = to be, to make, to win, to do
| * I [to be=have been] proud to win the match
| * I (to be) [to be=have been] proud to win the match
| I [] a wonderful work
| I (to do) [] a wonderful job
| I [] too much at the last party
| I (to drink) [] 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
| I (to eat) [] 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 ==
 
The following is a quiz adapted from [https://en.wikiversity.org/wiki/Help:Quiz-Simple this page]
 
<pre>
{{#CI form: title = Complete the text from the Wikipedia article on [https://en.wikipedia.org/wiki/Aristotle Aristotle]
| type = cloze test
| list-type = none
| suggestions =  Athens, Nicomachus, eighteen, 347, Stageira, Phaestis, Plato
| <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
Plato's death in [] BC.
}}
</pre>
 
 
{{#CI form: title = Complete the text from the Wikipedia article on [https://en.wikipedia.org/wiki/Aristotle Aristotle]
| type = cloze test | list-type = none
| suggestions =  Athens, Nicomachus, eighteen, 347, Stageira, Phaestis, Plato
| <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
Plato's death in [] BC.
}}
}}
Please note that all contributions to Wikisphere may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikisphere:Copyrights for details). Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)

Template used on this page: