Page MenuHomePhabricator

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

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

Amire80 created this task.Dec 6 2018, 10:51 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptDec 6 2018, 10:51 PM

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.