Template:Footer/Links/Default: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
No edit summary |
simplify links to use wikitext |
||
(22 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
⚫ | |||
<html> |
|||
⚫ | |||
<style type="text/css"> |
|||
⚫ | |||
.collapsible-container { |
|||
⚫ | |||
font-size: 0.8em; |
|||
⚫ | |||
cursor: pointer; |
|||
display: none; |
|||
background-color: #FFFFFF; |
|||
border: 1px solid #AAAAAA; |
|||
padding: 1em; |
|||
color: black; |
|||
} |
|||
.form-info-links { |
|||
list-style: none; |
|||
margin-left: 0 !important; |
|||
} |
|||
</style> |
|||
⚫ | |||
<li><a id="monthly-link" href="https://donate.wikimedia.org/wiki/Special:FundraiserLandingPage?form-countryspecific=Form-countryspecific-monthly&country=</html>{{{country}}}<html>&language=</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-default&country=</html>{{{country}}}<html>&language=</html>{{int:lang}}<html>"></html>Make a one-time donation<html></a></li><!-- This needs a translation adding --> |
|||
⚫ | |||
⚫ | |||
<li> |
|||
<a id="tax-link" href="https://wikimediafoundation.org/wiki/Deductibility_of_donations" onclick="$('#tax-container').toggle(); return(false);"></html>{{#ifeq: {{{country}}} | US | {{int:donate_interface-taxded-link-us}} | {{int:donate_interface-taxded-link-int}} }}<html></a> |
|||
<div class="collapsible-container" id="tax-container" onclick="$('#tax-container').toggle(); return(false);"> |
|||
</html>{{#ifeq: {{{country}}} | US | {{int:donate_interface-taxded-msg-us}} |{{#ifeq: {{{country}}}| NL | {{int:donate_interface-taxded-msg-nl}} | {{int:donate_interface-taxded-msg-int}} }} }}<html><br/><br/> |
|||
</html>{{#ifeq:{{int:lang}}|en||{{int:donate_interface-legal-original}}}}<html> |
|||
⚫ | |||
</li> |
|||
⚫ | |||
</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 |
|||
// parseParams is defined in MediaWiki:Common.js |
|||
$(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 (paramsOut['form-countryspecific'] == 'Form-countryspecific-monthly') { |
|||
// We're on a monthly page, fix up the onetime link and show that instead |
|||
paramsOut['form-countryspecific'] = 'Form-countryspecific-control'; |
|||
document.getElementById('onetime-link').href = baseURL + $.param(paramsOut); |
|||
$('#monthly-link').hide(); |
|||
$('#onetime-link').show(); |
|||
} else { |
|||
// We're not on a monthly page. So show a correct link to one. |
|||
paramsOut['form-countryspecific'] = 'Form-countryspecific-monthly'; |
|||
document.getElementById('monthly-link').href = baseURL + $.param(paramsOut); |
|||
} |
|||
}); |
|||
</script> |
|||
</html> |