Here is the wiki and corresponding html. So I guess the answer is yes...class=wikitable is showing up in the html.
Thanks, ~Eric
{| 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 |}
<table class="wikitable" style="text-align:center"> <caption>Multiplication table </caption> <tr> <th> × </th><th> 1 </th><th> 2 </th><th> 3 </th></tr> <tr>
<th> 1 </th><td> 1 </td><td> 2 </td><td> 3 </td></tr> <tr> <th> 2 </th><td> 2 </td><td> 4 </td><td> 6
</td></tr> <tr> <th> 3 </th><td> 3 </td><td> 6 </td><td> 9 </td></tr> <tr> <th> 4 </th><td> 4 </td><td> 8 </td><td> 12
</td></tr> <tr> <th> 5 </th><td> 5 </td><td> 10 </td><td> 15 </td></tr></table>
-----Original Message----- From: mediawiki-l-bounces@Wikimedia.org [mailto:mediawiki-l-bounces@Wikimedia.org] On Behalf Of Joshua Yeidel Sent: Friday, June 02, 2006 4:23 PM To: mediawiki list Subject: Re: [Mediawiki-l] wikitables
Did you check that the class=wikitable attribute is actually showing up in the <table> tag when you "view source" in the browser? Is there more than one "class" attribute in that tag, or an ID in addition to the "class"?
I'm sorry this isn't a big help, but it might be a little help.
-- Joshua
On 6/2/06 12:33 PM, "Frederich, Eric P2173" eric.frederich@siemens.com wrote:
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 _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l