MediaWiki:Centralnotice-template-stew2012 noms

<style type="text/css"> /* Styles for Notices */

.notice-stew2012-noms {

   margin: 2px auto;
   width: 100%;
   padding: 0;
   font-family: 'Arial','Helvetica','Tahoma',sans-serif;
   color: #333;
   font-size: .9em;
   font-weight: 200;
   border: 1px solid #bbb;
   background-color: #fcfcfc;
   text-align: left;

}

.notice-stew2012-noms a {

   color: #006699;

}

.trans-box {

   text-align: right;
   font-size: 0.8em;
   padding: 0;
   white-space: nowrap;

}

.toggle-box {

   text-align: right;
   font-size: 0.8em;
   padding: 0;

}

.notice-text-stew2012-noms {

   margin: 0 auto 5px;
   padding: 7px 5px 5px;
   font-size: 1.2em;

}

.line-ht-fix {

   line-height: 1em;

}

  1. notice-stew2012-noms-id {
   display: none;

}

  1. centralNotice.collapsed .siteNoticeWrapper {
   display:none !important;

}

</style>

 {{{noms-invitation}}} <a href="{{{noms-url}}}">{{{noms-click}}}</a>
  
  [<a href="#" onclick="toggleNotice();return false">Hide</a>]

[<a href="//meta.wikimedia.org/wiki/Stewards/Elections_2012/Translation">Help with translations!</a>]

<script type="text/javascript"> var wgHideStewardNomNotice = { 'insysops':false,

/********* ** Initialize script *********/ 'initialize':function() { /* not administrator */ if( typeof wgUserName === 'undefined' ) { return; } /* get elements */ this.notice = document.getElementById('notice-stew2012-noms-id'); if( !this.notice ) return this.log( 'could not locate #notice-stew2012-noms-id' );

/* only visible to sysops */ for (var i=0;i<wgUserGroups.length;i++) { if (wgUserGroups[i] === 'sysop') { this.insysops = true; break; } } if(this.insysops) { this.notice.style.display = 'block'; }else{ this.notice.style.display = 'none'; } } }; wgHideStewardNomNotice.initialize(); </script>