Page MenuHomePhabricator

Allow to set custom help page links for namespaces
Open, Needs TriagePublicBUG REPORT

Description

You can also use such messages for override/add help links for namespaces (e.g. MediaWiki:Namespace-0-helppage) and page actions (e.g. MediaWiki:History-helppage).

Despite @matmarex saying this, I can’t get it working in Russian Wikipedia with Module namespace:

In Category namespace it works fine:

It should be possible to set custom help links for namespaces based on that syntax, like was suggested in T45591: Link translatable help pages on mediawiki.org from the relevant special pages, actions etc.

* (T45591) Links to MediaWiki.org translatable help were added to indicators,
  mostly in special pages. Local custom target titles can be placed in the
  relevant '(namespace-X|action name|special page name)-helppage' system
  message. Extensions can use the addHelpLink() function to do the same.

Event Timeline

stjn renamed this task from Allow to get custom help page links for namespaces to Allow to set custom help page links for namespaces.Feb 10 2024, 11:47 PM
stjn added a project: Russian-Sites.

I misunderstood how the code works – looking at it more closely, you can override help links for namespaces if they already exist, but you can't add them.

(The code in Article::addHelpLink() supports all namespaces, but it only kicks in when that function is called, and it's only called from CategoryPage. Note that there are other functions named addHelpLink() on other classes, and they are called in more places, but they have no effect on this.)

I agree it would be nice to make it work the way we already thought it does.