Form:Semantic Form demo: Difference between revisions

The educational technology and digital learning wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(14 intermediate revisions by the same user not shown)
Line 3: Line 3:


Please '''do not create new forms'''. Here are your options:
Please '''do not create new forms'''. Here are your options:
* Look at the source code and read the [[Semantic Forms]] article
* Look at the source code and read the [[Semantic Forms]] and [[Semantic Forms Inputs]] articles
* Play with the single [[Semantic Form demo page]]
* Play with the single [[Semantic Form demo page]]
* Create a new form, but do not save it ...
* Create a new form, but do not save it ...
Official documentation:
* [http://www.mediawiki.org/wiki/Extension:Semantic_Forms Semantic Forms] (Mediawiki.org)
* [http://www.mediawiki.org/wiki/Extension:Semantic_Forms_Inputs Semantic Forms Inputs] (Mediawiki.org)


{{#forminput:form=Semantic Form demo}}
{{#forminput:form=Semantic Form demo}}
Line 15: Line 19:
! Field_text (Any text no longer than 65 chars):
! Field_text (Any text no longer than 65 chars):
| {{{field|field_text|size=40|placeholder=Texte par défaut|maxlength=65|}}}
| {{{field|field_text|size=40|placeholder=Texte par défaut|maxlength=65|}}}
|-
! Field_screenshot (upload a file or link to it):
| {{{field|field_screenshot|uploadable}}}
|-
|-
! Field_text_autocomplete (Type a correct developer name):
! Field_text_autocomplete (Type a correct developer name):
Line 26: Line 33:
|-
|-
! Field_category (Select a category):
! Field_category (Select a category):
| {{{field|field_category|input type=category|top category=Mediawiki documentation}}}
| {{{field|field_category|input type=category|top category=3D printing}}}
|-
|-
! Field_categories:
! Field_categories:
| {{{field|field_categories|top category=Technologies}}}
| {{{field|field_categories|input type=categories|top category=Technologies|height=200|hideroot=on|depth=1}}}
|-
|-
! Field_dropdown (Choose one):
! Field_dropdown (Choose one):
| {{{field|field_dropdown|input type=dropdown|values = Sea, S, S, Alcohol}}}
| {{{field|field_dropdown|input type=dropdown|values = hot, cold, medium}}}
|-
|-
! Field_combobox (Pick or type your favorite drug):
! Field_combobox (Pick or type your favorite drug):
Line 44: Line 51:
|-
|-
! Field_checkboxes (Pick several or none):
! Field_checkboxes (Pick several or none):
| {{{field|field_checkboxes|input type=checkboxes|values = }}}
| {{{field|field_checkboxes|input type=checkboxes|values = Hard Bop, Be Bop, Latin Jazz, Mainstream, New Orleans, Fusion, I don't listen to Jazz}}}
|-
|-
! Field_datetime:
! Field_datetime:
| {{{field|field_datetime}}}
| {{{field|field_datetime|input type=datetime}}}
|-
|-
! Field_listbox:
! Field_listbox (multiple addictions are possible):
| {{{field|field_listbox}}}
| {{{field|field_listbox|input type=listbox|values = Coffee, Computer gaming, Alcohol, Sex, Gambling, Loud Rock Music, Coca Cola}}}
|-
|-
! Field_datepicker:
! Field_datepicker (not on weekends):
| {{{field|field_datepicker}}}
| {{{field|field_datepicker|input type=datepicker||date format=dd.mm.yy|disable days of week=6,0}}}
|-
|-
! Field_timepicker:
! Field_timepicker (only reasonable hours):
| {{{field|field_timepicker}}}
| {{{field|field_timepicker|input type=timepicker||show reset button|mintime=10:00|maxtime=18:59|interval=15}}}
|-
|-
! Field_datetimepicker:
! Field_datetimepicker (any date/time):
| {{{field|field_datetimepicker}}}
| {{{field|field_datetimepicker|input type=datetimepicker|interval=15|default=yes}}}
|-
|-
! Field_menuselect:
! Field_menuselect:
| {{{field|field_menuselect}}}
| {{{field|field_menuselect|input type=menuselect|structure=
* Item 1
** Item 11
** Item 12
* Item 2
** Item 21
** Item 22}}}
|-
|-
! Field_two_listboxes:
! Field_two_listboxes (multiple addictions):
| {{{field|field_two_listboxes}}}
| {{{field|field_two_listboxes|input type=two listboxes|values = Coffee, Computer gaming, Alcohol, Sex, Gambling, Loud Rock Music, Coca Cola}}}
|-
|-
! Field_regexp:
! Field_regexp (Visa card number):
| {{{field|field_regexp}}}
| {{{field|field_regexp|input type=regexp|regexp=/^4[0-9]{12}(?:[0-9]{3})?$/}}}
|}
|}
{{{end template}}}
{{{end template}}}

Latest revision as of 13:30, 24 July 2013

This is the "Semantic Form demo" form.

Please do not create new forms. Here are your options:

Official documentation:



Readme

This form demonstrates Semantic Forms. It uses the Form:Semantic_Form_demo and the Template:Semantic_Form_demo

In order to avoid "data pollution" in this wiki, the Form is not "semantic", i.e. it demonstrates input types that are not linked to semantic properties.