Page MenuHomePhabricator

ContentTranslation does not keep the spacing within infoboxes
Closed, ResolvedPublicBUG REPORT


List of steps to reproduce (step by step, including full links if applicable):

  • When translating an infobox by ContentTranslation it collapses the infobox to being over one line and adjusts the ordering of the items.
  • Here is the output
  • From this

What should have happened instead?:

It would be nice if the same formating is kept. Translators currently need to recopy and paste the infobox and than do the translation manually such as in this edit.

Event Timeline

santhosh renamed this task from CTX does not keep the spacing within infoboxes to ContentTranslation does not keep the spacing within infoboxes.May 10 2021, 4:43 AM
santhosh updated the task description. (Show Details)
Amire80 claimed this task.
Amire80 added subscribers: matmarex, ssastry, Amire80.

This is not a Content Translation issue.

The TemplateData JSON blob in the template in the target language must be defined with the correct "Suggested wikitext formatting" value (in Japanese: 推奨されるウィキテキスト書式). The Japanese template didn't have any value there. I decided to Be Bold and changed it to "block", which is usually appropriate for infoboxes. Subsequently, I was able to publish a draft translation of the same page into my user space, and the infobox wikitext was written with the correct spacing.

A few tips for the future:

  1. Suggested formatting should be defined in TemplateData for every infobox. As for everything else with templates, there must be an option to make it global, but for now, make sure you do it every time you import a template from English.
  2. TemplateData has some caching issues. If you change the value of "Suggested wikitext formatting", it won't work immediately, but after some time. Perhaps @matmarex or @ssastry know how much time exactly.
  3. I recommend that someone who knows Japanese and who is experienced with advanced wikitext editing complete the localization of the TemplateData extension into Japanese. Direct link: .