Template:Lp-layout-default: Difference between revisions

Content deleted Content added
Pgehres (WMF) (talk | contribs)
testing transclusion of MediaWiki:Resources/landingpage.css
add role="complementary" for infobox and role="contentinfo" for footer (too complicated at the moment to use <aside>/<footer>)
 
(128 intermediate revisions by 3 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 = {{#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 -->
<html>
<div id="form-wrapper">
<script type="text/javascript">
{{Template:Form-template/{{{form-template|Form-template-default}}}
$( document ).ready( function () {
| language = {{{language|en}}}
// Disable submitting form with return key
| country = {{uc:{{{country|XX}}}}}
$( 'form' ).bind( 'keypress', function(e) {
| appeal = {{{appeal|Default}}}
var code = ( e.keyCode ? e.keyCode : e.which );
| form-countryspecific = {{{form-countryspecific|Form-countryspecific-control}}}
if ( code == 13 ) return false;
| pym_variant = {{{pym_variant|}}}
} );
| pym_appeal = {{{pym_appeal|JimmyQuote}}}
} );
}}
</script>
<div style="display: none;"><!-- Opt-in, Pay the Fee, and Monthly Pitch - will be moved into correct position by some javascript -->
<style type="text/css">
{{#ifeq:{{{country}}}|FR||
/* This CSS is responsible for the overall layout of the LP*/
{{#ifexist:Template:PTF/{{{showPTF}}}
#LP-table {
| {{PTF/{{{showPTF}}} | country = {{uc:{{{country|XX}}}}} }}
width: 100%;
| {{PTF/Default | country = {{uc:{{{country|XX}}}}} }}
direction: </html>{{Template:2012FR/Switch/Ltr-direction|{{int:lang}}}}<html>;
}}
border: none;
}}
{{#if:{{{optin|}}}{{OptinRequired|{{uc:{{{country}}}}}}}
#form-wrapper {
| {{#ifexist:Template:Optin/{{{optin}}}
vertical-align: top;
| {{Optin/{{{optin}}}}}
}
| {{Optin/Default}}
#appeal-wrapper {
}}
vertical-align: top;
}}
padding-</html>{{#ifeq:{{Template:2012FR/Switch/Ltr-direction|{{int:lang}}}}|rtl|left|right}}<html>: 2em;
{{#if:{{{monthlypitch|}}}
}
| {{#ifexist:Template:MonthlyPitch/{{{monthlypitch}}}
/* End --------------------------------------*/
| {{MonthlyPitch/{{{monthlypitch}}}}}
| {{MonthlyPitch/Default}}
}}
}}
</div>
<div id="infobox-wrapper" role="complementary">
{{#invoke:Main|get_infobox
| infobox = {{{infobox|Default}}}
| language = {{int:lang}}
| 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>
<div class="donate-smallprint">
{{Footer/Privacy/Default}}
{{Footer/Recurring/Default}}
</div>
<div class="donate" id="donate-links-block">
{{Footer/Links/Default}}
</div>
</div>
{{#ifexist:Template:MonthlyConvert/{{{monthlyconvert}}}
|{{MonthlyConvert/{{{monthlyconvert}}}}}
|{{MonthlyConvert/Default}}
}}
}}<!-- endowment page switch -->
}}<!-- country switch -->
 
<!-- shared resources -->
/* This CSS is used to hide the mediawiki stuff we don't want people to see. */
{{IncludeCSS | Template:Styles/{{{style|Default}}}.css }}
body.mediawiki {
{{#if:{{{style2|}}}| {{IncludeCSS | Template:Styles/{{{style2}}}.css }} }} <!-- additional styles? -->
direction: </html>{{Template:2012FR/Switch/Ltr-direction|{{int:lang}}}}<html> !important;
{{#if:{{{addStyle|}}}| {{IncludeCSS | Template:Styles/{{{addStyle}}}.css }} }} <!-- additional styles? -->
}
div#mw-panel {
left: auto !important;
right: auto !important;
}
#footer {
background-image: none !important;
}
#mw-head-base {
height: 1em !important;
}
#mw-panel div.portal {
display: none !important;
}
#p-namespaces, #p-views, #p-cactions, #p-search, #p-personal, #catlinks, #firstHeading, #contentSub, #siteSub {
display: none;
}
div#content {
background-color: transparent !important;
background-image: none !important;
direction: </html>{{Template:2012FR/Switch/Ltr-direction|{{int:lang}}}}<html> !important;
}
div#mw-head-base {
background-image: none !important;
}
#footer-places {
display: none !important;
}
/* End ------------------------------------------*/
</style>
<!--[if lt IE 8]>
<style type="text/css">
div#mw-panel {
left: 0 !important;
right: auto !important;
}
body.rtl div#mw-panel {
left: auto !important;
right: 0 !important;
}
</style>
<![endif]-->
<table id="LP-table" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td id="appeal-wrapper">
</html>{{Template:2012FR/{{{appeal-template|Appeal-template-default}}}
| language = {{{language|en}}}
| country = {{{country|XX}}}
| appeal = {{{appeal|Default}}}
| sitename = {{{sitename}}}
}}<html>
</td>
<td id="form-wrapper">
</html>{{Template:2012FR/{{{form-template|Form-template-default}}}
| language = {{{language|en}}}
| country = {{{country|XX}}}
| appeal = {{{appeal|Default}}}
| form-countryspecific = {{{form-countryspecific|Form-countryspecific-control}}}
}}<html>
</td>
</tr>
</tbody>
</table>
</html>
__NOTOC__
</div><!-- /.mw-parser-output -->