Template talk:Category handler

Revision as of 18:08, 9 September 2024 by w>Od1n (Genderified namespaces: link to the relevant page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Latest comment: 8 September 2024 by Od1n in topic Genderified namespaces

Template:Central Template:Permprot

This page is being depreciated


Protected edit request on 19 March 2020

She is Trinidad and Tobago-born rapper, African American categories need to be remove as there is a difference. ADOS MMXX (talk) 21:13, 19 March 2020 (UTC)Reply

  Not done: this is the talk page for discussing improvements to the template This page is being depreciated. Please make your request at the talk page for the article concerned. Izno (talk) 00:10, 20 March 2020 (UTC)Reply

Protected edit request on 17 April 2020

Wikipedia:Template messages was renamed to Wikipedia;Template index. Update the entry in the blacklist accordingly. * Pppery * it has begun... 19:34, 17 April 2020 (UTC)Reply

Done. Jo-Jo Eumerus (talk) 08:48, 18 April 2020 (UTC)Reply

Genderified namespaces

About this (in Module:Category handler/shared):

	-- We don't use title.nsText for the namespace name because it adds
	-- underscores.

While tweaking this code (by the way, see T369784), I just discovered another difference:

In frwiki, for the "User:" namespace, we have two different words: "Utilisateur:" for male (or unknown) users and "Utilisatrice:" for female users. Same goes for the "User talk:" namespace.

Now, assuming titleObj represents a user page of a female user:

mw.site.namespaces[titleObj.namespace].name
-- always gives: "Utilisateur" (gender is not applied)

titleObj.nsText
-- gives: "Utilisatrice" (gender is applied)

By the way, from a technical point of view, this namespace genderification is a pain in the ass. On a regular basis.

Od1n (talk) 12:12, 8 September 2024 (UTC)Reply

Return to "Category handler" page.