Template:2011FR/Form-section-links: Difference between revisions
Content deleted Content added
mNo edit summary |
huh, it did work, problem was just caching I think |
||
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
<li>
Line 31:
</li>
<li><a id="problems-link" target="_blank" href="https://wikimediafoundation.org/wiki/Special:LandingCheck?landing_page=Problems_donating&basic=true&country=</html>{{{country}}}<html>&language=</html>{{int:lang}}<html>"></html>{{int:Donate_interface-problemsdonating}}<html></a></li>
</ul>
<script type="text/javascript">
function parseParams(url) {
// This piece of script is add to preserve the layout of the page when the user is sent to monthly donation page▼
// helper function to get querystring parameters as a JS object, nicked from WP popups gadget
var monthlyURL = window.location.href;▼
var ret={};
if (url.indexOf('?')===-1) { return ret; }
var s=url.split('?').slice(1).join();
var t=s.split('&');
for (var i=0; i<t.length; ++i) {
monthlyURL = 'https://donate.wikimedia.org/wiki/Special:FundraiserLandingPage?form-countryspecific=Form-countryspecific-monthly';▼
var z=t[i].split('=');
z.push(null);
ret[z[0]]=z[1];
}
return ret;
}
document.getElementById("monthly-link").href = monthlyURL;▼
▲// This piece of script is add to preserve the layout of the page when the user is sent to monthly donation page
▲var
var paramsOut = paramsIn;
paramsOut['form-countryspecific'] = 'Form-countryspecific-monthly';
</script>
</html>
|