Page MenuHomePhabricator

VisualEditor template dialog should show boolean parameters as a checkbox
Closed, DuplicatePublic

Description

A template parameter may be declared as boolean.

The VE form for template transclusion shows a tic box ☑ if the current parameter value is 1 or any text. The tic box is empty for 0 and this is fine.

Unfortunately and surprising there is a text input field, if the parameter value bar= is empty in previious source text, or does not appear at all.

Partially that could be helped by autovalue:0 in TemplateData, but there should appear always an empty or ticked checkbox rather than text input query if type:boolean has been requested.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptOct 19 2017, 10:41 AM
Mvolz added a subscriber: Mvolz.Oct 19 2017, 4:05 PM

Related to T144155 I think?

Krinkle renamed this task from VisualEditor form should show empty boolean parameter as tic box to VisualEditor template dialog should show boolean parameters as a checkbox.Oct 20 2017, 3:45 AM
Krinkle awarded a token.