Hi, After upgrading to Mediawiki 1.17.0 (from 1.15) the background color of my tables has disappeared, has anybody any notion how I can get this sorted out? conor
Someone else may be able to provide further insight but as I currently test on 1.15, I noticed that as well. Most people on 1.16+ seem to use the new wikipedia "wikitable" class for that blue & white table layout. "sortable" is another usefull class that adds some javascript sorting buttons to columns.
You may need to copy things from WP to make them work, I'm not entirely clear on that right now.
You may be able to add to your MediaWiki:Common.css to get some default stylings on your tables again as well, and look at the old 1.15 stylings by download one of the archive distributions.
On Thu, Sep 29, 2011 at 11:52 AM, Conor Glynn conorglynn@gmail.com wrote:
Hi, After upgrading to Mediawiki 1.17.0 (from 1.15) the background color of my tables has disappeared, has anybody any notion how I can get this sorted out? conor
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Do you mean a background-color that you specifically specified or the default background-color (which was white).
Consider the following two examples:
{| style="background-color: red;" ! foo |- | bar |}
{| class="wikitable" ! foo |- | bar |}
If the above two do not have a background color (the former from the style attribute, the latter via the "table.wikitable" css rule) on your wiki, then please file a bug as this should still work.
If you mean the default background color for plain tables, eg:
{| ! foo |- | bar |}
then it is not a bug. This white background color was intentionally removed in 1.17. It was once added to avoid lines from headings from going through the background of a table. This was fixed in 1.17, making the background-color hack on tables, forms and thumbnails redundant.
If you want to style your tables, please do so by using a default style (like class="wikitable") or by creating your own classes on the [[MediaWiki:Common.css] page of your wiki.
eg.
" table.foobar { background: grey; } table.foobar th { background: black; color: white; }" which creates grey tables with a black heading.
or put the following on Common.css if you want the old behavior back from <1.16:
" table { background-color: white; } " (without the " quotes " );
-- Krinkle
On Thu, Sep 29, 2011 at 5:52 PM, Conor Glynn conorglynn@gmail.com wrote:
Hi, After upgrading to Mediawiki 1.17.0 (from 1.15) the background color of my tables has disappeared, has anybody any notion how I can get this sorted out? conor
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org