Last modified: 2014-03-04 16:52:31 UTC
We currently include newlines in transclusion parameters, which lets users delete them. That can create diffs like this: https://en.wikipedia.org/w/index.php?title=2013_Campbell%27s_Hall_of_Fame_Tennis_Championships_%E2%80%93_Singles&curid=39873236&diff=563465891&oldid=563456914 Instead we should strip whitespace from transclusion parameters and manage newlines and the whitespace between equal and value transparently in Parsoid. This also means that we should try to * match single / multi-line style with other transclusion parameters * create new transclusions with single or multi-line style either based on ** a heuristic like the number of parameters or total chars, or ** based on convention information from TemplateData or the like
Change 72864 had a related patch set uploaded by GWicke: Bug 51003: Template parameter handling cleanup https://gerrit.wikimedia.org/r/72864
Change 72864 merged by jenkins-bot: Bug 51003: Template parameter handling cleanup https://gerrit.wikimedia.org/r/72864
This patch cleans up whitespace handling in parameters a bit. Matching the existing style of a template (or the style convention for a template) is still left to do.
*** Bug 51175 has been marked as a duplicate of this bug. ***
We should probably strip newlines in empty parameter values separately: https://en.wikipedia.org/w/index.php?title=2013%E2%80%9314_Liga_I&curid=36025002&diff=564981513&oldid=564979200