Obviously, somewhere in the mediawiki software there is a list of non-whitespace characters which can follow the end of a link and still be part of it. e.g. "[[fish]]es" links to "[[fish]]" but looks like "[[fishes]]", which is good because one is the plural form, which redirects to the singular form anyway.
i don't know when or why the behavior was changed, but I recently noticed that apostrophes are now being sucked into the link, thus "[[Arby]]'s" links to "[[Arby]]" but looks like [[Arby's]], which is bad because one is a swedish housing project and the other is an american restaurant chain.
In short, a feature intended for easy plural links now also creates confusing possessive links. I do hope this is an accidental side effect which can easily be corrected.
—C.W.
2008/6/26 Charlotte Webb charlottethewebb@gmail.com:
Obviously, somewhere in the mediawiki software there is a list of non-whitespace characters which can follow the end of a link and still be part of it.
I think *any* non-whitespace characters will be included in the link. Excluding punctuation might be a good idea. I can't see a good reason for including the "'s" in the link, I think it looks better without, even when it isn't ambiguous.
2008/6/26 Charlotte Webb charlottethewebb@gmail.com:
Obviously, somewhere in the mediawiki software there is a list of non-whitespace characters which can follow the end of a link and still be part of it. e.g. "[[fish]]es" links to "[[fish]]" but looks like "[[fishes]]", which is good because one is the plural form, which redirects to the singular form anyway.
Yep, it is a so-called "linktrail" definition, and it is dependent on content language.
i don't know when or why the behavior was changed, but I recently noticed that apostrophes are now being sucked into the link, thus "[[Arby]]'s" links to "[[Arby]]" but looks like [[Arby's]], which is bad because one is a swedish housing project and the other is an american restaurant chain.
In short, a feature intended for easy plural links now also creates confusing possessive links. I do hope this is an accidental side effect which can easily be corrected.
I don't think it has been an "accidental side effect", as it is mentioned in the commit message; this change has been made by Daniel Friesen about 14 days ago, see http://svn.wikimedia.org/viewvc/mediawiki?view=rev&revision=36253 and it has also been shortly discussed on this list, see http://thread.gmane.org/gmane.science.linguistics.wikipedia.technical/38639/...
Regards, -- [[cs:User:Mormegil | Petr Kadlec]]
On 6/26/08, Petr Kadlec petr.kadlec@gmail.com wrote:
Yep, it is a so-called "linktrail" definition, and it is dependent on content language.
I don't think it has been an "accidental side effect", as it is mentioned in the commit message; this change has been made by Daniel Friesen about 14 days ago, see http://svn.wikimedia.org/viewvc/mediawiki?view=rev&revision=36253 and it has also been shortly discussed on this list, see http://thread.gmane.org/gmane.science.linguistics.wikipedia.technical/38639/...
Thank you for the information but I do not think this is desirable behavior and have filed https://bugzilla.wikimedia.org/show_bug.cgi?id=14655 (albeit with a minor fuck-up on my part).
—C.W.
Removed in r36693 http://svn.wikimedia.org/viewvc/mediawiki?view=rev&revision=36693. In the time I had been on the user end of MediaWiki I heard a lot of comments on [[Foo]]'s not linking the 's, which lead to some editors using [[Foo|Foo's]] which another fair number of editors complaining that it's unnecessary duplication of the text, just to append a simple 's to the word. Some wiki adopt the [[Foo|Foo's]] method, and others use [[Foo]]'s and silently grumble that the 's is not in the link but ignore it because it's cleaner in the code.
Perhaps I should trudge into the backend and setup a cleaner system for auto-redirects. I was thinking of creating a regex-redirect and a deep-redirect extension. But perhaps I could make redirect patterns something a bit more part of core. My original purpose was for entertainment wiki redirecting things like Ep 0*([0-9]+?) to [[Episode $1]]. If a default "/(.+?)'s/" => "$1" pattern was used then [[Foo's]] could be linked, and it would link to [[Foo's]] which if did not exist, would be an automatic redirect to [[Foo]]. Then the 's stays out of the link when you don't want it, you can add the 's when you want it, and you don't need to create a redirect for every word with 's appended to it.
Btw, if you were wondering about my reference to a Deep Redirect the point was; If you put #DEEPREDIRECT [[Bar]] on [[Foo]] then if you went to [[Foo/Foo]] and it did not exist it would be an automatic redirect to [[Bar/Foo]]. It was another extension suited for use over at Wikia ACG.
~Daniel Friesen(Dantman) of: -The Nadir-Point Group (http://nadir-point.com) --It's Wiki-Tools subgroup (http://wiki-tools.com) --Games-G.P.S. (http://ggps.org) -And Wikia ACG on Wikia.com (http://wikia.com/wiki/Wikia_ACG)
Charlotte Webb wrote:
On 6/26/08, Petr Kadlec petr.kadlec@gmail.com wrote:
Yep, it is a so-called "linktrail" definition, and it is dependent on content language.
I don't think it has been an "accidental side effect", as it is mentioned in the commit message; this change has been made by Daniel Friesen about 14 days ago, see http://svn.wikimedia.org/viewvc/mediawiki?view=rev&revision=36253 and it has also been shortly discussed on this list, see http://thread.gmane.org/gmane.science.linguistics.wikipedia.technical/38639/...
Thank you for the information but I do not think this is desirable behavior and have filed https://bugzilla.wikimedia.org/show_bug.cgi?id=14655 (albeit with a minor fuck-up on my part).
—C.W.
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
wikitech-l@lists.wikimedia.org