Revision as of 10:12, 24 March 2022 by Ad Strack van Schijndel (talk | contribs) (E00a555c-1e5d-4eb3-b26b-5be8dc16c657 moved page DevOps:Doc/FlexForm/1.0.0/token to Token without leaving a redirect: Text replacement - "1.0.0" to "1.0")

DevOps:Doc/FlexForm/1.0/token

Name

_token

Type

_token

Synopsis

Token input field

Description

Use of select2 tokens

Parameters

_token

name = e.g. tokenfield[]

allowtags = (no value) Allow to create values that do not exist

allowclear = allow user to clear his selection (for json ajax calls)

input-length-trigger = integer number of characters before lookup actually happens, defaults to 3

id = mandatory

query = If you have semantic mediawiki installed, you can do a SMW Ask query here to fill the options list

callback = templateCallBack

multiple = multiple

Example

Example 1 : Search for pages in the Doc page types.

<_token name="tokenfield[]" id="tokener" query="[[Class::Doc]][[Title::!!!]](limit=99999)(returntext=Title)" placeholder="Search for Documentation Titles" multiple="multiple">
</_token>

Note

In a SMW Qeury the !!! will be replaced with whatever the user types.

Links

ws-page-props