Form:Autocompletion test: Difference between revisions
Jump to navigation
Jump to search
Yaron Koren (talk | contribs) No edit summary |
Yaron Koren (talk | contribs) 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 | ||
! | ! Combobox | ||
! | ! Tokens | ||
|- | |- | ||
! | ! values from category (local) | ||
| {{{field|1| | | {{{field|1|input type=combobox|values from category=Countries}}} | ||
| {{{field|2|input type=tokens|values from category=Countries}}} | |||
| {{{field| | |||
|- | |- | ||
! | ! values from category (remote) | ||
| {{{field| | | {{{field|3|input type=combobox|values from category=Items}}} | ||
| {{{field| | | {{{field|4|input type=tokens|values from category=Items}}} | ||
|- | |- | ||
! | ! values from namespace | ||
| {{{field| | | {{{field|5|input type=combobox|values from namespace=Category}}} | ||
| | | {{{field|6|input type=tokens|values from namespace=Category|delimiter=;}}} | ||
| {{{field| | |||
| | |||
|- | |- | ||
! | ! hardcoded values | ||
| {{{field| | | {{{field|7|input type=combobox|values=abc,def,g h,i-j,k/l}}} | ||
| {{{field| | | {{{field|8|input type=tokens|values=abc,def,g h,i-k,k/l}}} | ||
| | |||
|- | |- | ||
! | ! Cargo field (single) | ||
| {{{field|9|input type=combobox|cargo table=Items|cargo field=Source|cargo where=Author HOLDS 'New York Post editorial board'}}} | |||
| {{{field| | | {{{field|10|input type=tokens|cargo table=Items|cargo field=Source}}} | ||
| | |||
| {{{field| | |||
|- | |- | ||
! | ! Cargo field (list) | ||
| {{{field| | | {{{field|11|input type=combobox|cargo table=Items|cargo field=Author}}} | ||
| | | {{{field|12|input type=tokens|cargo table=Items|cargo field=Author}}} | ||
| {{{field| | |||
| | |||
|- | |- | ||
! | ! Cargo field with mapping | ||
| {{{field| | | {{{field|13|input type=combobox|cargo table=Authors|cargo field=_pageName|mapping cargo table=Authors|mapping cargo field=Last_name}}} | ||
| {{{field| | | {{{field|14|input type=tokens|cargo table=Authors|cargo field=_pageName|mapping cargo table=Authors|mapping cargo field=Last_name}}} | ||
| {{{field| | |- | ||
| {{{field| | ! 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'}}} | |||
|} | |} | ||
{{{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.