Header

From Conworld

(Difference between revisions)
 
Line 1: Line 1:
  <style type="text/css">
  <style type="text/css">
-
  /*
+
/*Add formatting to make sure that "external references" from [[Template:Ref]] do
-
      Notes:  
+
  not get URL expansion, not even when printed. The mechanism up to MediaWiki 1.4 was
-
      -You must log as admin to edit this page
+
  that the HTML code contained a SPAN following the anchor A; this SPAN had the class
-
      -Whatever you enter in this page will be added to the html in the header after the standard style sheet, so you can override styles.  
+
  "urlexpansion", which was not displayed on screen, but was shown when the medium was
-
      -if you want your code to look nice on this page, put a space at the beginning of each line
+
  "print". The rules below ensure (a) that there is no extra padding to the right of
-
      -This is the default style sheet that you can override : http://editthis.info/wiki/skins/monobook/main.css  
+
  the anchor (displayed as "[<number>]"), (b) that there is no "external link arrow" for
-
     
+
  the link, and (c) that this SPAN of class "urlexpansion" is never shown.
-
      For example uncomment this next section to turn all the text green:
+
  [[User:Ketsu|Ketsu]] <sup><font size=-2>[[User_talk:Ketsu|Drop a Msg]]</font></sup><sub>Alex</sub> 03:45, 5 June 2008 (PDT)
-
  */
+
*/
-
  /*
+
 
-
body {
+
.plainlinksneverexpand {
-
     color: green;
+
    background: none ! important;
-
}
+
    padding: 0 ! important;
-
  */
+
}
 +
 
 +
.plainlinksneverexpand .urlexpansion {
 +
    display: none ! important;
 +
}
 +
 
 +
/* Make sure that ext links displayed within "plainlinksneverexpand" don't get
 +
  the arrow...
 +
*/
 +
.plainlinksneverexpand a {
 +
    background: none !important;
 +
    padding: 0 !important;
 +
}
 +
 
 +
/* With MediaWiki 1.5, the mechanism has changed: instead of a SPAN of class "urlexpansion"
 +
  following the anchor A, the anchor itself now has class "external autonumber" and the
 +
  expansion is inserted when printing (see the common printing style sheet at
 +
  http://en.wikipedia.org/skins-1.5/common/commonPrint.css) using the ":after" pseudo-
 +
  element of CSS. We have to switch this off for links due to Template:Ref!
 +
*/
 +
.plainlinksneverexpand a.external.text:after {
 +
     display: none !important;
 +
}
 +
.plainlinksneverexpand a.external.autonumber:after {
 +
    display: none !important;
 +
}
  </style>
  </style>
-
  <script type="text/javascript">
+
  <script type="text/javascript"></script>
-
  //Feel free to add your javascript code here.
+
-
</script>
+

Current revision as of 10:45, 5 June 2008

<style type="text/css">

/*Add formatting to make sure that "external references" from Template:Ref do

 not get URL expansion, not even when printed. The mechanism up to MediaWiki 1.4 was
 that the HTML code contained a SPAN following the anchor A; this SPAN had the class
 "urlexpansion", which was not displayed on screen, but was shown when the medium was
 "print". The rules below ensure (a) that there is no extra padding to the right of
 the anchor (displayed as "[<number>]"), (b) that there is no "external link arrow" for
 the link, and (c) that this SPAN of class "urlexpansion" is never shown.
 Ketsu Drop a MsgAlex 03:45, 5 June 2008 (PDT)
  • /

.plainlinksneverexpand {

   background: none ! important;
   padding: 0 ! important;

}

.plainlinksneverexpand .urlexpansion {

   display: none ! important;

}

/* Make sure that ext links displayed within "plainlinksneverexpand" don't get

  the arrow...
  • /

.plainlinksneverexpand a {

   background: none !important;
   padding: 0 !important;

}

/* With MediaWiki 1.5, the mechanism has changed: instead of a SPAN of class "urlexpansion"

  following the anchor A, the anchor itself now has class "external autonumber" and the
  expansion is inserted when printing (see the common printing style sheet at
  http://en.wikipedia.org/skins-1.5/common/commonPrint.css) using the ":after" pseudo-
  element of CSS. We have to switch this off for links due to Template:Ref!
  • /

.plainlinksneverexpand a.external.text:after {

   display: none !important;

} .plainlinksneverexpand a.external.autonumber:after {

   display: none !important;

}

</style>
<script type="text/javascript"></script>
Personal tools
ConPlanets