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 |
||
(19 intermediate revisions by the same user not shown) | |||
Line 10: | Line 10: | ||
{| class="wikitable" | {| class="wikitable" | ||
! Autocompletion type | ! Autocompletion type | ||
! Combobox | ! Combobox | ||
! Tokens | ! Tokens | ||
|- | |- | ||
! values from category (local) | ! values from category (local) | ||
| {{{field|1|input type= | | {{{field|1|input type=combobox|values from category=Countries}}} | ||
| {{{field|2 | | {{{field|2|input type=tokens|values from category=Countries}}} | ||
|- | |- | ||
! values from category (remote) | ! values from category (remote) | ||
| {{{field| | | {{{field|3|input type=combobox|values from category=Items}}} | ||
| {{{field|4|input type=tokens|values from category=Items}}} | |||
| {{{field| | |||
|- | |- | ||
! values from namespace | ! 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 | ! hardcoded values | ||
| {{{field| | | {{{field|7|input type=combobox|values=abc,def,g h,i-j,k/l}}} | ||
| {{{field|8|input type=tokens|values=abc,def,g h,i-k,k/l}}} | |||
| {{{field| | |||
|- | |- | ||
! Cargo field (single) | ! Cargo field (single) | ||
| {{{field| | | {{{field|9|input type=combobox|cargo table=Items|cargo field=Source|cargo where=Author HOLDS 'New York Post editorial board'}}} | ||
| {{{field|10|input type=tokens|cargo table=Items|cargo field=Source}}} | |||
| {{{field| | |||
|- | |- | ||
! Cargo field (list) | ! Cargo field (list) | ||
| {{{field| | | {{{field|11|input type=combobox|cargo table=Items|cargo field=Author}}} | ||
| {{{field| | | {{{field|12|input type=tokens|cargo table=Items|cargo field=Author}}} | ||
| {{{field| | |- | ||
| {{{field| | ! Cargo field with mapping | ||
| {{{field|13|input type=combobox|cargo table=Authors|cargo field=_pageName|mapping cargo table=Authors|mapping cargo field=Last_name}}} | |||
| {{{field|14|input type=tokens|cargo table=Authors|cargo field=_pageName|mapping cargo table=Authors|mapping cargo field=Last_name}}} | |||
|- | |||
! 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}}} | ||
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.