Currently on English Wikipedia, there are a number of tables which use inline CSS formatting to achieve certain effects such as alignment of text, or specfic bordering styles.. Mediawiki as configured on English Wikipedia provides a 'wikitable' class which provides a nice looking set of styling for some tables.
However, by comparison English Wikisource currently provides a table style template: https://en.wikisource.org/wiki/Template:Table_style which provides a number of short code sequences (currently upto 9) to apply various forms of table formatting. The current implementation of this template is a directly coded MASSIVE parser function, which to add new codes requires that the /parse portion of the template be updated directly, and has performance implications..
A better way of doing this to me would be to have an equivalent of TemplateStyles for Tables, allowing relevant styles to be applied on a per table basis, albiet the stylesheet(s) for a given sequence of tables may be the same stylesheet page located elsewhere on a given wiki.
The TableStyle template itself could then be altered so that the short codes are converted into name munged class names in a common CSS defined style sheet, such that new codes could be easily added to the style sheet, without needing to alter the core logic of the TableStyle template itself...
Also Could TemplateStyles could be used on certain non-template WikiPages, where a commonality of styling without using inline CSS would be desirable?