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?
--Deryck

On 2 November 2017 at 20:37, Bartosz Dziewoński <matma.rex@gmail.com> wrote:
On 2017-11-02 20:27, Deryck Chan wrote:
I came across this template recently - https://zh-yue.wikipedia.org/wiki/Template:%E8%BB%9F%E5%BD%88

Any suggestions on how to fix this? This template forcefully prefixes a colon to make sure a link rather than an interwiki or a categorization or an image-load happens.

See my previous reply: https://lists.wikimedia.org/pipermail/wikitech-ambassadors/2017-September/001693.html

--
Bartosz Dziewoński