Form:Fields test: Difference between revisions
Jump to navigation
Jump to search
Yaron Koren (talk | contribs) No edit summary |
Yaron Koren (talk | contribs) No edit summary |
||
(31 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| | {{{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| | '''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%}}} | ||
'''Quote:''' {{{field|quote|input type=textarea| | '''Quote:''' {{{field|quote|input type=textarea|editor=tinymce}}} | ||
'''Start date:''' {{{field|it's the start date|input type=datetime|default=now}}} | '''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}}} | ||
<div id="g-div">G selected!</div> | <div id="g-div">G selected!</div> | ||
'''Development duration:''' {{{field|development duration|input type=dropdown|mapping | '''Development duration:''' {{{field|development duration|input type=dropdown|values=Asia Times Online,Bangkok Post,Brabants Dagblad|mapping cargo table=Sources|mapping cargo field=Language}}} | ||
'''Tree:''' {{{field|The tree field|list|input type=tree|top category=Sources|mandatory}}} | '''Tree:''' {{{field|The tree field|list|input type=tree|top category=Sources|mandatory}}} | ||
'''Stance:''' {{{field|Stance|input type=dropdown|cargo table=Opinions|cargo field=Stance|show on select=for=>for-it}}} | |||
'''Stance:''' {{{field|Stance|input type=dropdown| | |||
'''Date picker:''' {{{field|datepicker|input type=datepicker|default=now}}} | '''Date picker:''' {{{field|datepicker|input type=datepicker|default=now}}} | ||
Line 38: | Line 36: | ||
'''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}}} | |||
'''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 45: | Line 45: | ||
'''Sources:''' {{{field|Source|input type=tokens|cargo table=Sources|cargo field=_pageName|delimiter=;|max values=4}}} | '''Sources:''' {{{field|Source|input type=tokens|cargo table=Sources|cargo field=_pageName|delimiter=;|max values=4}}} | ||
'''Publication type:''' {{{field|publication type| | '''Publication type:''' {{{field|publication type|cargo table=Sources|cargo field=Type|input type=two listboxes|mandatory|delimiter=;|default=Newspaper}}} | ||
'''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 2|show on select=a@b.c=>abcdiv|default=a@b.c|mandatory}}}''' | ||
{| | |||
! style="vertical-align: bottom;" | Is nice: | |||
| {{{field|is nice|input type=checkbox|default=No|show on select=Nice}}} | |||
|} | |||
<div id="Nice">Yay, nice! | |||
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 14:14, April 14, 2024
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: