Page MenuHomePhabricator

Correct project namespace for Kannada Wikipedia
Closed, ResolvedPublic

Description

Author: shushruth

Description:
The Kannada wikipedia equivalent of wikipedia namespace is ವಿಕಿಪೀಡಿಯ (eg: [[:kn:WP:CP|Community page]]). However when we use the special:random link, at times, we get pages from this namespace. I can't figure out if it can be fixed locally.
Thanks for your time. -- [[:kn:User:ಶುಶ್ರುತ]]/[[:meta:User:Shushruth]]


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

Details

Reference
bz11717

Event Timeline

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

Judging by the naming of the Project talk namespace on your wikipedia (), and looking at [[kn:Special:Prefixindex]], I'd say that ವಿಕಿಪೀಡಿಯ: isn't a real namespace (only a prefix you use for pages that belong to Wikipedia namespace). Thus, all Project: pages are in the main namespace, meaning that Special:Random can find them. One of the sysadmins should change the Wikipedia: to ವಿಕಿಪೀಡಿಯ: and Wikipedia_talk to whatever's the right namespace name for Project_talk. :)

shushruth wrote:

I am an admin at the kn wiki. However, I do not know how to bring about the changes suggested by Dungodung. Can someone guide me on how to do it? Thanks.

In the LocalSettings.php file, you need to add the following lines to the bottom:

$wgMetaNamespace = "ವಿಕಿಪೀಡಿಯ";
$wgMetaNamespaceTalk = "ವಿಕಿಪೀಡಿಯ_talk"; // Or whatever Project_talk should be in your language

robchur wrote:

That would be helpful information if this weren't a Wikimedia wiki, but as it is, it is - and it's furthermore incomplete information, since a maintenance script also needs to be run to update various things.

Marking for shell attention.

jeluf wrote:

The namespace has been renamed. There were some errors while moving pages to the new namespace. Those pages need to be checked manually. They've got a "---DUPLICATE" suffix to their page name. The output of my (not fully UTF-8 capable) shell window:

Checking namespace 4: "ವಿ▒ಿಪ▒ಡಿಯ"
... 4 conflicts detected:
... 1152 (0,"ವಿ▒ಿಪ▒ಡಿಯ:FAQ") -> (4,"FAQ") [[ವಿ▒ಿಪ▒ಡಿಯ:FAQ]]
... * cannot resolve automatically; page exists with ID ಲ▒▒ನ]]
... * cannot resolve automatically; paಲ▒▒ನ---DUPLICATE]] * *
... resolving on page... ok. [[ವಿ▒ಿಪ▒ಡಿಯ:▒ಲ▒
... 996 (0,"ವಿ▒ಿಪ▒ಡಿಯ:ವಿಶ▒ಷ_ಬರಹ") -> (4,"ವಿಶ▒ಷ_ಬರಹ") [[ವಿ▒ಿಪ▒ಡಿಯ:ವಿಶ▒ಷ ಬರಹ]]
...
* cannot resolve automatically; page exists with ID 8552 *
...
* using suffixed form [[ವಿ▒ಿಪ▒ಡಿಯ:ವಿಶ▒ಷ ಬರಹ---DUPLICATE]] *
... resolving on page... ok.
... 999 (0,"ವಿ▒ಿಪ▒ಡಿಯ:ವಿಶ▒ಷ_ಬರಹ▒ಳ▒") -> (4,"ವಿಶ▒ಷ_ಬರಹ▒ಳ▒") [[ವಿ▒ಿಪ▒ಡಿಯ:ವಿಶ▒ಷ ಬರಹ▒ಳ▒]]
...
* cannot resolve automatically; page exists with ID 8551 *
...
* using suffixed form [[ವಿ▒ಿಪ▒ಡಿಯ:ವಿಶ▒ಷ ಬರಹ▒ಳ▒---DUPLICATE]] ***
... resolving on page... ok.

Oh noeees

shushruth wrote:

Thanks a bunch for the fix JeLuF. However we now seem to have a small problem. The prefix "wikipedia" (i.e. written in English) when used in wikilinks no longer directs to the relevant Wikipedia space article but links to the english wikipedia article (akin to using ":en" as a prefix). We have a lot of links created like that previously which no longer work. Any fix for this will be greatly appreciated. Thanks.

That is, sadly, the expected behavior. The real fix would be to change the links to point to the newly created namespace.

jeluf wrote:

Added namespace aliases:

'knwiki' => array(
    'Wikipedia' => NS_PROJECT,
    'Wikipedia_talk' => NS_PROJECT_TALK,
),

> FIXED

shushruth wrote:

Vielen Dank :-) Works right now.