Page MenuHomePhabricator

plainlinks class won't work with [irc:#foo]
Open, MediumPublic

Description

Author: kontakt-bugzilla-wikimedia-org-22.07.2011

Description:
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!


Version: unspecified
Severity: normal

Details

Reference
bz30014

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:48 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz30014.
bzimport added a subscriber: Unknown Object (MLST).
brion added a comment.Jul 22 2011, 6:03 PM

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.

kontakt-bugzilla-wikimedia-org-22.07.2011 wrote:

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 ...

kontakt-bugzilla-wikimedia-org-22.07.2011 wrote:

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).