*
* Besides the parameters recognized by HTMLTitleTextField, additional recognized
* parameters are:
- * default - (optional) Array of usernames to use as preset data
+ * default - (optional) Array of titles to use as preset data
* placeholder - (optional) Custom placeholder message for input
*
* The result is the array of titles
$params['placeholder'] = $this->msg( 'mw-widgets-titlesmultiselect-placeholder' )->plain();
}
+ if ( isset( $this->mParams['max'] ) ) {
+ $params['tagLimit'] = $this->mParams['max'];
+ }
+
+ if ( isset( $this->mParams['showMissing'] ) ) {
+ $params['showMissing'] = $this->mParams['showMissing'];
+ }
+
+ if ( isset( $this->mParams['input'] ) ) {
+ $params['input'] = $this->mParams['input'];
+ }
+
if ( !is_null( $value ) ) {
// $value is a string, but the widget expects an array
$params['default'] = $value === '' ? [] : explode( "\n", $value );