Form:Autocompletion test: Difference between revisions

From Discourse DB
Jump to navigation Jump to search
No edit summary
No edit summary
 
(45 intermediate revisions by 3 users not shown)
Line 4: Line 4:
if a page with that name already exists, you will be sent to a form to edit that page.
if a page with that name already exists, you will be sent to a form to edit that page.


{{#forminput:Autocompletion test}}
{{#forminput:form=Autocompletion test}}


</noinclude><includeonly>
</noinclude><includeonly>
Line 10: Line 10:
{| class="wikitable"
{| class="wikitable"
! Autocompletion type
! Autocompletion type
! Single
! Combobox
! List
! Tokens
! Single/remote
! List/remote
|-
|-
! on property
! values from category (local)
| {{{field|1|autocomplete on property=Refers to}}}
| {{{field|1|input type=combobox|values from category=Countries}}}
| {{{field|2|autocomplete on property=Refers to|list|size=35}}}
| {{{field|2|input type=tokens|values from category=Countries}}}
| {{{field|3|autocomplete on property=Was written by|remote autocompletion}}}
| {{{field|4|autocomplete on property=Was written by|remote autocompletion}}}
|-
|-
! on category
! values from category (remote)
| {{{field|5|autocomplete on category=Sources|input type=text}}}
| {{{field|3|input type=combobox|values from category=Items}}}
| {{{field|6|autocomplete on category=Sources|input type=text}}}
| {{{field|4|input type=tokens|values from category=Items}}}
| {{{field|7|autocomplete on category=Items|remote autocompletion}}}
| {{{field|8|autocomplete on category=Countries|remote autocompletion}}}
|-
|-
! on concept
! values from namespace
| {{{field|9|autocomplete on concept=British newspapers}}}
| {{{field|5|input type=combobox|values from namespace=Category}}}
| {{{field|10|autocomplete on concept=British newspapers}}}
| {{{field|6|input type=tokens|values from namespace=Category|delimiter=;}}}
| {{{field|11|autocomplete on concept=British newspapers|remote autocompletion}}}
| {{{field|12|autocomplete on concept=British newspapers|remote autocompletion}}}
|-
|-
! on namespace
! hardcoded values
| {{{field|13|autocomplete on namespace=Image|input type=text}}}
| {{{field|7|input type=combobox|values=abc,def,g h,i-j,k/l}}}
| {{{field|14|autocomplete on namespace=Image|input type=text}}}
| {{{field|8|input type=tokens|values=abc,def,g h,i-k,k/l}}}
| {{{field|15|autocomplete on namespace=Category|remote autocompletion}}}
| {{{field|16|autocomplete on namespace=Category|remote autocompletion}}}
|-
|-
! "property="
! Cargo field (single)
| {{{field|17|property=Addresses topic}}}
| {{{field|9|input type=combobox|cargo table=Items|cargo field=Source|cargo where=Author HOLDS 'New York Post editorial board'}}}
| {{{field|18|property=Addresses topic|size=35}}}
| {{{field|10|input type=tokens|cargo table=Items|cargo field=Source}}}
| {{{field|19|property=Addresses topic|remote autocompletion}}}
| {{{field|20|property=Refers to|remote autocompletion|size=35}}}
|-
|-
! relation
! Cargo field (list)
| {{{field|21}}}
| {{{field|11|input type=combobox|cargo table=Items|cargo field=Author}}}
| {{{field|22|size=35}}}
| {{{field|12|input type=tokens|cargo table=Items|cargo field=Author}}}
| {{{field|23|remote autocompletion}}}
| {{{field|24|remote autocompletion|size=35}}}
|-
|-
! attribute
! Cargo field with mapping
| {{{field|25|autocomplete}}}
| {{{field|13|input type=combobox|cargo table=Authors|cargo field=_pageName|mapping cargo table=Authors|mapping cargo field=Last_name}}}
| {{{field|26|autocomplete|size=35}}}
| {{{field|14|input type=tokens|cargo table=Authors|cargo field=_pageName|mapping cargo table=Authors|mapping cargo field=Last_name}}}
| {{{field|27|remote autocompletion}}}
|-
| {{{field|28|remote autocompletion|size=35}}}
! Cargo field with mapping + where
| {{{field|15|input type=combobox|cargo table=Authors|cargo field=_pageName|mapping cargo table=Authors|mapping cargo field=Last_name|cargo where=Political_affiliation = 'Conservative'}}}
| {{{field|16|input type=tokens|cargo table=Authors|cargo field=_pageName|mapping cargo table=Authors|mapping cargo field=Last_name|cargo where=Political_affiliation = 'Conservative'}}}
|}
|}
Others:
Textarea:
{{{field|29|list|input type=textarea}}}
Relation with no autocompletion: {{{field|30|no autocomplete}}}
{{{end template}}}
{{{end template}}}


{{{standard input|summary}}}
{{{standard input|summary}}}

Latest revision as of 20:23, January 26, 2023

This is the 'Autocompletion test' form. To add 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.