Page MenuHomePhabricator

VisualEditor adds infoboxes in one line
Closed, InvalidPublic

Description

VisualEditor adds infobox template with content in one line, example:
{{Infokutija Veb-sajt-lat|logo=Wikipedia.png|tip=Enciklopedija|slogan=Slobodna enciklopedia}}

It should be:

{{Infokutija Veb-sajt-lat
|logo=Wikipedia.png
|tip=Enciklopedija
|slogan=Slobodna enciklopedia
}}

This happens on srwiki, but not on enwiki (see https://en.wikipedia.org/w/index.php?title=User:Zoranzoki21/sandbox&diff=950310009&oldid=929595209 ).

Why?

Event Timeline

English Wikipedia template has "format": "block" in templatedata when in srwiki it's missing.

In https://en.wikipedia.org/wiki/Wikipedia:TemplateData/Tutorial you can read that:
A further option "format" determines how the wikitext code for the template will be formatted when it is saved by the VisualEditor. This can have the options "format": "inline" (the default) or "format": "block". With the inline option the wikitext of the template will be formatted as single line {{Sister project|project = commons|text = page in commons}} with the block option each parameter will take a single line.

English Wikipedia template has "format": "block" in templatedata when in srwiki it's missing.

In https://en.wikipedia.org/wiki/Wikipedia:TemplateData/Tutorial you can read that:
A further option "format" determines how the wikitext code for the template will be formatted when it is saved by the VisualEditor. This can have the options "format": "inline" (the default) or "format": "block". With the inline option the wikitext of the template will be formatted as single line {{Sister project|project = commons|text = page in commons}} with the block option each parameter will take a single line.

Umm, okay. I'm closing this task as invalid. Thanks for explaining!