Jump to content

MediaWiki:Centralnotice-template-peter sidebar test

From Meta, a Wikimedia project coordination wiki

<style>

   div#mw-panel div.portal div.body ul li#n-sitesupport a {
       display: inline-block;
       color: #fff;
       background-color: #36c;
       padding: .6em;
       margin-left: -.6em;
       border-radius: 2px;
       font-weight: bold;
       transition: background-color 100ms;
   }
   div#mw-panel div.portal div.body ul li#n-sitesupport a:hover {
       text-decoration: none;
       background-color: #447ff5;
   }
   div#mw-panel div.portal div.body ul li#n-sitesupport a:active {
       background-color: #2a4b8d;
   }

</style> <script>

   $(function() {
       mw.loader.using(['mediawiki.Uri']).then(function() {
           var uri = new mw.Uri( 'https://donate.wikimedia.org/wiki/Special:FundraiserRedirector' );
           uri.extend({
               uselang: 'en',
               utm_medium: 'sidebar',
               utm_campaign: 'C17_en.wikipedia.org_sidebarTest',
               utm_source: mw.centralNotice.data.banner
           });
           $('#n-sitesupport a')[0].href = uri.toString();
       });
   });

</script>