Template:2012FR/Form-section/Privacy/Default: Difference between revisions

From Donate
Jump to navigation Jump to search
Content deleted Content added
use mw.util.getParamValue instead of parseParams
replace
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Footer/Privacy/Default}}
<html>
{{Footer/Recurring/Default}}
<style type="text/css">
#cancel-monthly {
padding-top: 1em;
display: none;
}
</style>
</html>{{#tag:html|{{#replace:{{#replace:{{#replace:{{#replace:{{#switch:{{{country}}}
| GB = {{int:donate_interface-informationsharing-gb}}
| #default = {{int:donate_interface-informationsharing}}
}}|href=|target="_blank" href=}}|/{{int:lang}}|/en}}|/en|&country={{{country}}}&language={{int:lang}}}}|/wiki/|/wiki/Special:LandingCheck?basic=true&landing_page= }}}}<html>
<div id="cancel-monthly">
<nowiki>*</nowiki></html>{{#ifeq:{{int:lang}}|en|{{#tag:html|{{int:donate_interface-monthly-cancel-seddon}}}}|{{#tag:html|<html><a target="_blank" href="https://wikimediafoundation.org/wiki/Special:LandingCheck?landing_page=Cancel_or_change_recurring_payments&basic=true&country=</html>{{{country}}}<html>&language=</html>{{int:lang}}<html>"></html>{{int:donate_interface-monthly-cancel}}<html></a></html>}}}}<html>
</div>
<script type="text/javascript">
$(document).ready(function() {
if ( mw.util.getParamValue('form-countryspecific') == 'Form-countryspecific-monthly' || mw.util.getParamValue('form-countryspecific') == 'Form-countryspecific-recurring' || showMonthlyCancel) {
// We're on a monthly page, show the cancel text
$('#cancel-monthly').show();
}
});
</script>
</html>

Latest revision as of 19:14, 23 August 2018