Page MenuHomePhabricator

subjectpagename truncates dot in link, but not in linktext
Closed, InvalidPublic

Description

there is a template
{{Wikimedia-Benutzer}}
{{Wikipedia-Benutzer}}

which truncates a dot in the username:
https://de.wikipedia.org/wiki/Benutzer:Martin_Sg.

not sure where in this template hell this happens ... but as martin included it it might have worked earlier.

Event Timeline

matmarex subscribed.

Screenshot for future reference:

pasted_file (113×1 px, 28 KB)

I think this is just a quirk of link parsing in MediaWiki, it assumes that trailing dot is not part of the URL when parsing "free links", because it usually isn't when a link is used in a sentence. You should use an explicit link ([https://…/ Text]) if you know exactly what you want to link to.

I fixed the template: https://de.wikipedia.org/w/index.php?title=Vorlage:Wikipedia-Benutzer&diff=153543039&oldid=150979348 (someone might need to "sight" my edit before the fix is visible, since German Wikipedia uses FlaggedRevs). I think this is expected behavior, and it does what you want more often than it doesn't. In corner cases like this you can always use the explicit syntax.