Form:Fields test: Difference between revisions

From Discourse DB
Jump to navigation Jump to search
No edit summary
No edit summary
 
(21 intermediate revisions by the same user not shown)
Line 7: Line 7:
{{{info|page name = Written by <Fields test[author 2]>, created on {{CURRENTDAY}}/{{CURRENTMONTH}}/{{CURRENTYEAR}}.}}}
{{{info|page name = Written by <Fields test[author 2]>, created on {{CURRENTDAY}}/{{CURRENTMONTH}}/{{CURRENTYEAR}}.}}}
<div id="wikiPreview" style="display: none; padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px solid #AAAAAA;"></div>
<div id="wikiPreview" style="display: none; padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px solid #AAAAAA;"></div>
{{{for template|Fields test|multiple|label=Fields test}}}
{{{for template|Fields test}}}
'''Author:''' {{{field|author|input type=text|default={{#if:{{#urlget:hello}}|hello|not hello}}|size=30}}}
'''Author:''' {{{field|author|input type=text|default={{#if:{{#urlget:hello}}|hello|not hello}}|size=30}}}


'''Author 2:''' {{{field|author 2|cargo table=Items|cargo field=Author|class=author2}}}
'''Author 2:''' {{{field|author 2|cargo table=Items|cargo field=Author|class=author2}}}


'''Image:''' {{{field|author 3|values from namespace=File|uploadable|placeholder=Click me!|default filename=File for <page name>}}}
'''Image:''' {{{field|author 3|input type=text|list|uploadable|placeholder=Click me!|default filename=File for <page name>}}}


'''URL:''' {{{field|url|default=http://google.com|size=50%}}}
'''URL:''' {{{field|url|default=http://google.com|size=50%}}}
Line 20: Line 20:
'''Start date:''' {{{field|it's the start date|input type=datetime|default=now|include timezone}}}
'''Start date:''' {{{field|it's the start date|input type=datetime|default=now|include timezone}}}


'''Checkboxes:''' {{{field|The checkboxes field|input type=checkboxes|values=A,B,C,D,E|default=B}}}
'''Checkboxes:''' {{{field|The checkboxes field|input type=checkboxes|values=A,B,C,D,E|default=B|mandatory}}}


'''Listbox:''' {{{field|Listbox|input type=listbox|values=F,G,H,I,J|show on select=G=>g-div}}}
'''Listbox:''' {{{field|Listbox|input type=listbox|values=F,G,H,I,J|show on select=G=>g-div}}}
Line 37: Line 37:
'''Date time picker 2:''' {{{field|datetimepicker2|input type=datetimepicker}}}
'''Date time picker 2:''' {{{field|datetimepicker2|input type=datetimepicker}}}


''User:''' {{{field|User|input type=dropdown|values from namespace=User|mapping cargo table=_pageData|mapping cargo field=_numRevisions}}}
'''User:''' {{{field|User|input type=dropdown|values from namespace=User|mapping cargo table 2=_pageData|mapping cargo field 2=_numRevisions}}}


'''Rating:''' {{{field|rating|input type=rating|star width=10|num stars=6|allow half stars=yes}}}
'''Rating:''' {{{field|rating|input type=rating|star width=10|num stars=6|allow half stars=yes}}}
Line 49: Line 49:
'''First name''' {{{field|first name|input type=combobox|placeholder=Enter a first name|values=K,L & M,N|uploadable}}}
'''First name''' {{{field|first name|input type=combobox|placeholder=Enter a first name|values=K,L & M,N|uploadable}}}


'''Email:''' {{{field|email|input type=radiobutton|values=a@b.c, d@ė.f, ampersand & test, <tag> test, &lt;tag&gt; test 2|show on select=a@b.c=>abcdiv|default=a@b.c|mandatory}}}'''
'''Email:''' {{{field|email|input type=radiobutton|values=a@b.c, d@ė.f, ampersand & test, &lt;tag&gt; test 2|show on select=a@b.c=>abcdiv|default=a@b.c|mandatory}}}'''
 
{|
'''Is nice:''' {{{field|is nice|input type=checkbox|default=No|show on select=Nice}}}
! style="vertical-align: bottom;" | Is nice:
 
| {{{field|is nice|input type=checkbox|default=No|show on select=Nice}}}
<div id="Nice">Yay, nice!</div>
|}
 
<div id="Nice">Yay, nice!
'''Wears a hat:''' {{{field|wears a hat|input type=checkbox}}}
Here's a datepicker: {{{field|date 1|input type=datepicker|mandatory}}}


...and here's a datetimepicker: {{{field|date 2|input type=datetimepicker|mandatory}}}
</div>
{|
! style="vertical-align: bottom;" | Wears a hat:
| {{{field|wears a hat|input type=checkbox}}}
|}
'''Hard-coded tree test:''' {{{field|not in template|input type=tree|structure=
'''Hard-coded tree test:''' {{{field|not in template|input type=tree|structure=
* Item 1
* Item 1

Latest revision as of 17:15, September 20, 2023

This is the 'Fields test' form; edit the page to see the source code. Enter the name of the page you want to add here: