Page MenuHomePhabricator

MediaWiki treats non-breaking space(s) after parameter name as part of the name.
Open, Needs TriagePublic

Description

In template transclusion, MediaWiki treats non-breaking space(s) after a parameter name as part of the name. As a result the parameter mysteriously! is not recognized. The offending non-breaking space(s) in the transclusion may originate from code copied as a result of T233809. In my opinion, any white space at the end of a parameter name should be ignored.

Event Timeline

Hi @Teb728, thanks for taking the time to report this and welcome to Wikimedia Phabricator!
In the future, please follow https://www.mediawiki.org/wiki/How_to_report_a_bug when creating tasks - thanks a lot.

In my opinion, any white space at the end of a parameter name should be ignored.

I think I'd disagree - instead, underlying bugs should be fixed. :)
See also T13375: No (or broken) whitespace stripping in unnamed template parameter values. (similar topic?).