Page MenuHomePhabricator

Add namespace aliases to hrwiki
Closed, ResolvedPublic

Description

Local discussion here.

Please add the following namespace aliases to hrwiki:

  • WP = Wikipedia
  • WPR = Wikipedija Talk
  • MW = MediaWiki
  • MWR = MediaWiki Talk
  • KA = Category
  • KAR = Category Talk
  • SU = User
  • SUR = User Talk
  • DA = File
  • DAR = File Talk
  • PR = Template
  • PRR = Template Talk
  • PO = Help
  • POR = Help Talk
  • MO = Module
  • MOR = Module Talk

Thank you!

Event Timeline

Unfortunately, some of those aliases won't be possible. For instance, mw is already an interwiki prefix for mediawiki.org globally, and it's not possible to use that same string for something else (as that would make [[mw:foo]] ambiguous).

Same issue applies with the following aliases:

  • MW
  • KA
  • SU
  • DA
  • MO

The rest look okay on the first look -- but I didn't check very carefully. Generally, a string may not be a valid ISO language code to be usable as a prefix, and it must not be currently present in the interwiki map to be usable as an alias.

Please figure out some other aliases instead of the ones I highlighted. Thanks!

@Urbanecm Thank you for the clarification. I've restarted the discussion. WP seems to be universally agreed upon, so we can start with that - the other aliases can be agreed upon later, after further discussions.

Looking over aliases for other wikis in InitialiseSettings.php, I noticed a few discrepancies:

  • Line 3732: 'CA' => NS_CATEGORY, // T125801 (conflicts with cawiki)
  • Line 4032: 'М' => 828, // T127591) (conflicts with metawiki)
  • Line 4055: 'М' => 828, // T196719
  • Line 4067: 'М' => 828, // T197058
  • Line 4086: 'М' => 828, // T197565

As an afterthought, maybe a good change would be to standardize interwiki behaviour to avoid these kinds of issues, e.g. only links with a colon as a first character ( [[:m:Link]] ) should behave as interwiki links and map to other projects, while regular links ( [[M:Link]] ) should point to an alias?

Okay, discussion has died down for over a week now.
There doesn't seem to be a universally agreed solution, so let's implement all the suggestions, redundancy never hurt anyone:

  • WP - Wikipedia
  • WT, RWP - Wikipedia Talk
  • KT, CT - Category
  • RKT, RCT - Category Talk
  • SUR, U - User
  • RSUR, RU, RSS - User Talk
  • DT, F - File
  • RDT, RF - File Talk
  • ME - MediaWiki
  • RME - MediaWiki Talk
  • PM, H - Help
  • RPM, RH - Help Talk
  • MD, MOD - Module
  • RMD, RMOD - Module Talk

Change 709202 had a related patch set uploaded (by Ivi104; author: Ivi104):

[operations/mediawiki-config@master] Parent: 5e70423 (Restore wgEventStreamsDefaultSettings in InitialiseSettings-labs.php) Author: Ivi104 <ivi104.wiki@gmail.com> AuthorDate: 2021-08-01 00:31:03 +0200 Commit: Ivi104 <ivi104.wiki@gmail.com> CommitDate: 2021-08-01 00:31:03 +0200

https://gerrit.wikimedia.org/r/709202

Change 709202 abandoned by Ivi104:

[operations/mediawiki-config@master] Add namespace aliases to hrwiki

Reason:

https://gerrit.wikimedia.org/r/709202

Something weird is happening with Gerrit's web interface, I'll just let someone else handle this properly...

There doesn't seem to be a universally agreed solution, so let's implement all the suggestions, redundancy never hurt anyone:

For example C conflicts with Commons, so what is written above will not work afaiu.

Something weird is happening with Gerrit's web interface

I don't see anything weird?

For example C conflicts with Commons, so what is written above will not work afaiu.

Thank you, I missed that one. Let's do CT and RCT then. I edited my comment above.

I don't see anything weird?

There were random spaces being added, the cursor caret was always editing a few lines above from where it was placed, one of the patchsets was not saved, ...

Change 710564 had a related patch set uploaded (by Acamicamacaraca; author: Acamicamacaraca):

[operations/mediawiki-config@master] Add namespace aliases for hr.wiki

https://gerrit.wikimedia.org/r/710564

Change 710564 merged by jenkins-bot:

[operations/mediawiki-config@master] Add namespace aliases for hr.wiki

https://gerrit.wikimedia.org/r/710564

Mentioned in SAL (#wikimedia-operations) [2021-08-16T11:12:54Z] <lucaswerkmeister-wmde@deploy1002> Synchronized wmf-config/InitialiseSettings.php: Config: [[gerrit:710564|Add namespace aliases for hr.wiki (T287024)]] (duration: 00m 59s)

Mentioned in SAL (#wikimedia-operations) [2021-08-16T11:22:38Z] <Lucas_WMDE> lucaswerkmeister-wmde@mwmaint2002:~$ mwscript namespaceDupes.php hrwiki --fix --add-prefix=T287024/ | tee T287024.out # T287024

Mentioned in SAL (#wikimedia-operations) [2021-08-16T11:26:10Z] <Lucas_WMDE> namespaceDupes.php for T287024 finished

End of the namespaceDupes.php output:

88995 links to fix, 88913 were resolvable, 82 were deleted.

Some of the pages were moved below Wikipedija:T287024/, possibly for other namespaces as well (edit: nope, only in that namespace).

Aca claimed this task.