alias for Special:RelatedChanges - patch included
Closed, ResolvedPublic

Description

Author: bugz-wikimedia

Description:
Patch to implement

Special:Recentchangeslinked makes awkward wikilinks and does not match the standard text in the toolbox, "Related Changes". However, it is easy to add an alias for Special:RelatedChanges and this minor change is unlikely to break anything in the future.

A short discussion was (2008-02-19 to 2008-02-22) at:
http://en.wikipedia.org/wiki/Wikipedia:VP/T#Recent_changes_to_Main_Page_articles

I include a patch that does this. It alters the english localization to add the alias. According to the documentation, this should also provide the alias to most languages as well, using fallback. I have tested the patch on svn-current r31195 (2008-02-22 11:20:15 -0500).


Version: 1.12.x
Severity: enhancement

Attached: SpecialRelatedChanges.diff

bzimport added a subscriber: Unknown Object (MLST).
bzimport set Reference to bz13112.
bzimport created this task.Via LegacyFeb 22 2008, 6:14 PM
bzimport added a comment.Via ConduitFeb 23 2008, 2:54 PM

charlottethewebb wrote:

  • 'Recentchangeslinked' => array( 'Recentchangeslinked' ), + 'Recentchangeslinked' => array( 'Recentchangeslinked', 'RelatedChanges' ),

I'm pretty sure all "special:" pages are titled in lowercase except for the first letter. Of course, if the user requests [[Special:ReCeNtChaNGEsLInkEd]], the url will be coerced to "Recentchangeslinked", but I don't know whether that would work the other way in a case the internally defined name contains irregular capitalization. Even if it does work, probably better to keep them consistent.

bzimport added a comment.Via ConduitFeb 23 2008, 6:32 PM

bugz-wikimedia wrote:

(In reply to comment #1)

> - 'Recentchangeslinked' => array( 'Recentchangeslinked' ),
> + 'Recentchangeslinked' => array( 'Recentchangeslinked', 'RelatedChanges' ),

I'm pretty sure all "special:" pages are titled in lowercase except for the
first letter. Of course, if the user requests [[Special:ReCeNtChaNGEsLInkEd]],
the url will be coerced to "Recentchangeslinked", but I don't know whether that
would work the other way in a case the internally defined name contains
irregular capitalization. Even if it does work, probably better to keep them
consistent.

Hrm, the current file is a little inconsistent here. Really most of the special pages names are lowercase as you say. However, DoubleRedirects, BrokenRedirects, CreateAccount, MIMEsearch, and MergeHistory are mixed case. Basically though it is only capitalization of the string on the left hand side of the => that matters, since even ReLAteDcHangEs will redirect to Recentchangeslinked (not RelatedChanges or anything).

I'm fine with either capitalization, and Relatedchanges seems consistent enough for me.

brion added a comment.Via ConduitFeb 28 2008, 12:04 AM

Works for me. :)

Might consider switching the alias to the main name at some point, but no rush.

Add Comment