-
Giving a table a class?
I'm wondering how I would be able to give a (wiki) table a class.
I've tried as an example:
Code:
[table] style="text-align:center;" class="table2"|
....
[/table]
and included
Code:
.table2 {
background-color:red;
}
in vw-additional.css and as well as additional.css
Neither seem to work.
-
Class names have to be white-listed. Right now the only way to do that is with plugins. See: https://www.vaultwiki.org/threads/5682/
-
Is something changed for VW4? I would like to set global class for [table] bbcode, what is better way?
-
To force the style on every table, you can just add rules like:
Code:
.vw-block-content table {}
.vw-block-content td {}
.vw-block-content th {}
.vw-block-content caption {}
To make the class optional, then you have to create a plugin as mentioned above.
-
How to totally disable table/tr/td/th bbcodes? I have installed CTA Table BB Code xenforo extension, but it conflicts with VW bbcodes. I've tried to disable this tags in Syntax Manager, but now only TABLE bbcode is work, e.g.: http://a-parser.com/wiki_index/Парсеры
-
VaultWiki does not include TR/TD/TH BB-Codes. In VaultWiki, TABLE is the only one. The Syntax Manager will only disable/enable the VaultWiki one.
If you have another mod with a TABLE BB-Code, disabling the VaultWiki one will allow the mod's TABLE to work. If you want to remove TR/TD/TH, you need to disable/remove the mod that made those.