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
 
(21 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
This is the "Semantic Form demo" form.
This is the "Semantic Form demo" form.
To create a page with this form, enter the page name below;
if a page with that name already exists, you will be sent to a form to edit that page.


Please '''do not create new forms'''. Here are your options:
* Look at the source code and read the [[Semantic Forms]] and [[Semantic Forms Inputs]] articles
* Play with the single [[Semantic Form demo page]]
* 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 11: Line 17:
{{{for template|Semantic Form demo}}}
{{{for template|Semantic Form demo}}}
{| class="formtable"
{| class="formtable"
! Field_text:
! Field_text (Any text no longer than 65 chars):
| {{{field|field_text|size=60|placeholder=Texte par défaut|maxlength=65|}}}
| {{{field|field_text|size=40|placeholder=Texte par défaut|maxlength=65|}}}
|-
|-
! Field_text_autocomplete:
! Field_screenshot (upload a file or link to it):
| {{{field|field_text_autocomplete|input_type=text with autocomplete|mandatory|size=80|values from property=Is developed by}}}
| {{{field|field_screenshot|uploadable}}}
|-
|-
! Field_textarea:
! Field_text_autocomplete (Type a correct developer name):
| {{{field|field_textarea|input type="textarea"|rows=2|cols=80}}}
| {{{field|field_text_autocomplete|input type=text with autocomplete|mandatory|size=80|values from property=Is developed by}}}
|-
! Field_textarea (Type anything):
| {{{field|field_textarea|input type=textarea|rows=2|cols=80}}}
|-
|-
! Field_textarea_autocomplete:
! Field_textarea_autocomplete:
| {{{field|field_textarea_autocomplete|input type="textarea with autocomplete"}}}
| {{{field|field_textarea_autocomplete|input type=textarea with autocomplete}}}
|-
|-
! Field_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:
! Field_dropdown (Choose one):
| {{{field|field_dropdown}}}
| {{{field|field_dropdown|input type=dropdown|values = hot, cold, medium}}}
|-
|-
! Field_combobox:
! Field_combobox (Pick or type your favorite drug):
| {{{field|field_combobox}}}
| {{{field|field_combobox|input type=combobox|values = Coffee, Computer gaming, Alcohol, Sex, Gambling, Loud Rock Music, Coca Cola}}}
|-
|-
! Field_radiobutton:
! Field_radiobutton (Pick one):
| {{{field|field_radiobutton}}}
| {{{field|field_radiobutton|input type=radiobutton|values = Windows, Linux, MacOS, Android, Solaris, Other}}}
|-
|-
! Field_checkbox:
! Field_checkbox (Just tick):
| {{{field|field_checkbox}}}
| {{{field|field_checkbox|input type=checkbox}}}
|-
|-
! Field_checkboxes:
! Field_checkboxes (Pick several or none):
| {{{field|field_checkboxes}}}
| {{{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}}}
Line 81: Line 96:
{{{standard input|save}}} {{{standard input|preview}}} {{{standard input|changes}}} {{{standard input|cancel}}}
{{{standard input|save}}} {{{standard input|preview}}} {{{standard input|changes}}} {{{standard input|cancel}}}
</includeonly>
</includeonly>
== 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.
[[Category: Semantic Mediawiki]]

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.