Page MenuHomePhabricator

Invisible templates emit newline, possibly leading to excess visible whitespace
Open, Needs TriagePublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • Include two templates meant to be invisible (that haven't implemented a band-aid for this) on their own line on a page, e.g.
{{Bots|deny=all}}
{{CS1 config|mode=cs1}}

What happens?:
Excess whitespace appears in the page at the location the templates were placed.

image.png (124×994 px, 17 KB)

What should have happened instead?:
No whitespace should appear.

image.png (142×994 px, 30 KB)

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

Other information
Many commonly used invisible templates on Wikipedia such as {{EngvarB}} seem to work around this by including a <nowiki /> tag at the very beginning—often ultimately within the meta-template {{Dated maintenance category}} called by them.

Event Timeline

A note: Pages that use only one of the affected templates won't show this bug.