Page MenuHomePhabricator

Create a Special:Namespaces page
Open, LowPublic


Look, there are a lot of namespaces across many more wikis. It's hard to keep track of them all and their various properties, so I just want to see something like Special:ListGroupRights for namespaces.

I'm looking for a table that would be (using Scots Wikipedia as an example):

1TalkAssociated talk page for Main
3User talkAssociated talk page for User
5Wikipedia talkAssociated talk page for Wikipedia
7File talkAssociated talk page for File
9MediaWiki talkAssociated talk page for MediaWiki
11Template talkAssociated talk page for Template
13Help talkAssociated talk page for Help
15Category talkAssociated talk page for Category
101Portal talkAssociated talk page for Portal
103Define talkAssociated talk page for Define
829Module talkAssociated talk page for Module
2301Gadget talkAssociated talk page for Gadget
2302Gadget definition$hooks
2303Gadget definition talkAssociated talk page for Gadget definition

Related/Other open tasks

Event Timeline

MJL created this task.Sep 22 2020, 2:07 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptSep 22 2020, 2:07 AM
Reedy added a subscriber: Reedy.Sep 22 2020, 2:14 AM

What are $hooks?

I suspect if we're going to do something like this, it should list aliases too

It's all public information, and is available through the API -|namespacealiases

Might be worth including other information that API module includes too... Namespace protections, content models, subpages etc. Basically anything that someone might want to know, but it shouldn't require a human to poke the API, or look at the wiki config to find out

Shouldn't be too difficult to implement though!

Reedy awarded a token.Sep 22 2020, 2:15 AM

@Reedy if I send a patch, would you be willing to review?

Reedy added a comment.Sep 22 2020, 2:19 AM

@Reedy if I send a patch, would you be willing to review?

Yeah. I think it's something reasonably valuable to have

DannyS712 triaged this task as Low priority.
Restricted Application added a project: User-DannyS712. · View Herald TranscriptSep 22 2020, 2:20 AM
DannyS712 moved this task from Unsorted to Next on the User-DannyS712 board.Sep 22 2020, 2:20 AM
Reedy added a comment.Sep 22 2020, 2:24 AM

Might be worth thinking about maybe adding a "description" message for the namespace and it's user talk too

Especially if they're implemented by extensions and such, being able to link to docs on what they do etc

And then for site specific stuff, we can add messages to WikimediaMessages

(Yes, scope creep)

I'm thinking something like

idCanonical nameLocal nameDescriptionProperties
0(main)(main)Main namespace
1TalkTalkTalk pages for the main namespace
8MediaWikiMediaWikiNamespace controlling the display interfaceNamespace protection: editinterface
2302Gadget definitionGadget definitionDefinitions of site gadgetsDefault content model: GadgetDefinition

(for English, Canonical=Local so maybe don't include the canonical column?)
We can also include under properties if there are subpages enabled, if it is a content namespace, and if it is nonincludable

Messages for the descriptions should be added by extensions that add the namespaces, falling back to the default of something like "Custom namespace from an installed extension"

Kizule added a subscriber: Kizule.

Love it.

@DannyS712 Maybe for 0 it could make use of the message from MediaWiki:Blanknamespace, since that's what folks will locally see most often. I can imagine '' would be useful for the literal sense.

MJL awarded a token.Sep 22 2020, 9:15 PM
MJL added a comment.Sep 22 2020, 9:18 PM

I made this task on a whim without any expectation that people would actually review it. I can't believe there's a chance it might get implemented! [0_0]

I'm so excited now!! <3

Reedy added a comment.Sep 22 2020, 9:19 PM

I must admit, this is one of these "Why haven't we done this already?" ;)

Change 637656 had a related patch set uploaded (by DannyS712; owner: DannyS712):
[mediawiki/core@master] Add Special:NamespaceInfo

Rubin16 added a subscriber: Rubin16.Sun, Nov 1, 6:29 PM