Page MenuHomePhabricator

Create draft namespace and add namespaces aliases for hewikinews
Closed, ResolvedPublic

Description

Hi,

We request namespaces changes for HeWikinews.

The consensus and all the detail are located on:

Part #1 there, contains a table of the needed new names and abbreviations for the existing namespaces.
Part #2 there, requesting the creation of the abbreviation "מי" for the "special"/"מיוחד" pseudo-namespace.
Part #3 there, asking for adding of draft namespace.

Please let us know about any questions or ambiguities. We want to make every effort to let you carry out the changes efficiently and accurately.

Thank you,
~ "Hyphen" (user:מקף)
~ (On behalf of the HeWikinews community)

Event Timeline

Anoop renamed this task from New Namespaces` names and abbreviations for HeWikinews to add namespaces names and abbreviations for hewikinews.Oct 24 2023, 4:40 PM
Anoop renamed this task from add namespaces names and abbreviations for hewikinews to Create draft namespace and add namespaces aliases for hewikinews.Oct 25 2023, 3:45 AM

Change 968318 had a related patch set uploaded (by Anzx; author: Anzx):

[operations/mediawiki-config@master] Create draft namespace and add namespaces aliases for hewikinews

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

@Hyphen , please check if the patch i created is ok, and i have set draft namespace to noindex,nofollow in $wgNamespaceRobotPolicies

'wgNamespaceAliases' => [
	'+hewikinews' => [ // T349581
		'מי' => NS_SPECIAL,
		'ש' => NS_TALK,
		'מש' => NS_USER,
		'U' => NS_USER,
		'שמש' => NS_USER_TALK,
		'וק' => NS_PROJECT,
		'שוק' => NS_PROJECT_TALK,
		'וח' => NS_PROJECT,
		'שוח' => NS_PROJECT_TALK,
		'קו' => NS_FILE,
		'שקו' => NS_FILE_TALK,
		'מו' => NS_MEDIAWIKI,
		'שמו' => NS_MEDIAWIKI_TALK,
		'תב' => NS_TEMPLATE,
		'שתב' => NS_TEMPLATE_TALK,
		'עז' => NS_HELP,
		'שעז' => NS_HELP_TALK,
		'קט' => NS_CATEGORY,
		'שקט' => NS_CATEGORY_TALK,
		'תג' => NS_CATEGORY,
		'שתג' => NS_CATEGORY_TALK,
		'פ' => /* Portal */ 100,
		'שפ' => /* Portal talk */ 101,
		'Portal' => 100,
		'Portal_talk' => 101,
		'Draft' => 118,
		'Draft_talk' => 119,
		'י' => /* Module */ 828,
		'שי' => /* Module talk */ 829,
	],
],
'wgExtraNamespaces' => [
	'hewikinews' => [
		100 => 'פורטל',
		101 => 'שיחת_פורטל',
		118 => 'טיוטה', // Draft - T349581
		119 => 'שיחת_טיוטה',
	],
],

Hey thanks.

In the meantime, I noticed that we made a mistake and should also add

		'משת' => NS_USER,
		'שמשת' => NS_USER_TALK,

In addition to-

		'מש' => NS_USER,
		'שמש' => NS_USER_TALK,

( The 'ת' suffix is for the female form ).

As for the rest, there may be other things. I want to be careful, to read it again and ask for the assistance of another wikipedian or two.

Hope to give final update soon, thank you!

@Anoop Some changes:

'wgNamespaceAliases' => [
	'+hewikinews' => [ // T349581
		'מי' => NS_SPECIAL,
		'ש' => NS_TALK,
		'מש' => NS_USER,
		'משת' => NS_USER,
		'U' => NS_USER,
		'שמש' => NS_USER_TALK,
		'שמשת' => NS_USER_TALK,
		'וק' => NS_PROJECT,
		'שוק' => NS_PROJECT_TALK,
		'וח' => NS_PROJECT,
		'שוח' => NS_PROJECT_TALK,
		'קו' => NS_FILE,
		'שקו' => NS_FILE_TALK,
		'מו' => NS_MEDIAWIKI,
		'שמו' => NS_MEDIAWIKI_TALK,
		'תב' => NS_TEMPLATE,
		'שתב' => NS_TEMPLATE_TALK,
		'עז' => NS_HELP,
		'שעז' => NS_HELP_TALK,
		'קט' => NS_CATEGORY,
		'תג' => NS_CATEGORY,
		'שתג' => NS_CATEGORY_TALK,
		'שקט' => NS_CATEGORY_TALK,
		'פ' => /* Portal */ 100,
		'שפ' => /* Portal talk */ 101,
		'Portal' => 100,
		'Portal_talk' => 101,
		'Draft' => 118,
		'Draft_talk' => 119,
		'י' => /* Module */ 828,
		'שי' => /* Module talk */ 829,
	],
],
'wgExtraNamespaces' => [
	'hewikinews' => [
		14  => 'תגית',
		15  => 'שיחת_תגית',
		100 => 'מדור',
		101 => 'שיחת_מדור',
		118 => 'טיוטה', // Draft - T349581
		119 => 'שיחת_טיוטה',
	],
],

Through $wgExtraNamespaces I defined namespace number 14 as "תגית" (tag), and not as the default - "קטגוריה" (category). Should I add to "wgNamespaceAliases" an abbreviation from the old name, or is it automatic? Thanks, Neriah.

I only need it for hewikinews, and not for all Hebrew wiki sites. Is it also done through there?

I only need it for hewikinews, and not for all Hebrew wiki sites. Is it also done through there?

Can be done
NS_CATEGORY => 'תגית',
NS_CATEGORY_TALK => 'שיחת_תגית',

'wgNamespaceAliases' => [
		'+hewikinews' => [ // T349581
		'מי' => NS_SPECIAL,
		'ש' => NS_TALK,
		'U' => NS_USER,
		'וק' => NS_PROJECT,
		'שוק' => NS_PROJECT_TALK,
		'וח' => NS_PROJECT,
		'שוח' => NS_PROJECT_TALK,
		'קו' => NS_FILE,
		'שקו' => NS_FILE_TALK,
		'מו' => NS_MEDIAWIKI,
		'שמו' => NS_MEDIAWIKI_TALK,
		'תב' => NS_TEMPLATE,
		'שתב' => NS_TEMPLATE_TALK,
		'עז' => NS_HELP,
		'שעז' => NS_HELP_TALK,
		'קט' => NS_CATEGORY,
		'תג' => NS_CATEGORY,
		'קטגוריה' => NS_CATEGORY,
		'שיחת_קטגוריה' => NS_CATEGORY_TALK,
		'שתג' => NS_CATEGORY_TALK,
		'שקט' => NS_CATEGORY_TALK,
		'פ' => /* Portal */ 100,
		'שפ' => /* Portal talk */ 101,
		'Portal' => 100,
		'Portal_talk' => 101,
		'Draft' => 118,
		'Draft_talk' => 119,
		'י' => /* Module */ 828,
		'שי' => /* Module talk */ 829,
	],
],
'wgExtraNamespaces' => [
	'hewikinews' => [
		100 => 'פורטל',
		101 => 'שיחת_פורטל',
		118 => 'טיוטה', // Draft - T349581
		119 => 'שיחת_טיוטה',
		NS_CATEGORY => 'תגית', // overriding default from MessagesHe.php - T349581
		NS_CATEGORY_TALK => 'שיחת_תגית',
	],
],
'wgExtraGenderNamespaces' => [
	'hewikinews' => [
		NS_USER => [ 'male' => 'מש', 'female' => 'משת' ],
		NS_USER_TALK => [ 'male' => 'שמש', 'female' => 'שמשת' ]
	],	
],

@neriah , @Hyphen , as seen above i have made changes to patch, please recheck it.

Anoop changed the task status from Stalled to In Progress.Nov 29 2023, 8:10 AM
Anoop changed the task status from In Progress to Stalled.Dec 12 2023, 5:43 AM

Stalled until confirmation from community members

@Anoop Sorry for the late reply.
4 small notes:

  1. It seems to me that using $wgExtraGenderNamespaces is unnecessary, and you could put it in $wgNamespaceAliases. Our goal is not to rename the user space, but to add a shortcut, like all other shortcuts. I think it could be:
		'מש' => NS_USER,
		'משת' => NS_USER,
		'שמש' => NS_USER_TALK,
		'שמשת' => NS_USER_TALK,
  1. In addition, we want to change the space "portal" (פורטל) to "מדור", similar to changing "category" to "תגית" (tag). How can this be done?
  2. Besides adding the draft space, we also want to add shortcuts to it:
		'טי' => NS_Draft,
		'שטי' => NS_Draft_TALK,
  1. Other shortcuts, which for some reason do not appear yet:
		'מד' => NS_Portal,
		'שמד' => NS_Portal_TALK,

Hope I didn't miss anything...
Thanks!

@neriah , thanks for response

  1. $wgExtraGenderNamespaces works same as wgNamespaceAliases, so changes required
  2. We can add old portal name and aliases in wgNamespaceAliases and change portal name in wgExtraNamespaces
  3. & 4. I will add draft and portal namespace aliases

I would love to receive the final code, thanks!

'wgNamespaceAliases' => [
	'+hewikinews' => [ // T349581
		'מי' => NS_SPECIAL,
		'ש' => NS_TALK,
		'U' => NS_USER,
		'וק' => NS_PROJECT,
		'שוק' => NS_PROJECT_TALK,
		'וח' => NS_PROJECT,
		'שוח' => NS_PROJECT_TALK,
		'קו' => NS_FILE,
		'שקו' => NS_FILE_TALK,
		'מו' => NS_MEDIAWIKI,
		'שמו' => NS_MEDIAWIKI_TALK,
		'תב' => NS_TEMPLATE,
		'שתב' => NS_TEMPLATE_TALK,
		'עז' => NS_HELP,
		'שעז' => NS_HELP_TALK,
		'קט' => NS_CATEGORY,
		'תג' => NS_CATEGORY,
		'קטגוריה' => NS_CATEGORY,
		'שיחת_קטגוריה' => NS_CATEGORY_TALK,
		'שתג' => NS_CATEGORY_TALK,
		'שקט' => NS_CATEGORY_TALK,
		'פורטל' => /* Portal */ 100,
		'שיחת_פורטל' => /* Portal talk */ 101,
		'פ' => /* Portal */ 100,
		'שפ' => /* Portal talk */ 101,
		'מד' => /* Portal */ 100,
		'שמד' => /* Portal talk */ 101,
		'טי' => /* Draft */ 100,
		'שטי' => /* Draft talk */ 101,
		'י' => /* Module */ 828,
		'שי' => /* Module talk */ 829,
	],
],
'wgExtraNamespaces' => [
	'hewikinews' => [
		100 => 'מדור', // Portal - T349581 
		101 => 'שיחת_מדור',
		118 => 'טיוטה', // Draft - T349581
		119 => 'שיחת_טיוטה',
		NS_CATEGORY => 'תגית', // overriding default from MessagesHe.php - T349581
		NS_CATEGORY_TALK => 'שיחת_תגית',
	],
],
'wgExtraGenderNamespaces' => [
	'hewikinews' => [
		NS_USER => [ 'male' => 'מש', 'female' => 'משת' ],
		NS_USER_TALK => [ 'male' => 'שמש', 'female' => 'שמשת' ]
	],	
],

@neriah , please check above patch https://gerrit.wikimedia.org/r/c/operations/mediawiki-config/+/968318/

Looks good, but still lacks what I wrote in paragraph 2. Thank you for your investment.

Portal and draft namespace updated

'wgExtraNamespaces' => [
	'hewikinews' => [
                100 => 'מדור', // Portal - T349581 
		101 => 'שיחת_מדור',
		118 => 'טיוטה', // Draft - T349581
		119 => 'שיחת_טיוטה',
],	
],
'wgNamespaceAliases' => [
	'+hewikinews' => [
                'פורטל' => /* Portal */ 100,
		'שיחת_פורטל' => /* Portal talk */ 101,
		'פ' => /* Portal */ 100,
		'שפ' => /* Portal talk */ 101,
		'מד' => /* Portal */ 100,
		'שמד' => /* Portal talk */ 101,
		'טי' => /* Draft */ 100,
		'שטי' => /* Draft talk */ 101,
		'Portal' => 100,
		'Portal_talk' => 101,
],	
],

@neriah , done , please do check on gerrit patch also https://gerrit.wikimedia.org/r/c/operations/mediawiki-config/+/968318

Great. I'd be happy to wait for final approval from Hyphen (which has been a little less active lately).
Thank you very much for the great investment.

thanks, i can wait if some more members double check the patch

Change 968318 merged by jenkins-bot:

[operations/mediawiki-config@master] Create draft namespace and add namespaces aliases for hewikinews

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

Mentioned in SAL (#wikimedia-operations) [2024-01-09T14:28:16Z] <samtar@deploy2002> Started scap: Backport for [[gerrit:968318|Create draft namespace and add namespaces aliases for hewikinews (T349581)]]

Mentioned in SAL (#wikimedia-operations) [2024-01-09T14:30:06Z] <samtar@deploy2002> samtar and anzx: Backport for [[gerrit:968318|Create draft namespace and add namespaces aliases for hewikinews (T349581)]] synced to the testservers (https://wikitech.wikimedia.org/wiki/Mwdebug)

Mentioned in SAL (#wikimedia-operations) [2024-01-09T14:38:22Z] <samtar@deploy2002> Finished scap: Backport for [[gerrit:968318|Create draft namespace and add namespaces aliases for hewikinews (T349581)]] (duration: 10m 05s)

Mentioned in SAL (#wikimedia-operations) [2024-01-09T14:38:49Z] <TheresNoTime> [samtar@mwmaint2002 ~]$ mwscript namespaceDupes.php --wiki hewikinews --fix T349581

1[samtar@mwmaint2002 ~]$ mwscript namespaceDupes.php --wiki hewikinews --fix
2id=7753 ns=0 dbk=וק:אח -> ויקיחדשות:אח (no conflict)
3id=7079 ns=0 dbk=וק:במ -> ויקיחדשות:במ (no conflict)
4id=1404 ns=0 dbk=וק:ד -> ויקיחדשות:ד (no conflict)
5id=2182 ns=0 dbk=וק:די -> ויקיחדשות:די (no conflict)
6id=10321 ns=0 dbk=וק:יק -> ויקיחדשות:יק (no conflict)
7id=7086 ns=0 dbk=וק:כה -> ויקיחדשות:כה (no conflict)
8id=8082 ns=0 dbk=וק:מ -> ויקיחדשות:מ (no conflict)
9id=2153 ns=0 dbk=וק:פ -> ויקיחדשות:פ (no conflict)
10id=10361 ns=0 dbk=וק:צבע -> ויקיחדשות:צבע (no conflict)
11id=1402 ns=0 dbk=וק:קד -> ויקיחדשות:קד (no conflict)
12id=9133 ns=0 dbk=תב:עדכונים *** dest title exists and --add-prefix not specified
13id=9851 ns=0 dbk=תב:קד -> תבנית:קד (no conflict)
14id=9852 ns=0 dbk=תב:קיצור -> תבנית:קיצור (no conflict)
1513 pages to fix, 12 were resolvable.
16
17pagelinks from=1397 ns=0 dbk=ש:איזושהיא_כתבה -> שיחה:איזושהיא_כתבה
18pagelinks from=9734 ns=0 dbk=ש:איזושהיא_כתבה -> שיחה:איזושהיא_כתבה
19pagelinks from=9801 ns=0 dbk=מש:127.0.0.1 -> משתמש:127.0.0.1
20pagelinks from=9803 ns=0 dbk=מש:127.0.0.1 -> משתמש:127.0.0.1
21pagelinks from=9583 ns=0 dbk=מש:Neriah -> מש:Neriah
22pagelinks from=9801 ns=0 dbk=מש:Yonidebest -> משתמש:Yonidebest
23pagelinks from=9803 ns=0 dbk=מש:Yonidebest -> משתמש:Yonidebest
24pagelinks from=9801 ns=0 dbk=מש:אנונימי -> משתמש:אנונימי
25pagelinks from=9802 ns=0 dbk=מש:אנונימי -> משתמש:אנונימי
26pagelinks from=9803 ns=0 dbk=מש:אנונימי -> משתמש:אנונימי
27pagelinks from=9801 ns=0 dbk=מש:פלוני_שכתב_ללא_חתימה -> משתמש:פלוני_שכתב_ללא_חתימה
28pagelinks from=9802 ns=0 dbk=מש:פלוני_שכתב_ללא_חתימה -> משתמש:פלוני_שכתב_ללא_חתימה
29pagelinks from=9803 ns=0 dbk=מש:פלוני_שכתב_ללא_חתימה -> משתמש:פלוני_שכתב_ללא_חתימה
30pagelinks from=5072 ns=0 dbk=מש:とある白い猫 -> משתמש:とある白い猫
31pagelinks from=1367 ns=0 dbk=וק:אח -> ויקיחדשות:אח
32pagelinks from=6287 ns=0 dbk=וק:אח -> ויקיחדשות:אח
33pagelinks from=8560 ns=0 dbk=וק:אח -> ויקיחדשות:אח
34pagelinks from=1401 ns=0 dbk=וק:במ -> ויקיחדשות:במ
35pagelinks from=1409 ns=0 dbk=וק:במ -> ויקיחדשות:במ
36pagelinks from=7076 ns=0 dbk=וק:במ -> ויקיחדשות:במ
37pagelinks from=9586 ns=0 dbk=וק:במ -> ויקיחדשות:במ
38pagelinks from=1397 ns=0 dbk=וק:ד -> ויקיחדשות:ד
39pagelinks from=1398 ns=0 dbk=וק:ד -> ויקיחדשות:ד
40pagelinks from=1401 ns=0 dbk=וק:ד -> ויקיחדשות:ד
41pagelinks from=9570 ns=0 dbk=וק:ד -> ויקיחדשות:ד
42pagelinks from=9665 ns=0 dbk=וק:ד -> ויקיחדשות:ד
43pagelinks from=1401 ns=0 dbk=וק:די -> ויקיחדשות:די
44pagelinks from=1409 ns=0 dbk=וק:די -> ויקיחדשות:די
45pagelinks from=1410 ns=0 dbk=וק:די -> ויקיחדשות:די
46pagelinks from=9567 ns=0 dbk=וק:חדשות -> ויקיחדשות:חדשות
47pagelinks from=10319 ns=0 dbk=וק:יק -> ויקיחדשות:יק
48pagelinks from=1401 ns=0 dbk=וק:כה -> ויקיחדשות:כה
49pagelinks from=7085 ns=0 dbk=וק:כה -> ויקיחדשות:כה
50pagelinks from=1397 ns=0 dbk=וק:מ -> ויקיחדשות:מ
51pagelinks from=1398 ns=0 dbk=וק:מ -> ויקיחדשות:מ
52pagelinks from=9665 ns=0 dbk=וק:מ -> ויקיחדשות:מ
53pagelinks from=10360 ns=0 dbk=וק:צבע -> ויקיחדשות:צבע
54pagelinks from=1401 ns=0 dbk=וק:קד -> ויקיחדשות:קד
55pagelinks from=1400 ns=0 dbk=תב:קד -> תבנית:קד
56pagelinks from=1400 ns=0 dbk=תב:קיצור -> תבנית:קיצור
57pagelinks from=9185 ns=0 dbk=תב:שי -> תבנית:שי
5841 links to fix, 34 were resolvable, 7 were deleted.
59
60Oh noeees

id=9133 ns=0 dbk=תב:עדכונים *** dest title exists and --add-prefix not specified

[samtar@mwmaint2002 ~]$ mwscript namespaceDupes.php --wiki hewikinews --fix --add-prefix "BROKEN "
id=9133 ns=0 dbk=תב:עדכונים -> תבנית:BROKEN_עדכונים (alternate)
1 pages to fix, 1 were resolvable.

0 links to fix, 0 were resolvable, 0 were deleted.

Looks good!
Anoop claimed this task.

Hi @Anoop.
It seems that the creation of the shortcut to the משתמש (user) space did not work as we wanted.
My intention was to create a shortcut from the names "מש", "שמש", "משת" and "שמשת" to the space, like all the other abbreviations, and not define it as another name for the space. What stems from this problem is that there are user talk pages named "שמש" (both from the recent changes page, both in the page title and in the link).

I think the solution is to delete the following lines (InitialiseSettings.php & 7,130-7,133):

	'hewikinews' => [
		NS_USER => [ 'male' => 'מש', 'female' => 'משת' ],
		NS_USER_TALK => [ 'male' => 'שמש', 'female' => 'שמשת' ]
	],

and add to the definition in "core-Namespaces.php" (line 666):

		'מש' => NS_USER,
		'משת' => NS_USER,
		'שמש' => NS_USER_TALK,
		'שמשת' => NS_USER_TALK,

Thanks!

Hi @Anoop.
It seems that the creation of the shortcut to the משתמש (user) space did not work as we wanted.
My intention was to create a shortcut from the names "מש", "שמש", "משת" and "שמשת" to the space, like all the other abbreviations, and not define it as another name for the space. What stems from this problem is that there are user talk pages named "שמש" (both from the recent changes page, both in the page title and in the link).

I think the solution is to delete the following lines (InitialiseSettings.php & 7,130-7,133):

	'hewikinews' => [
		NS_USER => [ 'male' => 'מש', 'female' => 'משת' ],
		NS_USER_TALK => [ 'male' => 'שמש', 'female' => 'שמשת' ]
	],

and add to the definition in "core-Namespaces.php" (line 666):

		'מש' => NS_USER,
		'משת' => NS_USER,
		'שמש' => NS_USER_TALK,
		'שמשת' => NS_USER_TALK,

Thanks!

Can you please explain how your wiki intended to use gender namespace aliases. Does your wiki need just aliases and not use https://www.mediawiki.org/wiki/Manual:$wgExtraGenderNamespaces i couldn't understand

@Anoop The difference in gender already exists, and we just wanted to add shortcuts to the "משתמש" (user) space from several names and genders.
Thank you!

Change 993494 had a related patch set uploaded (by Anzx; author: Anzx):

[operations/mediawiki-config@master] hewikinews: remove wgExtraGenderNamespaces and add wgNamespaceAliases

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

Change 993494 merged by jenkins-bot:

[operations/mediawiki-config@master] hewikinews: remove wgExtraGenderNamespaces and add wgNamespaceAliases

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

Mentioned in SAL (#wikimedia-operations) [2024-01-29T14:34:12Z] <logmsgbot> lucaswerkmeister-wmde@deploy2002 Started scap: Backport for [[gerrit:993494|hewikinews: remove wgExtraGenderNamespaces and add wgNamespaceAliases (T349581)]]

Mentioned in SAL (#wikimedia-operations) [2024-01-29T14:36:03Z] <logmsgbot> lucaswerkmeister-wmde@deploy2002 anzx and lucaswerkmeister-wmde: Backport for [[gerrit:993494|hewikinews: remove wgExtraGenderNamespaces and add wgNamespaceAliases (T349581)]] synced to the testservers (https://wikitech.wikimedia.org/wiki/Mwdebug)

Mentioned in SAL (#wikimedia-operations) [2024-01-29T14:46:42Z] <logmsgbot> lucaswerkmeister-wmde@deploy2002 Finished scap: Backport for [[gerrit:993494|hewikinews: remove wgExtraGenderNamespaces and add wgNamespaceAliases (T349581)]] (duration: 12m 29s)

Mentioned in SAL (#wikimedia-operations) [2024-02-21T14:47:35Z] <TheresNoTime> [samtar@mwmaint2002 ~]$ mwscript namespaceDupes.php --wiki hewikinews --fix #T349581