Template:2011FR/Form-section-links: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
No edit summary |
rm Monthly, forms all have that as an option now |
||
(51 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
<html> |
<html> |
||
<style type="text/css"> |
<style type="text/css"> |
||
.form-info-links { |
|||
list-style: none !important; |
|||
.collapsible-container{ |
|||
margin-left: 0 !important; |
|||
cursor: pointer; |
|||
} |
} |
||
.collapsible-container-trigger{ |
|||
color: #0645AD; |
|||
font-size: 1.2em; |
|||
background-image: none !important; |
|||
padding-right: 0 !important; |
|||
} |
|||
.collapsible-container-trigger:hover{ |
|||
text-decoration: underline; |
|||
color: #0645AD; |
|||
} |
|||
.collapsible-container-contained{ |
|||
display: none; |
|||
background-color: #FFFFFF; |
|||
border: 1px solid #AAAAAA; |
|||
padding: 1em; |
|||
color: black; |
|||
} |
|||
.collapsible-container-marker-collapsed{ |
|||
display: inline; |
|||
display: none; |
|||
color: #0645AD; |
|||
} |
|||
.collapsible-container-marker-expanded{ |
|||
display: none; |
|||
color: #0645AD; |
|||
} |
|||
</style> |
</style> |
||
<ul class="form-info-links"> |
|||
<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> |
|||
<script type="text/javascript"> |
|||
function triggerHover(elem){ |
|||
// document.getElementById(elem + '-container-contained').style.display='block'; |
|||
// document.getElementById(elem + '-collapsed-marker').style.display='none'; |
|||
// document.getElementById(elem + '-expanded-marker').style.display='inline'; |
|||
$('#' + elem + '-container-contained').toggle(); |
|||
//$('#' + elem + '-collapsed-marker').toggle('slow',null); |
|||
//$('#' + elem + '-expanded-marker').toggle('slow',null); |
|||
} |
|||
function triggerLeave(elem){ |
|||
// document.getElementById(elem + '-container-contained').style.display='none'; |
|||
// document.getElementById(elem + '-collapsed-marker').style.display='inline'; |
|||
// document.getElementById(elem + '-expanded-marker').style.display='none'; |
|||
$('#' + elem + '-container-contained').toggle(); |
|||
//$('#' + elem + '-collapsed-marker').toggle('slow',null); |
|||
//$('#' + elem + '-expanded-marker').toggle('slow',null); |
|||
} |
|||
</script> |
|||
<div class="collapsible-container" id="monthly-container"> |
|||
<a class="collapsible-container-trigger" target="_blank" href="https://wikimediafoundation.org/wiki/Special:LandingCheck?landing_page=Monthly_donations&country=</html>{{{country}}}<html>&language=</html>{{int:lang}}<html>"></html>{{int:donate_interface-monthly-donation}}<html></a> |
|||
</div> |
|||
<!-- This piece of script is add to preserve the layout of the page when the user is sent to monthly donation page --> |
|||
<script type="text/javascript"> |
|||
var monthlyLanguage = getQuerystring( 'uselang' ); |
|||
var monthlyCountry = getQuerystring( 'country' ); |
|||
var monthlyTemplate = getQuerystring( 'template' ); |
|||
var monthlyAppealTemplate = getQuerystring( 'appeal-template' ); |
|||
var monthlyAppeal = getQuerystring( 'appeal' ); |
|||
var monthlyFormTemplate = getQuerystring( 'form-template' ); |
|||
var monthlyUtmSource = getQuerystring( 'utm_source' ); |
|||
var monthlyUtmMedium = getQuerystring( 'utm_medium' ); |
|||
var monthlyUtmCampaign = getQuerystring( 'utm_campaign' ); |
|||
var monthlyURL = "https://donate.wikimedia.org/wiki/Special:FundraiserLandingPage?"; |
|||
monthlyURL += "uselang=" + monthlyLanguage + "&country=" + monthlyCountry; |
|||
monthlyURL += "&template=" + monthlyTemplate + "&appeal-template=" + monthlyAppealTemplate + "&appeal=" + monthlyAppeal + "&form-template=" + monthlyFormTemplate; |
|||
monthlyURL += "&form-countryspecific=Form-countryspecific-monthly"; |
|||
monthlyURL += "&utm_medium=" + monthlyUtmMedium + "&utm_source=" + monthlyUtmSource + "&utm_campaign=" + monthlyUtmCampaign; |
|||
</script> |
|||
<div class="collapsible-container" id="monthly-container"> |
|||
<a class="collapsible-container-trigger" target="_blank" href="<script type='text/javascript'>document.write(monthlyURL);</script>"></html>{{int:donate_interface-monthly-donation}}<html></a> |
|||
</div> |
|||
<!-- ----------------- end script--------------- --> |
|||
<div class="collapsible-container" id="otherways-container"> |
|||
<a class="collapsible-container-trigger" target="_blank" href="https://wikimediafoundation.org/wiki/Special:LandingCheck?landing_page=Ways_to_Give&country=</html>{{{country}}}<html>&language=</html>{{int:lang}}<html>"></html>{{int:donate_interface-otherways-short}}<html></a> |
|||
</div> |
|||
<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> |
|||
<div class="collapsible-container" id="faq-container"> |
|||
<a class="collapsible-container-trigger" target="_blank" href="https://wikimediafoundation.org/wiki/Special:LandingCheck?landing_page=FAQ&country=</html>{{{country}}}<html>&language=</html>{{int:lang}}<html>"></html>{{int:donate_interface-faqs}}<html></a> |
|||
</div> |
|||
<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> |
|||
<div class="collapsible-container" id="tax-container" onmouseover="triggerHover('tax');" onmouseout="triggerLeave('tax');"> |
|||
<span class="collapsible-container-marker-collapsed" id="tax-collapsed-marker">▲</span> |
|||
<span class="collapsible-container-marker-expanded" id="tax-expanded-marker">▼</span> |
|||
<span class="collapsible-container-trigger"></html>{{#ifeq: {{{country}}} | US | {{int:donate_interface-taxded-link-us}} | {{int:donate_interface-taxded-link-int}} }}<html></span> |
|||
<div class="collapsible-container-contained" id="tax-container-contained"> |
|||
</html>{{#ifeq: {{{country}}} | US | {{int:donate_interface-taxded-msg-us}} | {{int:donate_interface-taxded-msg-int}} }}<html><br/><br/> |
|||
</html>{{#ifeq:{{int:lang}}|en||{{int:donate_interface-legal-original}}}}<html> |
|||
</div> |
|||
</div> |
|||
<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> |
|||
</html> |
</html> |