[[Module:compound/templates]]: derivsee

Jump to navigation Jump to search

Why don't we have {{suffixsee}} et al. infer the script from the language?

WikiTiki8911:50, 30 October 2014

I've added script detection now.

CodeCat14:16, 30 October 2014

Thanks! The problem now is that the line that says "Xish words suffixed with -Y" is also in that script, even though it is in English. If possible, it should separate the "Xish words suffixed with" from "-Y" and use Latn for the former and script detection for the latter. Otherwise, it would be better if the whole line used Latn. If you need an example, see ־עניו (-enyu).

WikiTiki8915:44, 30 October 2014

That's harder to do. It's not the module that displays that text, but rather Template:deriv. I suppose I could integrate that template into the module more directly. Should I?

CodeCat15:54, 30 October 2014
 

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