Template:Ways to Give/PayPalSelect: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
No edit summary |
oops, how did I remove USD? |
||
(24 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<html> |
<html> |
||
<style> |
|||
#currency-list { |
|||
direction: ltr; |
|||
} |
|||
⚫ | |||
float: left; |
float: left; |
||
width: 14em; |
|||
background: none; |
|||
padding: 0 0 .5rem 0; |
|||
} |
|||
padding: 0.3em 1em 0.3em 1em; |
|||
.sp-dir-rtl #currency-list a { |
|||
float: right; |
|||
} |
|||
text-align: right; |
|||
⚫ | |||
} |
|||
<script> |
|||
⚫ | |||
function loadCountry(code){ |
|||
⚫ | |||
var newPage = "https://donate.wikimedia.org/wiki/Special:FundraiserLandingPage?uselang=</html>{{int:lang}}<html>&country=%COUNTRY%&utm_medium=sitenotice&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){ |
|||
[https://payments.wikimedia.org/index.php/Special:GatewayChooser?currency=CZK&amount=0&payment_method=paypal&uselang={{pagelang}}&utm_medium=Waystogive&utm_campaign=C11_Waystogive&utm_source=Waystogive {{MediaWiki:Donate_interface-CZK/{{pagelang}}}} (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" /> |
|||
⚫ | |||
<input type="hidden" name="utm_medium" value="sitenotice" /> |
|||
⚫ | |||
<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> |
|||
⚫ | |||
<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> |
|||
⚫ | |||
⚫ | |||
⚫ |
Latest revision as of 16:04, 1 September 2022
U.S. dollar (USD) Euro (EUR) Australian dollar (AUD) Canadian dollar (CAD) Swiss franc (CHF) Czech koruna (CZK) Danish krone (DKK) British pound (GBP) Hong Kong dollar (HKD) Hungarian forint (HUF) Israeli shekel (ILS) Japanese yen (JPY) Mexican peso (MXN) Norwegian krone (NOK) New Zealand dollar (NZD) Philippine peso (PHP) Polish złoty (PLN) Thai baht (THB) New Taiwan dollar (TWD)