[[Module:compound/templates]]: derivsee

Fragment of a discussion from User talk:Rua
Jump to navigation Jump to search

Actually, it seems that even the template doesn't show the text, but it's directly built into the #categorytree parser function. Do you know if there's a way to override the displayed text on that?

CodeCat15:56, 30 October 2014

I think all the settings are hardcoded, or only editable through LocalSettings.php.

DTLHS (talk)16:08, 30 October 2014
 

I don't know. The documentation is here, but it doesn't seem to cover that. Maybe MediaWiki developers would now.

WikiTiki8916:10, 30 October 2014
 

I guess you could try replacing it with some global CSS.

DTLHS (talk)16:14, 30 October 2014

Or local CSS immediately surrounding the parser function.

WikiTiki8916:31, 30 October 2014

But what could would that do? At best we would just do what the current class= argument to the parser function does anyway.

CodeCat16:45, 30 October 2014

For example, override script CSS for the category name line (assuming it has a different class from that of the entries. I have not checked.

WikiTiki8900:41, 31 October 2014

That's what the class= argument does.

CodeCat01:37, 31 October 2014

Does the class argument apply to just the category name line, or to the whole thing?

WikiTiki8902:02, 31 October 2014

I don't know. But it's what is used to apply the sc= parameter of the template currently.

CodeCat02:06, 31 October 2014

I looked into it and the class "CategoryTreeLabelCategory" is used for the category link, while "CategoryTreeLabelPage" is used for the entry links. So these are the ones we want to target. I'm not a CSS expert, but hopefully someone can figure out how to override "CategoryTreeLabelCategory" to inherit the "Latn" class.

WikiTiki8902:13, 31 October 2014