Template talk:Category handler

(Redirected from Module talk:Category handler/config)
Latest comment: 2 months ago by Od1n in topic Genderified namespaces


Protected edit request on 19 March 2020

edit

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 {{Category handler}}. 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

edit

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

edit

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