Last modified: 2014-09-18 00:08:20 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T56943, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 54943 - Link Special:MyPage, Special:MyTalk, Special:MyContributions from personal toolbar
Link Special:MyPage, Special:MyTalk, Special:MyContributions from personal to...
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
1.22.0
All All
: Lowest enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-03 21:55 UTC by Jared Zimmerman (WMF)
Modified: 2014-09-18 00:08 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Jared Zimmerman (WMF) 2013-10-03 21:55:47 UTC
This could also apply to:

User:
Contributions:


This would increase consistency with other special pages like watchlist, and preferences
Comment 1 Kunal Mehta (Legoktm) 2013-10-03 21:58:42 UTC
How would this work? You can have an article at "User talk".

(In reply to comment #0)
> 
> This would increase consistency with other special pages like watchlist, and
> preferences

What do you mean? [[Watchlist]] does not go to my watchlist, nor does [[Preferences]] go to my prefs.
Comment 2 Jared Zimmerman (WMF) 2013-10-03 22:01:12 UTC
Kunal, but the following links to…

https://en.wikipedia.org/wiki/Special:Watchlist
https://en.wikipedia.org/wiki/Special:Preferences

my point is that they go to those pages with your watchlist, and your preferences , even though your user name is not appended to the end.
Comment 3 Kunal Mehta (Legoktm) 2013-10-03 22:02:48 UTC
Oh. You're talking about [[Special:User talk]]. What's wrong with [[Special:MyTalk]], [[Special:MyPage]], and [[Special:MyContributions]]?
Comment 4 Jared Zimmerman (WMF) 2013-10-03 22:09:56 UTC
So maybe this should be two bugs, 

1, rewrite personal bar links to use those links you mentioned, rather than user name specific ones.

2, resolve 

https://en.wikipedia.org/wiki/User_talk to [[Special:MyTalk]]
https://en.wikipedia.org/wiki/User to [[Special:MyPage]]
Comment 5 Kunal Mehta (Legoktm) 2013-10-03 22:12:38 UTC
Marking as unconfirmed since it's unclear what exactly is wanted here.

(In reply to comment #4)
> So maybe this should be two bugs, 
> 
> 1, rewrite personal bar links to use those links you mentioned, rather than
> user name specific ones.

What's the difference? MyTalk just directs to User talk:$1, so it would just be slower for the user.

> 
> 2, resolve 
> 
> https://en.wikipedia.org/wiki/User_talk to [[Special:MyTalk]]
> https://en.wikipedia.org/wiki/User to [[Special:MyPage]]

That's a pretty clear WONTFIX. Where do you plan on putting the disambiguation page that is currently at https://en.wikipedia.org/wiki/User ?
Comment 6 Chad H. 2013-10-03 22:13:55 UTC
(In reply to comment #5)
> Marking as unconfirmed since it's unclear what exactly is wanted here.
> 
> (In reply to comment #4)
> > So maybe this should be two bugs, 
> > 
> > 1, rewrite personal bar links to use those links you mentioned, rather than
> > user name specific ones.
> 
> What's the difference? MyTalk just directs to User talk:$1, so it would just
> be
> slower for the user.
> 

No real gain I see here. No real loss. I could be persuaded either way.

> > 
> > 2, resolve 
> > 
> > https://en.wikipedia.org/wiki/User_talk to [[Special:MyTalk]]
> > https://en.wikipedia.org/wiki/User to [[Special:MyPage]]
> 
> That's a pretty clear WONTFIX. Where do you plan on putting the
> disambiguation
> page that is currently at https://en.wikipedia.org/wiki/User ?

This is absolutely a WONTFIX.
Comment 7 Nemo 2013-12-09 21:39:31 UTC
Updating summary per what above. Jared, you still need to provide a rationale for this proposed change; if you don't, the report may be closed INVALID for lack of sufficient information, see [[mw:How to report a bug]].
Comment 8 Jared Zimmerman (WMF) 2013-12-09 23:28:01 UTC
You summary is exactly what I meant when I created this. Just to increase consistency amongst special links, and how to link to them. What other details are needed.
Comment 9 Kunal Mehta (Legoktm) 2013-12-09 23:45:01 UTC
(In reply to comment #8)
> You summary is exactly what I meant when I created this. Just to increase
> consistency amongst special links, and how to link to them. What other
> details
> are needed.

Rationale on why that is significantly better than the current scenario that already provides those links to incur the costs I mentioned above and again below.

If we use the special page redirects, that makes the client make two requests to just get to the page rather than the current one.

Additionally, that breaks the fact that if your userpage/talk page doesn't exist it shows as a red link. Using redirects will force blue links.
Comment 10 Jared Zimmerman (WMF) 2013-12-10 04:13:32 UTC
What is the rational for having it on some but not other links? It seems if there was a performance argument for not having redirects we'd change them all to not be redirects. 

red/blue links on user names is useful for others possibly to see if someone has made a user page (this is debatable) but this is yet another argument for consistency to have all the same color links in the personal bar for users. Having a red user name for new users seems a little odd, since they'll likely not understand the difference right away.
Comment 11 Kunal Mehta (Legoktm) 2013-12-10 04:16:01 UTC
(In reply to comment #10)
> What is the rational for having it on some but not other links? It seems if
> there was a performance argument for not having redirects we'd change them
> all
> to not be redirects. 

Special:MyPage and friends are currently not used in the interface anywhere, you're proposing to add them to the interface.
Comment 12 Jared Zimmerman (WMF) 2013-12-10 04:26:10 UTC
yes Special:MyPage, Special:MyTalk, Special:MyContributions are not, but others are Special:Preferences, Special:Watchlist, and Special:UserLogout  

Jaredzimmerman (WMF) - https://en.wikipedia.org/wiki/User:Jaredzimmerman_(WMF)
Talk — https://en.wikipedia.org/wiki/User_talk:Jaredzimmerman_(WMF)
Preferences — https://en.wikipedia.org/wiki/Special:Preferences
Beta — https://en.wikipedia.org/wiki/Special:Preferences#mw-prefsection-betafeatures 
Watchlist — https://en.wikipedia.org/wiki/Special:Watchlist
Contributions — https://en.wikipedia.org/wiki/Special:Contributions/Jaredzimmerman_(WMF)
Log out — https://en.wikipedia.org/w/index.php?title=Special:UserLogout&returnto=Main+Page


as you can see Preferences, watchlist, and Logout all uses Special:XXX type links.
Comment 13 Chad H. 2013-12-10 04:30:04 UTC
(In reply to comment #12)
> yes Special:MyPage, Special:MyTalk, Special:MyContributions are not, but
> others
> are Special:Preferences, Special:Watchlist, and Special:UserLogout  
> 
> Jaredzimmerman (WMF) -
> https://en.wikipedia.org/wiki/User:Jaredzimmerman_(WMF)
> Talk — https://en.wikipedia.org/wiki/User_talk:Jaredzimmerman_(WMF)
> Preferences — https://en.wikipedia.org/wiki/Special:Preferences
> Beta —
> https://en.wikipedia.org/wiki/Special:Preferences#mw-prefsection-
> betafeatures 
> Watchlist — https://en.wikipedia.org/wiki/Special:Watchlist
> Contributions —
> https://en.wikipedia.org/wiki/Special:Contributions/Jaredzimmerman_(WMF)
> Log out —
> https://en.wikipedia.org/w/index.php?title=Special:
> UserLogout&returnto=Main+Page
> 
> 
> as you can see Preferences, watchlist, and Logout all uses Special:XXX type
> links.

So we're going to force users to redirect rather than have a direct link, just so links look the same? To end up at the same place anyway? I fail to see the point.

I believe you misunderstand the point of these Special:MyTalk & so forth pages. They don't exist for us to actually use in the UI (or do they exist as actual pages, nor should they), they exist so users have a good way to link to "your user page" and so forth in page content without busting the parser cache.
Comment 14 Matthew Flaschen 2013-12-10 04:33:16 UTC
(In reply to comment #10)
> What is the rational for having it on some but not other links? It seems if
> there was a performance argument for not having redirects we'd change them
> all to not be redirects. 

I'm not that concerned with the performance, since Special:MyPage and Special:MyTalk should be fast.

However, none of them are actually redirects (except Sandbox, but that's not in core).  Preferences, Beta, Watchlist, and Contributions can not simply be regular links.  They are inherently special, so they link to special pages.

User:Example and User_talk:Example could use Special:MyPage and Special:MyTalk.  However, the only potential advantage I see is if it helps people write help desk/teahouse answers or documentation (e.g. "You can edit your user styles at [[Special:MyPage/common.css]]").  This is a real advantage, but it will not affect most users.

> Having a red user name for new users seems a little odd, since they'll likely
> not understand the difference right away.

It's a good way (in addition to documentation, of course) of introducing them to red links, I think.

That said, we could still do it with the special page versions, since the personal toolbar does not use the parser.  It sets the classes (which then determine the link color) explicitly: https://git.wikimedia.org/blob/mediawiki%2Fcore.git/22cf03ac9ac393a5cec476dc710a3d8e77747d35/includes%2FSkinTemplate.php#L656
Comment 15 Kunal Mehta (Legoktm) 2013-12-10 04:35:04 UTC
(In reply to comment #14)
> (In reply to comment #10)
> > What is the rational for having it on some but not other links? It seems if
> > there was a performance argument for not having redirects we'd change them
> > all to not be redirects. 
> 
> I'm not that concerned with the performance, since Special:MyPage and
> Special:MyTalk should be fast.

I was talking about client side performance. An extra request is still an unneeded request IMO.
Comment 16 MZMcBride 2013-12-10 04:39:39 UTC
(In reply to comment #12)
> yes Special:MyPage, Special:MyTalk, Special:MyContributions are not, but
> others are Special:Preferences, Special:Watchlist, and Special:UserLogout  

Each page in MediaWiki has an assigned integer ID (page.page_id). This is unique. Each page in MediaWiki also has an associated numeric page namespace (e.g., 0 for article, 1 for talk, 2 for user, 3 for user talk, etc.) and an associate page title. This pairing (page.page_namespace, page.page_title) is also unique. This means that you can only have one page with a given title.

The English Wikipedia's namespaces are laid out at [[Wikipedia:Namespaces]]. As you can see, the Special namespace is -1.

The "personal tools" section mixes together standard MediaWiki pages (pages where page.page_namespace is in [2,3]) and Special pages (pages where page.page_namespace is -1).

Special pages are dynamic and don't retain page history (no associated revisions in the revision database table). Typical MediaWiki pages (such as user and user talk pages) have associated page histories and are static-ish.

Hope that helps.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links