Template:2011FR/Form-section-links: Difference between revisions
Content deleted Content added
No edit summary |
rv |
||
Line 21:
<li><a id="ways-to-give-link" target="_blank" href="https://wikimediafoundation.org/wiki/Special:LandingCheck?landing_page=Ways_to_Give&basic=true&country=</html>{{{country}}}<html>&language=</html>{{int:lang}}<html>"></html>{{int:donate_interface-otherways-short}}<html></a></li>
<li><a id="faq-link" target="_blank" href="https://wikimediafoundation.org/wiki/Special:LandingCheck?landing_page=FAQ&basic=true&country=</html>{{{country}}}<html>&language=</html>{{int:lang}}<html>"></html>{{int:donate_interface-faqs}}<html></a></li>
<li>
Line 31:
</li>
<li><a id="problems-link" target="_blank" href="https://wikimediafoundation.org/wiki/Special:LandingCheck?landing_page=Problems_donating
</ul>
<script type="text/javascript">
// This piece of script is add to preserve the layout of the page when the user is sent to monthly donation page▼
var pageCountrySpecific = getQuerystring( 'form-countryspecific' );
if (pageCountrySpecific == "") {
// if on a static page, e.g. from sidebar just use a monthly form and leave everything else as defaults
// Need to fix this later to pass language, utm data etc, but that stupid ampersand bug is stopping me for now -- Pcoombe
} else {
// if on Special:FundraiserLandingPage, use all the same querystring but a monthly form
monthlyURL = monthlyURL.replace(pageCountrySpecific,'Form-countryspecific-monthly');
}
▲// This piece of script is add to preserve the layout of the page when the user is sent to monthly donation page
▲var paramsIn = parseParams(window.location.href);
▲var baseURL = 'https://donate.wikimedia.org/wiki/Special:FundraiserLandingPage?';
▲document.getElementById('monthly-link').href = baseURL + $.param(paramsOut);
</script>
</html>
|