Jump to content
Wikimedia Meta-Wiki

Template:2009/Donate-now

From Meta, a Wikimedia project coordination wiki

<html> <script type="text/javascript" language="javascript"> function validateForm( form ) {

 var minimums = {
 'USD' : 1,
 'GBP' : 1, // 1ドル.26
 'EUR' : 1, // 1ドル.26
 'AUD' : 2, // 1ドル.35
 'CAD' : 1, // 0ドル.84
 'CHF' : 1, // 0ドル.85
 'CZK' : 20, // 1ドル.03
 'DKK' : 5, // 0ドル.85
 'HKD' : 10, // 1ドル.29
 'HUF' : 200, // 0ドル.97
 'JPY' : 100, // 1ドル
 'NZD' : 2, // 1ドル.18
 'NOK' : 10, // 1ドル.44
 'PLN' : 5, // 1ドル.78
 'SGD' : 2, // 1ドル.35
 'SEK' : 10 // 1ドル.28
 };
 var error = true;
 // Get amount selection
 var amount = null;
 for ( var i = 0; i < form.amount.length; i++ ) {
 if ( form.amount[i].checked ) {
 amount = form.amount[i].value;
 }
 }
 if ( form.amountGiven.value != "" ) {
 amount = form.amountGiven.value;
 }
 // Check amount is a real number
 error = ( amount == null || isNaN( amount ) || amount.value <= 0 );
 if ( error ) {
 alert( '</html>You must enter a valid amount.<html>' );
 }
 // Check amount is at least the minimum
 var currency = form.currency_code[form.currency_code.selectedIndex].value;
 if ( typeof( minimums[currency] ) == 'undefined' ) {
 minimums[currency] = 1;
 }
 if ( amount < minimums[currency] ) {
 alert( '</html>You must contribute at least 1ドル<html>'.replace('1ドル', minimums[currency] + ' ' + currency ) );
 error = true;
 }
 
 return !error;

}

function redirectPayment(i) {

 //if i == 1
 var action_url = "https://payments.wikimedia.org/index.php/Special:PayflowProGateway?uselang=</html>{{{language}}}<html>" ;
 if (i==2) {action_url="http://wikimediafoundation.org/wiki/Special:ContributionTracking/</html>2009<html>";}
 
 document.paypalcontribution.action = action_url;
 
 if(validateForm(document.paypalcontribution)){
 document.paypalcontribution.submit();
 }

} </script> <form method="post" name="paypalcontribution">

 <input type="hidden" name="gateway" value="paypal" />
 <input type="hidden" name="utm_source" value="" />
 <input type="hidden" name="utm_medium" value="" />
 <input type="hidden" name="utm_campaign" value="" />
 <input type="hidden" name="language" value="</html>Donate-now<html>" />
 <input type="hidden" name="referrer" value="" />
 <input type="hidden" name="returnto" value="Thank_You/</html>Donate-now<html>" />

</html>{{{donate-now-intro}}}<html>

</html>{{{gift-amount-text}}}<html>

<input type="radio" name="amount" id="input_amount_3" onclick="document.paypalcontribution. amountGiven.value = " value="</html> {{{donate-amount-3}}}<html>"><label for="input_amount_3"></html>{{{donate-currency-symbol}}}{{{donate-amount-3}}}<html></label>  <input type="radio" name="amount" id="input_amount_2" onclick="document.paypalcontribution. amountGiven.value = " value="</html> {{{donate-amount-2}}}<html>"> <label for="input_amount_2"></html>{{{donate-currency-symbol}}}{{{donate-amount-2}}}<html></label>  <input type="radio" name="amount" id="input_amount_1" onclick="document.paypalcontribution. amountGiven.value = " value="</html> {{{donate-amount-1}}}<html>"> <label for="input_amount_1"></html>{{{donate-currency-symbol}}}{{{donate-amount-1}}}<html></label>  <input type="radio" name="amount" id="input_amount_0" onclick="document.paypalcontribution. amountGiven.value = " value="</html>{{{donate-amount-0}}}<html>"> <label for="input_amount_0"></html>{{{donate-currency-symbol}}}{{{donate-amount-0}}}<html></label>

<input type="radio" name="amount" id="input_amount_other" value="Other"><label for="input_amount_other"></html><html>Other:</html><html></label> <input type="text" name="amountGiven" size="3" onfocus="this.form.input_amount_other.checked=true;"> <select name="currency_code" id="input_currency_code" size="1" style="width:5em;"><option value="</html>{{{donate-currency}}}<html>" selected></html>{{{donate-currency}}}<html> – </html>{{{donate-currency-symbol}}}<html></option> <option value="XXX">-------</option> <option value="GBP">GBP – £</option> <option value="EUR">EUR – €</option> <option value="USD">USD - $</option> <option value="AUD">AUD – $</option> <option value="CAD">CAD – $</option>

<option value="CHF">CHF – Fr.</option> <option value="CZK">CZK – Kč</option> <option value="DKK">DKK – kr</option> <option value="EUR">EUR – €</option> <option value="HKD">HKD – HK$</option> <option value="HUF">HUF – Ft</option> <option value="GBP">GBP – £</option> <option value="JPY">JPY – \</option> <option value="NZD">NZD – NZ$</option>

<option value="NOK">NOK – kr</option> <option value="PLN">PLN – zł</option> <option value="SGD">SGD – S$</option> <option value="SEK">SEK – kr</option> <option value="ILS">ILS - ₪</option> <option value="USD">USD – $</option></select>

</html>

{{{matching-text}}}

{{{public-comment-title}}}

{{{public-comment-instructions}}}

<html> <input type="text" name="comment" size="30" maxlength="200" style="width:70%;" />

<input type="checkbox" style="margin:0;" name="comment-option" id="input_comment-option" value="1" checked="checked" />  <label for="input_comment-option"></html>{{{donor-choice}}}<html></label>
<input type="checkbox" style="margin:0;" name="email" id="input_email" value="1" checked="checked" />  <label for="input_email"></html>{{{email-option}}}<html></label>

<input type="button" value="</html>{{{red-button-label}}}<html>" class="input-button </html>{{{button-color}}}<html>" onclick="redirectPayment('1');"/> <input type="button" value="</html>{{{red-button-label2}}}<html>" class="input-button </html>{{{button-color}}}<html>" onclick="redirectPayment('2');"/>

</html>{{{other-ways-link}}}

{{{non-profit-text}}}
{{{give-to-chapter-text}}}
To give using IE6 or last year's form, please click here.

<html> </form>

<script type="text/javascript"> function getQuerystring( key ) {

 key = key.replace( /[\[]/, '\\\[' ).replace( /[\]]/, '\\\]' );
 var regex = new RegExp( '[\\?&]' + key + '=([a-zA-Z0-9\_\-]*)' );
 var qs = regex.exec( window.location.search );
 return qs == null ?  : qs[1];

}

function getLandingPage() {

 var path = "</html>default<html>";
 if( path == "default"){
 pathArray = window.location.pathname.split( '/' );
 return pathArray[2];
 }
 else return path;

}

document.paypalcontribution.utm_source.value = getQuerystring( 'utm_source' ) + '.' + getLandingPage(); document.paypalcontribution.utm_medium.value = getQuerystring( 'utm_medium' ); document.paypalcontribution.utm_campaign.value = getQuerystring( 'utm_campaign' ); document.paypalcontribution.referrer.value = document.referrer; </script> </html>

AltStyle によって変換されたページ (->オリジナル) /