Last modified: 2012-10-02 17:50:11 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 T19629, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 17629 - linking to anchors in Special Pages, when not English
linking to anchors in Special Pages, when not English
Status: REOPENED
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
1.14.x
All All
: Low minor with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  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: ---


Attachments

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
link:
   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:

     [[Special:Version#{{int:xxxxx}}|hook]]
or:
     [[{{#special:Version}}#{{int:xxxxx}}]]

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
[[{{#Special:Version}}#{{int:version-hooks}}]]
(but is a bad example to document as it is not applicable to all wikis.)

(Maybe this is all related to http://lists.wikimedia.org/pipermail/wikitech-l/2009-February/041770.html )
Comment 3 Dan Jacobson 2009-02-28 21:39:06 UTC
Maybe somebody should document this on http://meta.wikimedia.org/wiki/Help:Editing ?
Comment 4 Dan Jacobson 2009-03-25 03:00:36 UTC
As noted in  http://www.mediawiki.org/wiki/Help:Magic_words#Miscellaneous 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.


Navigation
Links