Page MenuHomePhabricator

Add the Event namespace to the list of namespaces
Open, Stalled, Needs TriagePublicFeature

Description

Feature summary (what you would like to be able to do and where):
Add the Event namespace to the list of namespaces

Use case(s) (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution):

  1. Make a list
  2. Click filter
  3. Event namespace (and its talk page) should be listed

Benefits (why should this be implemented?):
This new namespace will most likely need AWB editing like every other namespace.

Event Timeline

Reedy changed the task status from Open to Stalled.Feb 24 2025, 5:18 PM
Reedy subscribed.

So AWB should be loading namespaces from the wiki via the API, and using those. There is some caching (not sure offhand how long), so there may be some delay...

We don't specifically hard code them.

It was only enabled a few days ago (5?) based on T386290: Enable CampaignEvents Extension on English Wikipedia and rOMWCb2a119321137: enwiki, mswikt: Enable the CampaignEvents extension.

Though, we do do some hard coding for "english" (wikipedia)...

I guess this should be updated as appropriate, though, for enwiki we shouldn't just hard code the NS like this, we should try and load from the API.

private static void SetToEnglish()
{
    foreach (var i in CanonicalNamespaces.Keys)
        Namespaces[i] = CanonicalNamespaces[i];

    Namespaces[4] = "Wikipedia:";
    Namespaces[5] = "Wikipedia talk:";
    Namespaces[100] = "Portal:";
    Namespaces[101] = "Portal talk:";
    Namespaces[118] = "Draft:";
    Namespaces[119] = "Draft talk:";
    Namespaces[126] = "MOS:";
    Namespaces[127] = "MOS talk:";
    Namespaces[710] = "TimedText:";
    Namespaces[711] = "TimedText talk:";
    Namespaces[828] = "Module:";
    Namespaces[829] = "Module talk:";