Template:Lp-layout-default: Difference between revisions

Content deleted Content added
Pgehres (WMF) (talk | contribs)
testing transclusion of MediaWiki:Resources/landingpage.js
Undo revision 40657 by PPenloglou-WMF (talk)
Tag: Undo
 
(138 intermediate revisions by 4 users not shown)
Line 1:
<html><meta name="viewport" content="width=device-width, initial-scale=1"></html><!-- hack: meta tag should really be in the <head> but can't do that -->
{{2012FR/Lp-header/Socialmedia
<div class="mw-parser-output"><!-- so that TemplateStyles and various other things work -->
| image=<nowiki>//upload.wikimedia.org/wikipedia/foundation/e/eb/Wikipedia-logo-Donate2.png</nowiki>
{{#switch: {{uc:{{{country|}}}}}
| description={{Template:2012FR/Switch/Appeal
|AE|AF|AX|BY|CD|CI|CU|IQ|IR|KP|LB|LY|MM|SD|SS|SO|SY|YE|ZW|ID|SA|TR|KR
|appeal = 2011FR/{{{appeal|Appeal-default}}}
|PY|UZ|TM|XK|IN = {{#ifexist:Template:CountryNope/{{int:lang}} | {{CountryNope/{{int:lang}}}} | {{CountryNope}} }}
|subpage = title
|FI = {{CountryNope/FI}}
|language = {{int:lang}}
|RU = {{CountryNope/RU}}
|country = {{{country|XX}}}
|UA = {{CountryNope/UA}}
|sitename = {{{sitename}}}
|XX|EU|AP|A1|A2|O1 = {{GeolocateError}}
}}
|#default =
{{#switch: {{{wmf_medium| {{{utm_medium|}}} }}}
|endowment = {{Lp-layout-endowment|country={{uc:{{{country|}}}}}|form-countryspecific={{{form-countryspecific|Form-countryspecific-control}}}|appeal={{{appeal}}}|optin={{{optin|}}}}}
|#default =
<div id="main-wrapper" class="country-{{uc:{{{country|XX}}}}}">
<div id="appeal-wrapper">
<div id="appeal">
{{#invoke:Main|get_appeal
| appeal = {{{appeal|default}}}
| language = {{int:lang}}
| country = {{uc:{{{country|XX}}}}}
| sitename = {{{sitename}}}
}}
</div><!-- /appeal -->
{{MediaWiki:Resources/landingpage.css}}
</div><!-- /appeal-wrapper -->
{{MediaWiki:Resources/landingpage.js}}
<div id="form-wrapper">
<html>
{{Template:Form-template/{{{form-template|Form-template-default}}}
<script type="text/javascript">
| language = {{{language|en}}}
$( document ).ready( function () {
| country = {{uc:{{{country|XX}}}}}
// Disable submitting form with return key
| appeal = {{{appeal|Default}}}
$( 'form' ).bind( 'keypress', function(e) {
| form-countryspecific = {{{form-countryspecific|Form-countryspecific-control}}}
var code = ( e.keyCode ? e.keyCode : e.which );
| pym_variant = {{{pym_variant|}}}
if ( code == 13 ) return false;
| pym_appeal = {{{pym_appeal|JimmyQuote}}}
} );
} );}
<div style="display: none;"><!-- Opt-in, Pay the Fee, and Monthly Pitch - will be moved into correct position by some javascript -->
</script>
{{#ifeq:{{{country}}}|FR||
<table id="LP-table" cellspacing="0" cellpadding="0">
{{#ifexist:Template:PTF/{{{showPTF}}}
<tbody>
| {{PTF/{{{showPTF}}} | country = {{uc:{{{country|XX}}}}} }}
<tr>
| {{PTF/Default | country = {{uc:{{{country|XX}}}}} }}
<td id="appeal-wrapper">
}}
</html>{{Template:2012FR/{{{appeal-template|Appeal-template-default}}}
}}
| language = {{{language|en}}}
{{#if:{{{optin| country = }}}{{OptinRequired|{{uc:{{{country|XX}}}}}}}
| {{#ifexist:Template:Optin/{{{optin}}}
| appeal = {{{appeal|Default}}}
| sitename = {{Optin/{{{sitenameoptin}}}}}
| {{Optin/Default}}
}}<html>
</td>}}
}}
<td id="form-wrapper">
{{#if:{{{monthlypitch|}}}
</html>{{Template:2012FR/{{{form-template|Form-template-default}}}
| {{#ifexist:Template:MonthlyPitch/{{{monthlypitch}}}
| language = {{{language|en}}}
| {{MonthlyPitch/{{{monthlypitch}}}}}
| country = {{{country|XX}}}
| appeal = {{{appeal|MonthlyPitch/Default}}}
}}
| form-countryspecific = {{{form-countryspecific|Form-countryspecific-control}}}
}}
}}<html>
</tddiv>
<div id="infobox-wrapper" role="complementary">
</tr>
{{#invoke:Main|get_infobox
</tbody>
| infobox = {{{infobox|Default}}}
</table>
| language = {{int:lang}}
</html>
| country = {{uc:{{{country|XX}}}}}
}}
</div><!-- /infobox-wrapper -->
</div><!-- /form-wrapper -->
</div><!-- /main-wrapper -->
<div id="donate-footer" class="plainlinks links-in-new-tab" role="contentinfo">
<div id="donate-tax-message">
{{#invoke:Main|get_tax_message
| tax_message = {{{tax|}}}
| language = {{int:lang}}
| country = {{uc:{{{country|XX}}}}}
}}
</div>
{{Footer/Privacy/Default}}
{{Footer/Recurring/Default}}
<div class="donate" id="donate-links-block">
{{Footer/Links/Default}}
</div>
</div><!-- /donate-footer -->
{{#ifexist:Template:MonthlyConvert/{{{monthlyconvert}}}
|{{MonthlyConvert/{{{monthlyconvert}}}}}
|{{MonthlyConvert/Default}}
}}
}}<!-- endowment page switch -->
}}<!-- country switch -->
 
<!-- shared resources -->
{{IncludeCSS | Template:Styles/{{{style|Default}}}.css }}
{{#if:{{{style2|}}}| {{IncludeCSS | Template:Styles/{{{style2}}}.css }} }} <!-- additional styles? -->
{{#if:{{{addStyle|}}}| {{IncludeCSS | Template:Styles/{{{addStyle}}}.css }} }} <!-- additional styles? -->
__NOTOC__
</div><!-- /.mw-parser-output -->