CIForms sandbox: Difference between revisions

From Wikisphere
Jump to navigation Jump to search
No edit summary
Tag: 2017 source edit
No edit summary
Tag: 2017 source edit
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 !
This is the simplest form (type "inputs" by default, one column)
The square brackets represent an input, the square brackets contain the input type


<pre>
<pre>
{{#CI form: title = Contact form
{{#CI form: title = Contact form
| submission groups = sysop
| type = inputs
| first and last name [] *
| first and last name [] *
| email [email] *
| email [email] *
Line 10: Line 15:
</pre>
</pre>


which produces the following result
which produces the following




{{#CI form: title = Contact form
{{#CI form: title = Contact form
| type = inputs
| submission groups = sysop
| submission groups = sysop
| first and last name [] *
| first and last name [] *
Line 20: Line 26:
}}
}}


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


<pre>
<pre>
Line 40: Line 48:
| [your message=textarea]  *
| [your message=textarea]  *
}}
}}
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)


<pre>
<pre>
Line 47: Line 59:
| first name [] *
| first name [] *
| last name [] *
| last name [] *
| email [email] *
| <b>email</b> [email] *
| phone [tel]
| phone [tel]
| your message [textarea]  *
| your message [textarea]  *
Line 56: Line 68:
{{#CI form: title = Contact form
{{#CI form: title = Contact form
| type = inputs responsive
| type = inputs responsive
| submit = abc@test.com
| first name [] *
| first name [] *
| last name [] *
| last name [] *
Line 64: Line 75:
}}
}}


Multiple choice


<pre>
<pre>
{{#CI form: title = Why do you want to learn Italian?
{{#CI form: title = Why are you applying to this job ?
| type = multiple choice | list-type = letters | max answers = 2
| type = multiple choice  
| I want to work using Italian language
| I send bulk application, even if I will be selected I'm not sure to confirm
| I want to study using Italian language
| I ran out of money, I have to find whatever job quickly
| Cultural interest / personal knowledge
| I want to learn something new
| interpersonal relationships [] *
| The job fits my background and I'm very skilled, I look forward to join your team
| prospective stay in Italy
}}
}}
</pre>
</pre>




{{#CI form: title = Why do you want to learn Italian?
{{#CI form: title = Why are you applying to this job ?
| type = multiple choice | list-type = letters | max answers = 2
| type = multiple choice
| I want to work using Italian language
| I send bulk application, even if I will be selected I'm not sure to confirm
| I want to study using Italian language
| I ran out of money, I have to find whatever job quickly
| Cultural interest / personal knowledge
| I want to learn something new
| interpersonal relationships [] *
| The job fits my background and I'm very skilled, I look forward to join your team
| prospective stay in Italy
}}
}}



Revision as of 21:43, 8 January 2022

This is a sandbox for https://www.mediawiki.org/wiki/Extension:CIForms !


This is the simplest form (type "inputs" by default, one column)

The square brackets represent an input, the square brackets contain the input type

{{#CI form: title = Contact form
| type = inputs
| first and last name [] *
| email [email] *
| your message [textarea]  *
}}

which produces the following


Contact form


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:


Contact form


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]  *
}}


Contact form
first name
last name
email
phone
your message


Multiple choice

{{#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 
}}


Why are you applying to this job ?
  • 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


{{#CI form: title = Metti i verbi al futuro semplice
| 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'
}}


Metti i verbi al futuro semplice
  1. Vedo, vedo... che tra poco 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'







Simple form
0/250 characters


Simple form (inputs)
0/250 characters


Form with nested sections
What kind of data should be entered in this form ?
Is the project open-source?
  • Yes
  • No
cloze test title
  1. label a label b
  2. label c
  3. label d