* Add class=wikitable to some tables on specialpages for better styling consistency
authorRaimond Spekking <raymond@users.mediawiki.org>
Wed, 17 Jun 2009 18:05:03 +0000 (18:05 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Wed, 17 Jun 2009 18:05:03 +0000 (18:05 +0000)
* Remove CSS definitions for these tables as far as possible

includes/DefaultSettings.php
includes/ImagePage.php
includes/specials/SpecialListgrouprights.php
includes/specials/SpecialStatistics.php
includes/specials/SpecialTags.php
includes/specials/SpecialVersion.php
skins/common/shared.css
skins/modern/main.css
skins/monobook/main.css

index 831731f..e9ff710 100644 (file)
@@ -1486,7 +1486,7 @@ $wgCacheEpoch = '20030516000000';
  * to ensure that client-side caches do not keep obsolete copies of global
  * styles.
  */
-$wgStyleVersion = '225';
+$wgStyleVersion = '226';
 
 
 # Server-side caching:
index 376199d..eea3d28 100644 (file)
@@ -809,7 +809,7 @@ class ImageHistoryList {
                        . "<div id=\"mw-imagepage-section-filehistory\">\n"
                        . $wgOut->parse( wfMsgNoTrans( 'filehist-help' ) )
                        . $navLinks . "\n"
-                       . Xml::openElement( 'table', array( 'class' => 'filehistory' ) ) . "\n"
+                       . Xml::openElement( 'table', array( 'class' => 'wikitable filehistory' ) ) . "\n"
                        . '<tr><td></td>'
                        . ( $this->current->isLocal() && ($wgUser->isAllowed('delete') || $wgUser->isAllowed('deleterevision') ) ? '<td></td>' : '' )
                        . '<th>' . wfMsgHtml( 'filehist-datetime' ) . '</th>'
index 44cd024..8a44efc 100644 (file)
@@ -33,7 +33,7 @@ class SpecialListGroupRights extends SpecialPage {
                $this->outputHeader();
 
                $wgOut->addHTML(
-                       Xml::openElement( 'table', array( 'class' => 'mw-listgrouprights-table' ) ) .
+                       Xml::openElement( 'table', array( 'class' => 'wikitable mw-listgrouprights-table' ) ) .
                                '<tr>' .
                                        Xml::element( 'th', null, wfMsg( 'listgrouprights-group' ) ) .
                                        Xml::element( 'th', null, wfMsg( 'listgrouprights-rights' ) ) .
index 5431eb8..9b2462e 100644 (file)
@@ -56,7 +56,7 @@ class SpecialStatistics extends SpecialPage {
                        $this->doRawOutput();
                }
 
-               $text = Xml::openElement( 'table', array( 'class' => 'mw-statistics-table' ) );
+               $text = Xml::openElement( 'table', array( 'class' => 'wikitable mw-statistics-table' ) );
 
                # Statistic - pages
                $text .= $this->getPageStats();         
index d18b6e0..57feeae 100644 (file)
@@ -36,7 +36,7 @@ class SpecialTags extends SpecialPage {
                        $html .= $this->doTagRow( $tag, 0 );
                }
 
-               $wgOut->addHTML( Xml::tags( 'table', array( 'class' => 'mw-tags-table' ), $html ) );
+               $wgOut->addHTML( Xml::tags( 'table', array( 'class' => 'wikitable mw-tags-table' ), $html ) );
        }
 
        function doTagRow( $tag, $hitcount ) {
index e589af9..62cbac8 100644 (file)
@@ -102,7 +102,7 @@ class SpecialVersion extends SpecialPage {
                wfRunHooks( 'SoftwareInfo', array( &$software ) );
 
                $out = Xml::element( 'h2', array( 'id' => 'mw-version-software' ), wfMsg( 'version-software' ) ) .
-                          Xml::openElement( 'table', array( 'id' => 'sv-software' ) ) .
+                          Xml::openElement( 'table', array( 'class' => 'wikitable', 'id' => 'sv-software' ) ) .
                                "<tr>
                                        <th>" . wfMsg( 'version-software-product' ) . "</th>
                                        <th>" . wfMsg( 'version-software-version' ) . "</th>
@@ -174,7 +174,7 @@ class SpecialVersion extends SpecialPage {
                wfRunHooks( 'SpecialVersionExtensionTypes', array( &$this, &$extensionTypes ) );
 
                $out = Xml::element( 'h2', array( 'id' => 'mw-version-ext' ), wfMsg( 'version-extensions' ) ) .
-                       Xml::openElement( 'table', array( 'id' => 'sv-ext' ) );
+                       Xml::openElement( 'table', array( 'class' => 'wikitable', 'id' => 'sv-ext' ) );
 
                foreach ( $extensionTypes as $type => $text ) {
                        if ( isset ( $wgExtensionCredits[$type] ) && count ( $wgExtensionCredits[$type] ) ) {
@@ -291,7 +291,7 @@ class SpecialVersion extends SpecialPage {
                        ksort( $myWgHooks );
 
                        $ret = Xml::element( 'h2', array( 'id' => 'mw-version-hooks' ), wfMsg( 'version-hooks' ) ) .
-                               Xml::openElement( 'table', array( 'id' => 'sv-hooks' ) ) .
+                               Xml::openElement( 'table', array( 'class' => 'wikitable', 'id' => 'sv-hooks' ) ) .
                                "<tr>
                                        <th>" . wfMsg( 'version-hook-name' ) . "</th>
                                        <th>" . wfMsg( 'version-hook-subscribedby' ) . "</th>
index 02b4353..dae65ee 100644 (file)
@@ -32,16 +32,9 @@ div#mw-js-message {
 /**
  * File histories
  */
-table.filehistory {
-       border:1px solid #ccc;
-       border-collapse:collapse;
-}
-
 table.filehistory th,
 table.filehistory td {
-       padding: 0 0.2em 0 0.2em;
        vertical-align:top;
-       border:1px solid #ccc;
 }
 table.filehistory th {
        text-align: left;
@@ -406,30 +399,12 @@ td.os-suggest-result-hl {
        font-weight: bold;
 }
 
-/*
- * Special:ListGroupRights styling
- * Special:Statistics styling 
- * Special:Tags styling 
-*/
-
-table.mw-listgrouprights-table,
-table.mw-statistics-table,
-table.mw-tags-table {
-       border: 1px solid #ccc;
-       border-collapse: collapse;
-}
-
+/* Special:ListGroupRights styling */
 table.mw-listgrouprights-table tr  {
        vertical-align: top;
 }
 
-table.mw-listgrouprights-table td, table.mw-listgrouprights-table th,
-table.mw-statistics-table td, table.mw-statistics-table th,
-table.mw-tags-table td, table.mw-tags-table th {
-       padding: 0.5em 0.2em 0.5em 0.2em;
-       border: 1px solid #ccc;
-}
-
+/* Special:Statistics styling */
 td.mw-statistics-numbers {
        text-align: right;
 }
index 6d99a04..0315bc3 100644 (file)
@@ -929,29 +929,6 @@ table.multipageimage td {
    text-align: center;
 }
 
-/** Special:Version */
-
-table#sv-ext, table#sv-hooks, table#sv-software {
-       margin: 1em;
-       padding:0em;
-}
-
-#sv-ext td, #sv-hooks td, #sv-software td,
-#sv-ext th, #sv-hooks th, #sv-software th {
-       border: 1px solid #A0A0A0;
-       padding: 0 0.15em 0 0.15em;
-}
-#sv-ext th, #sv-hooks th, #sv-software th {
-       background-color: #F0F0F0;
-       color: black;
-       padding: 0 0.15em 0 0.15em;
-}
-tr.sv-space{
-       height: 0.8em;
-       border:none;
-}
-tr.sv-space td { display: none; }
-
 /*
   Table pager (e.g. Special:Imagelist)
   - remove underlines from the navigation link
index f3d06f2..349f603 100644 (file)
@@ -1419,28 +1419,6 @@ table.multipageimage td {
    text-align: center;
 }
 
-/** Special:Version */
-
-table#sv-ext, table#sv-hooks, table#sv-software {
-       margin: 1em;
-       padding:0em;
-}
-
-#sv-ext td, #sv-hooks td, #sv-software td,
-#sv-ext th, #sv-hooks th, #sv-software th {
-       border: 1px solid #A0A0A0;
-       padding: 0 0.15em 0 0.15em;
-}
-#sv-ext th, #sv-hooks th, #sv-software th {
-       background-color: #F0F0F0;
-       color: black;
-       padding: 0 0.15em 0 0.15em;
-}
-tr.sv-space{
-       height: 0.8em;
-       border:none;
-}
-tr.sv-space td { display: none; }
 
 /*
   Table pager (e.g. Special:Imagelist)