That seems to have worked. Thank you Arlo.
https://zh-yue.wikipedia.org/w/index.php?title=Template%3AMergefrom&type=revision&diff=1192787&oldid=1142219

--Deryck

On 4 May 2018 at 16:12, Arlo Breault <abreault@wikimedia.org> wrote:


> On May 3, 2018, at 6:05 PM, Deryck Chan <deryckchan@gmail.com> wrote:
>
> Is there a known method to get around this? The aim is to create a link with the given argument as page name and the namespace of the transcluding page as namespace.
>
> Deryck

Well, for one, you could move the brackets `[[` insides the conditional,
so that they're the first characters in the output of the template.