[Mediawiki-l] wikitables
Joshua Yeidel
yeidel at wsu.edu
Fri Jun 2 20:22:33 UTC 2006
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 at 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 at Wikimedia.org
> [mailto:mediawiki-l-bounces at Wikimedia.org] On Behalf Of Frederich, Eric
> P2173
> Sent: Thursday, June 01, 2006 11:01 AM
> To: mediawiki-l at 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 at Wikimedia.org
> http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l at Wikimedia.org
> http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
More information about the MediaWiki-l
mailing list