On English Wikisource there is an exceptionally useful template called {{ts}} short for table style.
This task has been opened as a feature request for this to be implemented inside the parser.
The relevant templates are :
https://en.wikisource.org/w/index.php?title=Template:Ts&redirect=no
https://en.wikisource.org/wiki/Template:Table_style
https://en.wikisource.org/w/index.php?title=Template:Table_style/parse&action=edit
The request is made because.
- It is easier to type format codes than it is lengthy CSS
- For a long table having to include lengths of CSS code is time-consuming
- It means that the actual CSS style markup on tables would only have to be checked in one location.(In the actual table it would be the format codes that are checked.)
- The current version of template is limited to 10 codes.
- Having the format codes in one place, means you only need to change one string when the CSS standard is updated.
There may of course be alternative solutions to making styling easier to maintain.