Author: dgrace
Description:
I'm working on a private MediaWiki installation intended as developer documentation for a software project.
Part of the documentation includes explanations of various SQL tables, many with underscores in them (i.e. 'table_name'). Several functions and other aspects of the program use underscores as well.
I've made a template that automatically corrects the display title of pages to show the underscores. However, it would be nice if there was an option that altered the link displayed in the category pages to reflect this, perhaps with some combination of options to:
a) Make {{DISPLAYTITLE}} the default sort key
b) Show category pages using the sort key as the link text rather than the actual page title. (Or the display title if the possibility of having a page's link not reflect the page's actual name is deemed a Bad Thing(tm))
c) Some magic word that could exist on the category page that sets the allowed/default behavior for page displays.
This would allow for cleaner-looking category pages in my case as well. For instance, all of my database objects are Database/object_name, so Category:Database Tables could simply show links 'table_name', etc. instead of 'Database/table_name'