Page MenuHomePhabricator

MediaWiki:Sidebar doesn't get applied to mobile site
Closed, DeclinedPublic

Description

Many languages of Wikisource don't use the standard random because he generally redirect to a page of the namespace "page" of "book" who aren't adapted to the reading but to the edition. They often use Special:Random/NS:0 in order to only have pages for reading. Thanks for change the direction of the button random.


Version: unspecified
Severity: enhancement

Details

Reference
bz30902
TitleReferenceAuthorSource BranchDest Branch
Add ml group as CODEWONERStoolforge-repos/wiki-gpt!7isarantoadd-codeownersmain
Add pre-commit checks to CItoolforge-repos/wiki-gpt!6isarantoadd-ci-pipelinemain
Customize query in GitLab

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:56 PM
bzimport set Reference to bz30902.
bzimport added a subscriber: Unknown Object (MLST).

mmovchin wrote:

Which languages are using "Special:Random/NS:0"?

fr use NS:O, others use NS:0 and two other links for Book: and Author: namespaces (en, de, it, la, es...)
I think it may be a good idea to set it for all Wikisource but only in fr will be a good start.
Thanks !

pshinghal wrote:

Hi, I'd like to work on this, but I've never fixed bugs before. Could anyone help me?

(In reply to comment #3)

Hi, I'd like to work on this, but I've never fixed bugs before. Could anyone
help me?

I'll try find someone to help, thank you!

pshinghal wrote:

(In reply to comment #4)

(In reply to comment #3)

Hi, I'd like to work on this, but I've never fixed bugs before. Could anyone
help me?

I'll try find someone to help, thank you!

Great, thanks!

Heads up that this is block by our nav redesign.

Random seems to be working on the French version of Wikisource even though it is not namespaced - has this been fixed elsewhere?

The latest dev version is retrieving the random url from SpecialPage::getTitleFor - if this is not working and this is still a problem this suggests the problem is outside the MobileFrontend extension...?

So looking more closely at this it seems that the random link on fr.wikisource.org is defined in MediaWiki:Sidebar [1]. The mediawiki side bar has no meaning in the mobile site.

So reading between the lines I think what you are asking for is the ability to customise the random button on the mobile site so that it can be namespaced [2].

I'm marking this as an enhancement so we can decide if this is worth doing and how to do it.

[1] http://fr.wikisource.org/wiki/MediaWiki:Sidebar
[2] http://www.mediawiki.org/wiki/Help:Random_page#Namespace_selection

Well at least Mediawiki:Sidebar could be consulted when dynamically constructing
the menu. It's better than nothing. I mean the content of a desktop site is 'consulted' when outputting the mobile site, so unless overridden, the Mediawiki:Sidebar is a great source of information for at least hints of what to put into the mobile menu.
http://lists.wikimedia.org/pipermail/mobile-l/2014-April/006897.html thread.