Last modified: 2011-08-12 20:11:13 UTC
On meta I changed [[:m:Template:Channel]] by including the <nowiki>[irc:...]</nowiki> part into <nowiki><span class="plainlinks"></nowiki> (see [http://meta.wikimedia.org/w/index.php?title=Template:Channel&oldid=2752406 difflink]). On my own user page, the template worked as desired, but [[:m:Talk:Spam blacklist]] got corrupted. There was no sidebar, no topbar, and the line #wikimedia-external-links<sup>connect</sup> - Real-time IRC chat for co-ordination of activities related to maintenance of the blacklist. was changed into 1. wikimedia-external-links<sup>connect</sup> - Real-time IRC chat for co-ordination of activities related to maintenance of the blacklist. Somehow mediawiki wrongly substituted the "#" of the channel name with a numbered list!
First thing I see wrong is that the template version you pointed to tries to do [[irc:link|text]] rather than [irc:link text]. If I correct it that way on a local copy, then I can see the problem you describe -- this is probably because of one of the nested bits incorrectly thinking it's at line-start when it's not.
The syntax change from [irc://server/channel #channel] to [[irc:channel|#channel]] was introduced on July, 14th this year (difflink: http://meta.wikimedia.org/w/index.php?title=Template:Channel&diff=next&oldid=2006559). But (nearly) all continued to work properly ...
Ok, I restored the old crappy version in [[:m:User:Axpde/Channel]] and linked it the same way as it is done in [[:m:Talk:Spam blacklist]] in [[:m:User:Axpde/Sandbox]] ... no error! But when I exchange ":''{{channel|wikimedia-external-links}}''" in [[:m:Talk:Spam blacklist]] with ":''{{User:Axpde/Channel|wikimedia-external-links}}''" ... same error as before (and in preview mode without sidebar, topbar and footerbar (see this version: http://meta.wikimedia.org/w/index.php?title=Talk:Spam_blacklist&oldid=2756098).