Template:Footer/Links/Default: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
uselang parameter for Special:FundraiserLandingPage |
simplify links to use wikitext |
||
(9 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
⚫ | |||
<html> |
|||
⚫ | |||
<style type="text/css"> |
|||
⚫ | |||
.form-info-links { |
|||
⚫ | |||
list-style: none !important; |
|||
⚫ | |||
margin-left: 0 !important; |
|||
} |
|||
#monthly-link { |
|||
display: none; |
|||
} |
|||
#onetime-link { |
|||
display: none; |
|||
} |
|||
</style> |
|||
⚫ | |||
⚫ | |||
<li><a id="monthly-link" style="display: none;" href="https://donate.wikimedia.org/wiki/Special:FundraiserLandingPage?form-countryspecific=Form-countryspecific-monthly&country=</html>{{{country}}}<html>&language=</html>{{int:lang}}<html>&uselang=</html>{{int:lang}}<html>"></html>{{int:donate_interface-monthly-donation}}<html></a></li> |
|||
<li><a id="onetime-link" style="display: none;" href="https://donate.wikimedia.org/wiki/Special:FundraiserLandingPage?form-countryspecific=Form-countryspecific-control&country=</html>{{{country}}}<html>&language=</html>{{int:lang}}<html>&uselang=</html>{{int:lang}}<html>"></html>{{int:Donate interface-onetime}}<html></a></li> |
|||
⚫ | |||
⚫ | |||
<li><a id="tax-link" target="_blank" href="https://wikimediafoundation.org/wiki/Special:LandingCheck?landing_page=Tax_Deductibility&basic=true&country=</html>{{{country}}}<html>&language=</html>{{int:lang}}<html>"></html>{{int:donate_interface-taxded-link-us}}<html></a></li> |
|||
⚫ | |||
<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 |
|||
// parseParams is defined in MediaWiki:Common.js |
|||
// |
|||
// parseParams not loading for unknown reason, so commenting this out for now and using simplified version without params |
|||
/* |
|||
$(document).ready(function() { |
|||
var baseURL = 'https://donate.wikimedia.org/wiki/Special:FundraiserLandingPage?'; |
|||
var paramsOut = parseParams(window.location.href); // create an object with the current querystring parameters |
|||
if (showOnetimeLink) { |
|||
// We're on a monthly page, fix up the onetime link and show that instead |
|||
paramsOut['form-countryspecific'] = 'Form-countryspecific-control'; |
|||
$('#onetime-link').attr('href', baseURL + $.param(paramsOut)); |
|||
$('#onetime-link').show(); |
|||
} else if (showMonthlyLink) { |
|||
// We're not on a monthly page. So show a correct link to one. |
|||
paramsOut['form-countryspecific'] = 'Form-countryspecific-monthly'; |
|||
$('#monthly-link').attr('href', baseURL + $.param(paramsOut)); |
|||
$('#monthly-link').show(); |
|||
} |
|||
}); |
|||
*/ |
|||
$(document).ready(function() { |
|||
if (showOnetimeLink) { |
|||
// We're on a monthly page, show the one-time link instead |
|||
$('#onetime-link').show(); |
|||
} else if (showMonthlyLink) { |
|||
// We're not on a monthly page. So show a link to one. |
|||
$('#monthly-link').show(); |
|||
} |
|||
}); |
|||
</script> |
|||
</html> |