Topic on Talk:Content translation

Disperse translated templates line by line

3
Roy17 (talkcontribs)

What I suggest is, if a template contains a lot of parameters, say 20, let CT arrange them one per line. This makes editing bulky templates in the source editor easier. Only templates with a lot of parameters should be formatted as such, whereas other short templates are expected to be written on a single line. See source code of yue:巴拉布 for example.

Hans Haase (talkcontribs)

At the moment this lines needs to be allocated manually. The reason is, templates are designed by the local opinion. Also they differ. Some lines are missing in other languages, some vary. Example: longitude and latitude of geographical objects, are one line, with two parameters. In other projects, two lines, one parameter each, are used. One idea is to solve this by Wikidata in future.

Amire80 (talkcontribs)

Hi @Roy17,

Thanks for translating articles, testing Content Translation 2, and reporting issues!

It's quite possible that if you edit the TemplateData of the templates in question and set their suggested wikitext formatting (鼓勵用邊個格式) to "Block" (攤開), then this problem will be resolved for future translations. The same should be done for all the templates in which putting parameters on separate lines is preferred.

I see that the template in question is zh-yue:Template:居民區明細. Pinging the people who edited the template: @Helpcanbepowerful, @SC96, @Hello903hello, @S7w4j9.

Reply to "Disperse translated templates line by line"