Page MenuHomePhabricator

Please create main page Tab for Bengali wikipedia.
Closed, ResolvedPublic

Description

Please create main page Tab for Bengaliwikipedia.If you see the main page of English wikipedia you can see the repective tab shown as "Main page" . But if you see our main page of Bengali wikipedia, you can see "নিবন্ধ"(Article).not shown "প্রধান পাতা"(main page). Why? How they done in English Wikipedia?

Mediawiki:Mainpage‎ and Mediawiki:Mainpage‎-description‎ both are assign "প্রধান পাতা"(main page). And Mediawiki:Nstab-main assign to "নিবন্ধ"(Article).


Version: unspecified
Severity: enhancement
URL: http://bn.wikipedia.org

Details

Reference
bz20987

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:47 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz20987.
bzimport added a subscriber: Unknown Object (MLST).

enwiki does this by using local JS (in [[MediaWiki:Common.js]], search for "main page layout fixes"). A sysop can simply copy this piece of JS to bnwiki's [[MediaWiki:Common.js]]

Javascript shouldn't be used for that.

The ca-nstab-project tab seems to be done on PHP.

To hide the title and categories of নিবন্ধ add to MediaWiki:Common.css
body.page-প্রধান_পাতা h1.firstHeading, body.page-প্রধান_পাতা#catlinks { display:none; }

(In reply to comment #2)

Javascript shouldn't be used for that.

The ca-nstab-project tab seems to be done on PHP.

If I understand correctly, the reporter wants the tab on the main page to say "main page" (in Bengali). The ca-nstab-* messages only work per namespace.

The ca-nstab-* messages only work per namespace.

There must be a way to change them for the main page without using CSS or javascript

Please compare:

wget http://es.wikipedia.org/wiki/Wikipedia:Portada -O - --user-agent=Bug20987 | grep ca-nstab-project

<li id="ca-nstab-project" class="selected"><a href="/wiki/Wikipedia:Portada" title="Ver la página de proyecto [a]" accesskey="a">Portada</a></li>

wget http://es.wikipedia.org/wiki/Wikipedia:Café -O - --user-agent=Bug20987 | grep ca-nstab-project

<li id="ca-nstab-project" class="selected"><a href="/wiki/Wikipedia:Caf%C3%A9" title="Ver la página de proyecto [a]" accesskey="a">Página del proyecto</a></li>

Dear all, I had tried js and MediaWiki:Common.css.But it is not fixed. Please rethink our issue.

I have found how it is done on es.wikipedia: Using a parser function.
http://es.wikipedia.org/w/index.php?title=MediaWiki:Nstab-project&action=edit
Domas may want to kill some admin for doing that.

There is a message 'pagetitle-view-mainpage' for the title-tag, maybe add a new one for the namespace tab.

  • This bug has been marked as a duplicate of bug 14267 ***