On May 1, 2018, at 1:52 PM, Deryck Chan deryckchan@wikimedia.hk wrote:
I've recently found that the solution above causes errors when the template is transcluded onto another template: https://zh-yue.wikipedia.org/wiki/Template:%E5%A5%A7%E6%9E%97%E5%8C%B9%E5%85...
Offending template: https://zh-yue.wikipedia.org/wiki/Template:Mergefrom
Any advice?
It looks like what you're running into is,
https://phabricator.wikimedia.org/T2529 https://phabricator.wikimedia.org/T14974
https://github.com/wikimedia/mediawiki/blob/b3f6d9f20f32f50902dc462ff5c46ee1...
so that, when a namespace is present, the output of the parser function starts with a colon, which gets pushed to a new line, breaking the wikilink syntax.