Template:2011FR/Form-section-links: Difference between revisions

Content deleted Content added
Cbarr (talk | contribs)
No edit summary
Cbarr (talk | contribs)
No edit summary
Line 74:
<script type="text/javascript">
 
var monthlyURL = window.location.href;
var monthlyLanguage = getQuerystring( 'uselang' );
var monthlyCountrypageCountrySpecific = getQuerystring( 'countryform-countryspecific' );
monthlyURL += "&form-countryspecific=monthlyURL.replace(pageCountrySpecific,'Form-countryspecific-monthly"');
var monthlyTemplate = getQuerystring( 'template' );
document.getElementById("monthly-link").href = monthlyURL;
var monthlyAppealTemplate = getQuerystring( 'appeal-template' );
var monthlyAppeal = getQuerystring( 'appeal' );
var monthlyFormTemplate = getQuerystring( 'form-template' );
var monthlyUtmSource = getQuerystring( 'utm_source' );
var monthlyUtmMedium = getQuerystring( 'utm_medium' );
var monthlyUtmCampaign = getQuerystring( 'utm_campaign' );
 
var monthlyURL = "https://donate.wikimedia.org/wiki/Special:FundraiserLandingPage?";
monthlyURL += "uselang=" + monthlyLanguage + "&country=" + monthlyCountry;
monthlyURL += "&template=" + monthlyTemplate + "&appeal-template=" + monthlyAppealTemplate + "&appeal=" + monthlyAppeal + "&form-template=" + monthlyFormTemplate;
monthlyURL += "&form-countryspecific=Form-countryspecific-monthly";
monthlyURL += "&utm_medium=" + monthlyUtmMedium + "&utm_source=" + monthlyUtmSource + "&utm_campaign=" + monthlyUtmCampaign;
 
document.getElementById("monthly-link").href = monthlyURL;
</script>
<!-- ----------------- end script--------------- -->