Page MenuHomePhabricator

When TemplateData defines Suggested wikitext formatting as "block", but no parameters are specified, an unnecessary line break is added
Closed, DuplicatePublic

Description

When TemplateData defines Suggested wikitext formatting as "block", but no parameters are specified, an unnecessary line break is added.

The wiki syntax end up looking like this:

{{template
}}

It would be nicer if it looked like this:

{{template}}

It repeatedly happens to me with the אישיות template in the Hebrew Wikipedia, which can automatically pull parameter values from Wikidata.

I'm not sure whether the issue is with TemplateData, VisualEditor, or Parsoid, so tagging all.

Event Timeline

We complained about this issue on cswiki a few days ago

It just happened again in this visual edit. I deleted two unnecessary parameters from the template. They were the only two parameters the template had.

After publishing, the code came out with a line break before the curly braces.

ssastry triaged this task as Medium priority.Jun 10 2019, 8:46 PM
ssastry edited projects, added Parsoid-Edit-Support; removed Parsoid.