Last modified: 2012-10-02 17:50:11 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 17629 - linking to anchors in Special Pages, when not English
linking to anchors in Special Pages, when not English
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
All All
: Low minor with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2009-02-23 16:44 UTC by Dan Jacobson
Modified: 2012-10-02 17:50 UTC (History)
3 users (show)

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


Description Dan Jacobson 2009-02-23 16:44:22 UTC
How does one link to those <a name>s we find in Special Pages?

E.g, We set $wgSpecialVersionShowHooks=true; and attempt to make a
   I use these great [[Special:Version#Hooks|hooks]].

Works great for English sites, but for other languages one has to
hardwire e.g., [[Special:Version#.E9.88.8E]].
Comment 1 Purodha Blissenbach 2009-02-25 22:32:47 UTC
The localized string after # can be found in the MediaWiki: namespace,
or you localized file lanugageXzz.php, and it can be called by
a reference {{int:hook}}, where "hook" is the message name:


if you want the link spelt out and completely localized.
This works in any language, that a user can set in his or
her preferences, or via "uselang=" on the command line.

One way to find the name to be placed behind {{int:
is to look the string up in its page, then go to 
Special:Allmessage and search for the string there.
(Use copy&paste, if you browser or O/S support it)
The link anchor to the left of the string is the
message name. Make sure to check every occurrence
of the string, often there are several.

I hope, I could help.
Comment 2 Dan Jacobson 2009-02-28 20:57:52 UTC
OK thanks, I would have never figured it out myself.
I hope this is all documented somewhere.

This example works
(but is a bad example to document as it is not applicable to all wikis.)

(Maybe this is all related to )
Comment 3 Dan Jacobson 2009-02-28 21:39:06 UTC
Maybe somebody should document this on ?
Comment 4 Dan Jacobson 2009-03-25 03:00:36 UTC
As noted in and Bug #14404, all one has to do is uselang=... and the link gets broken. So readers of this bug should not try [[{{#Special:Version}}#{{int:version-hooks}}]].
Comment 5 Dan Jacobson 2009-04-23 03:04:14 UTC
Well, all I know is that this is a danger area for me to stay away from when typing in my wikitext.
Probably a duplicate...

*** This bug has been marked as a duplicate of bug 14404 ***
Comment 6 Ilmari Karonen 2009-04-23 08:13:51 UTC
I don't think this is a duplicate: the real issue is that special pages should have language-independent section anchors.  For some special pages, such as [[Special:Watchlist/edit]], this is indeed already true, but for [[Special:Version]] it apparently isn't.
Comment 7 Splarka 2009-04-23 08:27:38 UTC
Translating these anchors is probably fine, but they should only be translated for content language, not user language (like namespaces, special page names, magic words, and so forth) so that they remain site-stable.

So.. wfMsgForContent() or whatever?
Comment 8 db [inactive,noenotif] 2012-10-02 17:50:11 UTC
Many headers having mw-version-*

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