inline interwiki link now with class "extiw" instead of "external"
authorGabriel Wicke <gwicke@users.mediawiki.org>
Sat, 5 Jun 2004 11:12:26 +0000 (11:12 +0000)
committerGabriel Wicke <gwicke@users.mediawiki.org>
Sat, 5 Jun 2004 11:12:26 +0000 (11:12 +0000)
includes/Skin.php
stylesheets/monobook/main.css

index 99a3b22..11df111 100644 (file)
@@ -221,7 +221,7 @@ class Skin {
                return $a;
        }
 
-       function getExternalLinkAttributes( $link, $text )
+       function getExternalLinkAttributes( $link, $text, $class='' )
        {
                global $wgUser, $wgOut, $wgLang;
 
@@ -230,7 +230,7 @@ class Skin {
                $link = str_replace( "_", " ", $link );
                $link = wfEscapeHTML( $link );
 
-               $r = " class='external'";
+               $r = ($class != '') ? " class='$class'" : " class='external'";
 
                if ( 1 == $wgUser->getOption( "hover" ) ) {
                        $r .= " title=\"{$link}\"";
@@ -1473,7 +1473,7 @@ class Skin {
                        $u = $nt->getFullURL();
                        $link = $nt->getPrefixedURL();
                        if ( "" == $text ) { $text = $nt->getPrefixedText(); }
-                       $style = $this->getExternalLinkAttributes( $link, $text );
+                       $style = $this->getExternalLinkAttributes( $link, $text, 'extiw' );
 
                        $inside = "";
                        if ( "" != $trail ) {
index c1e7c52..065bf47 100644 (file)
@@ -61,7 +61,7 @@ table {
 }
 a {
     text-decoration: none;
-    color: #0014a6;
+    color: #004ba6;
     background: none;
 }
 a:visited { color: #5a3696; }
@@ -466,7 +466,7 @@ td.diff-context { background:#eeeeee; }
     padding-right: 18px;
 }
 /* disable interwiki styling */
-#bodyContent a.interwiki {
+#bodyContent a.extiw {
     color: #3366bb;
     background: none;
     padding: 0;