Anybody??? I really like the look of the "wikitable" but can't figure out how to get it to work.
~Eric
-----Original Message----- From: mediawiki-l-bounces@Wikimedia.org [mailto:mediawiki-l-bounces@Wikimedia.org] On Behalf Of Frederich, Eric P2173 Sent: Thursday, June 01, 2006 11:01 AM To: mediawiki-l@Wikimedia.org Subject: [Mediawiki-l] wikitables
Hi, I am pretty new to media wiki. I was trying to follow the guide on tables here http://en.wikipedia.org/wiki/Help:Table
I found that when I put a table in my wiki like this....
{| class="wikitable" style="text-align:center" |+Multiplication table |- ! × !! 1 !! 2 !! 3 |- ! 1 | 1 || 2 || 3 |- ! 2 | 2 || 4 || 6 |- ! 3 | 3 || 6 || 9 |- ! 4 | 4 || 8 || 12 |- ! 5 | 5 || 10 || 15 |}
... I don't get the nice looking table with dark and light grey backgrounds in the cells. I get no borders either.
I went into skins/common/common.css and saw that it didn't have anything for wikitable so I pasted the following into there...
/* wikitable/prettytable class for skinning normal tables */
table.wikitable, table.prettytable { margin: 1em 1em 1em 0; background: #f9f9f9; border: 1px #aaaaaa solid; border-collapse: collapse; }
table.wikitable th, table.wikitable td, table.prettytable th, table.prettytable td { border: 1px #aaaaaa solid; padding: 0.2em; }
table.wikitable th, table.prettytable th { background: #f2f2f2; text-align: center; }
table.wikitable caption, table.prettytable caption { margin-left: inherit; margin-right: inherit; }
This still didn't help. What else do I need to do?
Thanks, ~Eric _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l