Template:Donate redirect

  

var baseUrl = 'https://donate.wikimedia.org'; var outParams = {};

// check template parameters if (document.templateParams.language.value) { outParams['uselang'] = document.templateParams.language.value; } if (document.templateParams.country.value) { outParams['country'] = document.templateParams.country.value; }

// check the querystring (will override template parameters if needed) var passParamNames = ['utm_medium', 'utm_source', 'utm_campaign', 'uselang', 'country']; for (var i = 0; i < passParamNames.length; i++) { if (mw.util.getParamValue(passParamNames[i])) { outParams[passParamNames[i]] = mw.util.getParamValue(passParamNames[i]); } };

if (mw.util.getParamValue('utm_medium') === null) { outParams['utm_medium'] = 'wmfWikiRedirect'; }

var targetUrl = baseUrl + '?' + $.param(outParams);

// allow overriding for debugging purposes, or previewing if (mw.util.getParamValue('redirect') === 'no' || mw.util.getParamValue('action') === 'submit') { if (window.console) { console.log(targetUrl); } } else { setTimeout(function {       window.location.replace(targetUrl);    }, 2000); } Our donation pages have moved. You should be automatically redirected in a few seconds. If not, please.