> 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%8B%E9%81%8B%E5%8B%95%E6%9C%83
>
> 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/b3f6d9f20f32f50902dc462ff5c46ee1be436335/includes/parser/Parser.php#L3323-L3331
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.
_______________________________________________
Wikitech-ambassadors mailing list
Wikitech-ambassadors@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-ambassadors