Template talk:Category handler

{{User:MiszaBot/config

| algo = old(180d)

| archive = Template talk:Category handler/Archive %(counter)d

| counter = 1

| maxarchivesize = 150K

| archiveheader = {{Aan}}

| minthreadstoarchive = 1

| minthreadsleft = 3

}}{{central|Module talk:Category handler|Template talk:Category handler/numbered|Template talk:Category handler/blacklist}}

{{permprot}}

{{copied|from1=Template:Category_handler|from_oldid1=577959188|to1=:incubator:Template:Wp/nod/Category_handler|to_diff1=4237213

|from2=Template:Category_handler|from_oldid2=577959188|to2=:incubator:Template:Wp/nod/category_handler|to_diff2=4237215

|from3=Module:Category_handler|from_oldid3=617942873|to3=:incubator:Module:Wp/nod/Category_handler|to_diff3=4237020}}

{{archives}}

__FORCETOC__

Protected edit request on 19 March 2020

{{edit fully-protected|Template:Category handler|answered=y}}

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)

:File:Red information icon with gradient background.svg Not done: this is the talk page for discussing improvements to the template {{tlx|Category handler}}. Please make your request at the talk page for the article concerned. Izno (talk) 00:10, 20 March 2020 (UTC)

Protected edit request on 17 April 2020

{{edit fully-protected|Module:Category handler/blacklist|answered=yes}}

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)

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

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)