Thread:Project:Support desk/Custom tables with css

Hi

I want to change the styles of the wikitables (those created with {| |- and so on ). I can do this, by adding a "table" design to my skin main.css.

But: this means every "table" in the wiki will have this design, which messes up all the other tables that are built in, like e.g. the login mask, recent changes, the TOC,...

I don't really have a clue, how to best go on about this. My thought was, to introduce an "id" that all markup-created tables should get. I suppose I could find a way to do that in the wiki sourcefiles, but there's another problem. We already have an id for tables in use. So my thought was to go into the Sanitizer.php and somehow make it check if: along the way comes a "table" element. If so, check if it has an id. If not, add the new "standarttable" id.

Well... obviously I don't really know how to do that exactly, otherwise I wouldn't ask :/

Also, maybe someone knows a better way :)