Template talk:Unlink
Appearance
(Redirected from Template talk:Unlink/sandbox)
Spaces break output
[edit]I am unsure at which point the # and ; get a newline prepended to it, but currently any link with spaces in them get parsed wrong. Compare
{{Unlink|[[Main Page]]}}
→ Main Page{{Chop head and tail|[[Main Page]]|2}}
→ Main Page
Is this intended behaviour? I also think that the documentation could do with something like {{Unlink|[[Albert Einstein]]}}
instead. --BryghtShadow (talk) 09:41, 6 December 2011 (UTC)
- I added this serious limitation to the documentation.--Patrick (talk) 10:19, 6 December 2011 (UTC)
- Observation: It's caused by escaped spaces (
 
) being passed on through to the next level. - A fix is something like:
{{#replace:{{{1}}}| |<nowiki></nowiki> <nowiki></nowiki>}}
. Although it may make templates more expensive. --BryghtShadow (talk) 17:55, 6 December 2011 (UTC)
- Observation: It's caused by escaped spaces (