Page MenuHomePhabricator

Remove 'mainpage' from $wgForceUIMsgAsContentMsg for Wikidata
Open, Needs TriagePublic

Description

After some various changes, current mode for Wikikidata 'Mainpage' is "single page for any languages" (with automated substitution translated version related with UI language).

Thus, many messages 'MediaWiki:Mainpage/*' and redirects to 'Wikidata:Main_Page' are no longer required.

My proposal: remove 'mainpage' from $wgForceUIMsgAsContentMsg for Wikidata, - for eliminating these redirects for all further languages. In my opinion, 'MediaWiki:Mainpage' should be called from any languages without language suffix.

This is very broad problem. As example, for 'bg' (Bulgarian language) links to mainpage from sidebar and from logo is leads to unexisted page 'Начална страница' (while the translation Wikidata:Main Page/Content/bg is completed).

See also related topic inwiki.

Note: Current mode of Wikidata Main Page is existed from 3 September 2014 and may be considered as stable.

Details

Related Gerrit Patches:

Event Timeline

Kaganer created this task.Jan 7 2018, 8:43 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJan 7 2018, 8:43 PM
Kaganer updated the task description. (Show Details)Jan 7 2018, 8:45 PM
Kaganer updated the task description. (Show Details)
Kaganer updated the task description. (Show Details)Jan 7 2018, 8:51 PM

Commit was proposed, please do planning for deploy.

matej_suchanek added a subscriber: matej_suchanek.

Can't find your patch in Gerrit.

After some various changes, current mode for Wikikidata 'Mainpage' is "single page for any languages" (with automated substitution translated version related with UI language).

Are you sure this is the current mode for all languages? I found MediaWiki:Mainpage/is, at least, which currently contains “Wikidata:Forsíða/is”, and Wikidata:Forsíða/is is a separate page, not a redirect.

I think the safer approach would be to first go through [a search for prefix:MediaWiki/mainpage](https://www.wikidata.org/w/index.php?search=prefix%3AMediaWiki%3AMainpage) and delete each page found there after verifying that the page given by the message content is only a redirect to the main page, so that the message will fall back to the generic version. Then, once there are no more such message pages, we’ll know that it’s safe to remove 'mainpage' from $wgForceUIMsgAsContentMsg.

Kaganer added a comment.EditedJan 29 2018, 7:34 PM

@Lucas_Werkmeister_WMDE - you are right. See result of fast check: https://www.wikidata.org/wiki/User:Kaganer/fix-mainpage

Proposed change will lead to an unrecoverable problem for the variants zh-*** - switch for language options what is available in "Wikidata:Main_Page/Content/zh" will be not available on the "Wikidata:Main_Page", but only in "Wikidata:Main_Page/zh"

Please note, that current mode is also with incomplete functionality for zh-*** - main template is swithed, but sections that called through template based on {{int:Lang}}, is not swithed.

238482n375 set Security to Software security bug.Jun 15 2018, 8:05 AM
238482n375 added a project: acl*security.
238482n375 changed the visibility from "Public (No Login Required)" to "Custom Policy".
238482n375 added a subscriber: 238482n375.
This comment was removed by Vgutierrez.
Restricted Application added a project: acl*security. · View Herald TranscriptJun 15 2018, 10:13 AM
Vgutierrez changed the visibility from "Custom Policy" to "Public (No Login Required)".
Vgutierrez added a subscriber: Vgutierrez.
Vgutierrez removed a subscriber: Vgutierrez.