Jump to content

MediaWiki:Centralnotice-template-peter sidebar control

From Meta, a Wikimedia project coordination wiki

<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>