Header

From Conworld

(Difference between revisions)
 
(6 intermediate revisions not shown)
Line 1: Line 1:
-
  <script type="text/javascript">
+
  <style type="text/css">
-
  //Your Javascript Here
+
/*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.
 +
  [[User:Ketsu|Ketsu]] <sup><font size=-2>[[User_talk:Ketsu|Drop a Msg]]</font></sup><sub>Alex</sub> 03:45, 5 June 2008 (PDT)
 +
*/
-
  //Note: if you want your code to look nice on this page, put a space at the beginning of each line
+
.plainlinksneverexpand {
-
</script>
+
    background: none ! important;
 +
    padding: 0 ! important;
 +
}
 +
.plainlinksneverexpand .urlexpansion {
 +
    display: none ! important;
 +
}
-
<style type="text/css">
+
/* Make sure that ext links displayed within "plainlinksneverexpand" don't get
-
   /* This is the default style sheet that you can override : http://editthis.info/wiki/skins/monobook/main.css
+
   the arrow...
-
      For example uncomment this next section to turn all the text green:
+
*/
-
  */
+
.plainlinksneverexpand a {
 +
    background: none !important;
 +
    padding: 0 !important;
 +
}
-
  /*
+
/* With MediaWiki 1.5, the mechanism has changed: instead of a SPAN of class "urlexpansion"
-
body {
+
  following the anchor A, the anchor itself now has class "external autonumber" and the
-
     color: green;
+
  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>

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