Jump to content

MediaWiki:Centralnotice-template-newtestbanner

From Meta, a Wikimedia project coordination wiki

<style type="text/css">

/* Common style for 2010 banners */
/* Hide the collapsed banner */
#centralNotice.collapsed .cn-fundraiser-banner {
 display: none;
}
/* Suppress lock icon for secure links in the banner */ 
#centralNotice a[href^="https://"], .link-https {
 background-image: none !important;
 padding: 0 !important;
}
/* Set a grey border, grey background, etc. */
.cn-fundraiser-banner {
 position: relative;
 border: 1px solid silver;
 background-color: #fbfbfb;
 margin-bottom: 0.5em !important;
 padding-top: 1em;
 padding-bottom: 1em;
 text-align:center;
}
/* Put the little X in the top-right corner */
#cn-toggle-box {
 position: absolute;
 top: .2em;
 right: .2em;
}
/* Bold, blue text */
.cn-blue-text {
 font-weight: bold;
 font-family: Helvetica, Verdana, sans-serif;
 color: #6e98c2;
 text-align: center;
 font-size: 1.3em;
}
/* Bigger bold, blue text */
.cn-bold-blue-text {
 font-size: 2.25em;
 font-weight: bold;
 font-family: Helvetica, Arial, sans-serif;
 color: navy;
 text-align: center;
 padding: 0.5em !important;
 line-height: 1em;
}
/* For buttons in the lower right corner */
.cn-bottom-right-float {
 position: absolute;
 right: 1em;
 bottom: 1em;
}
/* To make the entire banner clickable */
a.cn-full-banner-click {
 display:block;
 position:relative;
 height:100%;
 width:100%;
}

</style>

<script type="text/javascript"> var cn_rewrite_url = function() {

 var url = '{{{banner-url-2010}}}';
 var targets = String( '{{{targets}}}' ).split(',');
 if ( targets.length ) {
   url += "/" + targets[Math.floor( Math.random() * targets.length )].replace(/^\s+|\s+$/, );
 }
   url+= "?utm_medium=sitenotice&utm_campaign={{{campaign}}}&utm_source={{{banner}}}&country_code="+Geo.country;
 $j("div.cn-fundraiser-banner a.variable_lp").attr("href",url);

} if($j){

 $j(document).ready(cn_rewrite_url);

} </script>

   <a href="#" onclick="toggleNotice();return false"><img border="0" src="//bits.wikimedia.org/skins-1.17/common/images/closewindow.png" alt="Close" /></a>
 <a class="variable_lp" href="#">{{{hellomessage}}}</a>