Template:Ways to Give/PayPalSelect: Difference between revisions

Content deleted Content added
change utm_medium
oops, how did I remove USD?
 
(22 intermediate revisions by 2 users not shown)
Line 1:
<html>
<style>
#currency-list a {
direction: ltr;
}
 
<div id="#currency-list"> a {
float: left;
font-weightwidth: bold14em;
cursorbackground: pointernone;
heightpadding: 1em0 0 .5rem 0;
}
padding: 0.3em 1em 0.3em 1em;
.sp-dir-rtl #currency-list a {
widthfloat: 15emright;
}
text-align: right;
</style>
}
<script>
</style>
function loadCountry(code){
</html>
var newPage = "https://donate.wikimedia.org/wiki/Special:FundraiserLandingPage?uselang=</html>{{int:lang}}<html>&country=%COUNTRY%&utm_medium=Waystogive&utm_source=Waystogive&utm_campaign=C11_Waystogive";
 
<div id="currency-list">
newPage = newPage.replaceAll('amp;','');
[https://payments.wikimedia.org/index.php/Special:GatewayChooser?currency=USD&amount=0&payment_method=paypal&uselang={{pagelang}}&utm_medium=Waystogive&utm_campaign=C11_Waystogive&utm_source=Waystogive {{MediaWiki:Donate_interface-USD/{{pagelang}}}} (USD)]
newPage = newPage.replaceAll('%COUNTRY%',code);
[https://payments.wikimedia.org/index.php/Special:GatewayChooser?currency=EUR&amount=0&payment_method=paypal&uselang={{pagelang}}&utm_medium=Waystogive&utm_campaign=C11_Waystogive&utm_source=Waystogive {{MediaWiki:Donate_interface-EUR/{{pagelang}}}} (EUR)]
location.replace(newPage);
[https://payments.wikimedia.org/index.php/Special:GatewayChooser?currency=AUD&amount=0&payment_method=paypal&uselang={{pagelang}}&utm_medium=Waystogive&utm_campaign=C11_Waystogive&utm_source=Waystogive {{MediaWiki:Donate_interface-AUD/{{pagelang}}}} (AUD)]
}
[https://payments.wikimedia.org/index.php/Special:GatewayChooser?currency=CAD&amount=0&payment_method=paypal&uselang={{pagelang}}&utm_medium=Waystogive&utm_campaign=C11_Waystogive&utm_source=Waystogive {{MediaWiki:Donate_interface-CAD/{{pagelang}}}} (CAD)]
 
[https://payments.wikimedia.org/index.php/Special:GatewayChooser?currency=CHF&amount=0&payment_method=paypal&uselang={{pagelang}}&utm_medium=Waystogive&utm_campaign=C11_Waystogive&utm_source=Waystogive {{MediaWiki:Donate_interface-CHF/{{pagelang}}}} (CHF)]
function loadCurrency(code){
document.paypalcontribution.action = "[https://payments.wikimedia.org/index.php/Special:GatewayFormChooserGatewayChooser?currency=CZK&amount=0&payment_method=paypal&uselang=</html>{{intpagelang}}&utm_medium=Waystogive&utm_campaign=C11_Waystogive&utm_source=Waystogive {{MediaWiki:langDonate_interface-CZK/{{pagelang}}<html>";}} (CZK)]
[https://payments.wikimedia.org/index.php/Special:GatewayChooser?currency=DKK&amount=0&payment_method=paypal&uselang={{pagelang}}&utm_medium=Waystogive&utm_campaign=C11_Waystogive&utm_source=Waystogive {{MediaWiki:Donate_interface-DKK/{{pagelang}}}} (DKK)]
var currency = document.createElement("input");
[https://payments.wikimedia.org/index.php/Special:GatewayChooser?currency=GBP&amount=0&payment_method=paypal&uselang={{pagelang}}&utm_medium=Waystogive&utm_campaign=C11_Waystogive&utm_source=Waystogive {{MediaWiki:Donate_interface-GBP/{{pagelang}}}} (GBP)]
currency.type = "hidden";
[https://payments.wikimedia.org/index.php/Special:GatewayChooser?currency=HKD&amount=0&payment_method=paypal&uselang={{pagelang}}&utm_medium=Waystogive&utm_campaign=C11_Waystogive&utm_source=Waystogive {{MediaWiki:Donate_interface-HKD/{{pagelang}}}} (HKD)]
currency.name = "currency";
[https://payments.wikimedia.org/index.php/Special:GatewayChooser?currency=HUF&amount=0&payment_method=paypal&uselang={{pagelang}}&utm_medium=Waystogive&utm_campaign=C11_Waystogive&utm_source=Waystogive {{MediaWiki:Donate_interface-HUF/{{pagelang}}}} (HUF)]
currency.value = code;
[https://payments.wikimedia.org/index.php/Special:GatewayChooser?currency=ILS&amount=0&payment_method=paypal&uselang={{pagelang}}&utm_medium=Waystogive&utm_campaign=C11_Waystogive&utm_source=Waystogive {{MediaWiki:Donate_interface-ILS/{{pagelang}}}} (ILS)]
document.paypalcontribution.appendChild(currency);
[https://payments.wikimedia.org/index.php/Special:GatewayChooser?currency=JPY&amount=0&payment_method=paypal&uselang={{pagelang}}&utm_medium=Waystogive&utm_campaign=C11_Waystogive&utm_source=Waystogive {{MediaWiki:Donate_interface-JPY/{{pagelang}}}} (JPY)]
document.paypalcontribution.referrer.value = document.referrer;
[https://payments.wikimedia.org/index.php/Special:GatewayChooser?currency=MXN&amount=0&payment_method=paypal&uselang={{pagelang}}&utm_medium=Waystogive&utm_campaign=C11_Waystogive&utm_source=Waystogive {{MediaWiki:Donate_interface-MXN/{{pagelang}}}} (MXN)]
document.paypalcontribution.submit();
[https://payments.wikimedia.org/index.php/Special:GatewayChooser?currency=NOK&amount=0&payment_method=paypal&uselang={{pagelang}}&utm_medium=Waystogive&utm_campaign=C11_Waystogive&utm_source=Waystogive {{MediaWiki:Donate_interface-NOK/{{pagelang}}}} (NOK)]
}
[https://payments.wikimedia.org/index.php/Special:GatewayChooser?currency=NZD&amount=0&payment_method=paypal&uselang={{pagelang}}&utm_medium=Waystogive&utm_campaign=C11_Waystogive&utm_source=Waystogive {{MediaWiki:Donate_interface-NZD/{{pagelang}}}} (NZD)]
</script>
[https://payments.wikimedia.org/index.php/Special:GatewayChooser?currency=PHP&amount=0&payment_method=paypal&uselang={{pagelang}}&utm_medium=Waystogive&utm_campaign=C11_Waystogive&utm_source=Waystogive {{MediaWiki:Donate_interface-PHP/{{pagelang}}}} (PHP)]
 
[https://payments.wikimedia.org/index.php/Special:GatewayChooser?currency=PLN&amount=0&payment_method=paypal&uselang={{pagelang}}&utm_medium=Waystogive&utm_campaign=C11_Waystogive&utm_source=Waystogive {{MediaWiki:Donate_interface-PLN/{{pagelang}}}} (PLN)]
<form method="post" name="paypalcontribution">
[https://payments.wikimedia.org/index.php/Special:GatewayChooser?currency=THB&amount=0&payment_method=paypal&uselang={{pagelang}}&utm_medium=Waystogive&utm_campaign=C11_Waystogive&utm_source=Waystogive {{MediaWiki:Donate_interface-THB/{{pagelang}}}} (THB)]
<input type="hidden" name="language" value="</html>{{int:lang}}<html>" />
[https://payments.wikimedia.org/index.php/Special:GatewayChooser?currency=TWD&amount=0&payment_method=paypal&uselang={{pagelang}}&utm_medium=Waystogive&utm_campaign=C11_Waystogive&utm_source=Waystogive {{MediaWiki:Donate_interface-TWD/{{pagelang}}}} (TWD)]
<input type="hidden" name="utm_source" value="Waystogive" />
</div>
<input type="hidden" name="utm_medium" value="Waystogive" />
<div style="clear: both;"></div>
<input type="hidden" name="utm_campaign" value="C11_Waystogive" />
<input type="hidden" name="referrer" value="" />
<input type="hidden" name="gateway" value="paypal"/>
<input type="hidden" name="language" value="</html>{{int:lang}}<html>" />
<input type="hidden" name="returnto" value="Thank_You/</html>{{int:lang}}<html>" />
<input type="hidden" name="email-opt" id="input_email" value="1" checked="checked" />
</form>
<div id="currency-list">
<a onclick="loadCurrency('USD')"></html>{{int:donate_interface-USD}}<html> (USD)</a>
<a onclick="loadCurrency('EUR')"></html>{{int:donate_interface-EUR}}<html> (EUR)</a>
<a onclick="loadCurrency('AUD')"></html>{{int:donate_interface-AUD}}<html> (AUD)</a>
<a onclick="loadCurrency('CAD')"></html>{{int:donate_interface-CAD}}<html> (CAD)</a>
<a onclick="loadCurrency('CHF')"></html>{{int:donate_interface-CHF}}<html> (CHF)</a>
<a onclick="loadCurrency('CZK')"></html>{{int:donate_interface-CZK}}<html> (CZK)</a>
<a onclick="loadCurrency('DKK')"></html>{{int:donate_interface-DKK}}<html> (DKK)</a>
<a onclick="loadCurrency('HKD')"></html>{{int:donate_interface-HKD}}<html> (HKD)</a>
<a onclick="loadCurrency('HUF')"></html>{{int:donate_interface-HUF}}<html> (HUF)</a>
<a onclick="loadCurrency('ILS')"></html>{{int:donate_interface-ILS}}<html> (ILS)</a>
<!--<a onclick="loadCurrency('JPY')"></html>{{int:donate_interface-JPY}}<html> (JPY)</a>-->
<a onclick="loadCurrency('MXN')"></html>{{int:donate_interface-MXN}}<html> (MXN)</a>
<a onclick="loadCurrency('NOK')"></html>{{int:donate_interface-NOK}}<html> (NOK)</a>
<a onclick="loadCurrency('NZD')"></html>{{int:donate_interface-NZD}}<html> (NZD)</a>
<a onclick="loadCurrency('PHP')"></html>{{int:donate_interface-PHP}}<html> (PHP)</a>
<a onclick="loadCurrency('PLN')"></html>{{int:donate_interface-PLN}}<html> (PLN)</a>
<a onclick="loadCurrency('GBP')"></html>{{int:donate_interface-GBP}}<html> (GBP)</a>
<a onclick="loadCurrency('THB')"></html>{{int:donate_interface-THB}}<html> (THB)</a>
<a onclick="loadCurrency('TWD')"></html>{{int:donate_interface-TWD}}<html> (TWD)</a>
</div>
<div style="clear: both;"></div>
</html>