Template:Footer/Links/Default: Difference between revisions

From Donate
Jump to navigation Jump to search
Content deleted Content added
update to match 2nd step, link direct to Tax Deductibility page
simplify links to use wikitext
 
(15 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div class="form-info-links">
<html>
* [https://donate.wikimedia.org/wiki/Special:LandingCheck?landing_page=Problems_donating&basic=true&language={{int:lang}} {{int:Donate_interface-problemsdonating}}]
<style type="text/css">
* [https://donate.wikimedia.org/wiki/Special:LandingCheck?landing_page=Ways_to_Give&basic=true&language={{int:lang}} {{int:donate_interface-otherways-short}}]
.form-info-links {
* [https://donate.wikimedia.org/wiki/Special:LandingCheck?landing_page=FAQ&basic=true&language={{int:lang}} {{int:donate_interface-faqs}}]
list-style: none !important;
</div>
margin-left: 0 !important;
}

#monthly-link {
display: none;
}

#onetime-link {
display: none;
}

</style>
<ul class="form-info-links">
<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" href="https://donate.wikimedia.org/wiki/Special:FundraiserLandingPage?form-countryspecific=Form-countryspecific-default&country=</html>{{{country}}}<html>&language=</html>{{int:lang}}<html>"></html>{{int:Donate interface-onetime}}<html></a></li>

<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><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>

<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">
// 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 (showOnetimeLink) {
// 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);
$('#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';
document.getElementById('monthly-link').href = baseURL + $.param(paramsOut);
$('#monthly-link').show();
}
});
</script>
</html>

Latest revision as of 14:54, 11 October 2019