The title input field requires a valid title, so suggestions make sense
to suggest possible existing pages to the user.
Autofocus the input field, if the title is empty allows the user to type
the title with less clicks.
Bug: T120577
Change-Id: I8a75fdeccbe2be2144fcc15439ffefae1e89c6a9
$page = array();
$page['pagename'] = array(
- 'type' => 'text',
+ 'type' => 'title',
'label-message' => 'pagelang-name',
'default' => $defaultName,
+ 'autofocus' => $defaultName === null,
+ 'exists' => true,
);
// Options for whether to use the default language or select language