Page MenuHomePhabricator

Extra layer of transclusion adds linebreak when parsing
Closed, DuplicatePublic


Apparently this bug has been known on English Wikipedia for a while and some of the more complicated templates have work-arounds for it. These workarounds are causing problems for the mobile site though, so we should fix the underlying issue (and create some unit tests for it).

To see this bug, compare:

The only difference between these two pages is that sandbox2 uses a template with 2 levels of transclusion and sandbox3 uses a template with 1 level of transclusion. In sandbox2, an extra linebreak is output at the beginning of the template, which changes the appearance of the article.

Event Timeline

kaldari created this task.Apr 28 2017, 10:03 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptApr 28 2017, 10:03 PM
kaldari updated the task description. (Show Details)Apr 28 2017, 10:04 PM

Sounds like T14974 as the underlying issue for the template transclusion.

The problem on mobile site seems to be the extra div

kaldari updated the task description. (Show Details)Apr 30 2017, 9:36 PM