Topic on Project:Support desk

Stylizing Category Links and Names

2
Jer Hughes (talkcontribs)

I'm working with a lot of scientific names which have specific conventions for styling which I'm trying to adopt as best I can.

I have an article, such as Olearia macrodonta. I have the article title italicized using {{DISPLAYTITLE:''Olearia macrodonta''}}, this works fine, but I'm having issues with categories.

I'm trying to add this article into a category called "Oleria spp.". On the category page I use {{DISPLAYTITLE:Category:''Olearia'' spp.}} which (kind of) works, but is it possible to:

  • Have the category link on the article be partially italicized too?
  • Have the article links on the category be italicized?
  • Have the Pages in category "Olearia spp." text show as Pages in category "Olearia spp."
  • Alter the article links on that category page to show something else, like O. macrodonta?
  • Alter the alphabetizing of article links so O. macrodonta is listed under "M" instead of "O"?
Ciencia Al Poder (talkcontribs)

{{DISPLAYTITLE:}} only works on the displayed title of the affected page, not on links, categories, etc that link to that page. However, you can install Extension:Display Title to allow this to replicate in default links. I'm not sure if it covers categories (per task T183088).

  • Have the Pages in category "Olearia spp." text show as Pages in category "Olearia spp."

This one should work, since that's part of the title of the same page. If not, I encourage you to report a bug.

  • Alter the alphabetizing of article links so O. macrodonta is listed under "M" instead of "O"?

You can do this when specifying the category in the O. macrodonta page. For example, [[Category|Macrodonta]]. See Help:Categories#Sort key

Reply to "Stylizing Category Links and Names"