Template:Lp-layout-default: Difference between revisions

Content deleted Content added
Cbarr (talk | contribs)
No edit summary
Undo revision 40657 by PPenloglou-WMF (talk)
Tag: Undo
 
(155 intermediate revisions by 5 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 -->
{{2011FR/lp-social-media|image=<nowiki>//upload.wikimedia.org/wikipedia/foundation/e/eb/Wikipedia-logo-Donate2.png</nowiki>|description={{Template:AppealSwitch|2011FR/{{{appeal|Appeal-default}}}|text|{{int:lang}}|{{{country|US}}}|sitename={{{sitename}}}}}}}
<div class="mw-parser-output"><!-- so that TemplateStyles and various other things work -->
<html>
{{#switch: {{uc:{{{country|}}}}}
<script type="text/javascript">
|AE|AF|AX|BY|CD|CI|CU|IQ|IR|KP|LB|LY|MM|SD|SS|SO|SY|YE|ZW|ID|SA|TR|KR
$( document ).ready( function () {
|PY|UZ|TM|XK|IN = {{#ifexist:Template:CountryNope/{{int:lang}} | {{CountryNope/{{int:lang}}}} | {{CountryNope}} }}
// Disable submitting form with return key
|FI = {{CountryNope/FI}}
$( 'form' ).bind( 'keypress', function(e) {
|RU = {{CountryNope/RU}}
var code = ( e.keyCode ? e.keyCode : e.which );
|UA = {{CountryNope/UA}}
if ( code == 13 ) return false;
|XX|EU|AP|A1|A2|O1 = {{GeolocateError}}
} );
|#default =
} );
{{#switch: {{{wmf_medium| {{{utm_medium|}}} }}}
</script>
|endowment = {{Lp-layout-endowment|country={{uc:{{{country|}}}}}|form-countryspecific={{{form-countryspecific|Form-countryspecific-control}}}|appeal={{{appeal}}}|optin={{{optin|}}}}}
<style type="text/css">
|#default =
#pitch {
<div id="main-wrapper" class="country-{{uc:{{{country|XX}}}}}">
height: 236px;
<div id="appeal-wrapper">
background-image: url(</html>{{#ifeq:{{Template:Ltr-direction|{{int:lang}}|rtl|<html>//upload.wikimedia.org/wikipedia/foundation/9/9a/Jimmy_Appeal_2009-flipped.jpg</html>|<html>//upload.wikimedia.org/wikipedia/foundation/d/dc/Jimmy_Appeal_2009.jpg</html>}}<html>);
<div id="appeal">
background-position: </html>{{#ifeq:{{Template:Ltr-direction|{{int:lang}}}}|rtl|left|right}}<html> top;
{{#invoke:Main|get_appeal
background-repeat: no-repeat;
| appeal = {{{appeal|default}}}
background-color: #1e1e1e;
| language = {{int:lang}}
border: 1px solid gray;
| country = {{uc:{{{country|XX}}}}}
border-bottom-width: 0;
| sitename = {{{sitename}}}
}
}}
#pitch-head {
</div><!-- /appeal -->
width: 50%;
</div><!-- /appeal-wrapper -->
font-size: 1.75em;
<div id="form-wrapper">
line-height: 1.5em;
{{Template:Form-template/{{{form-template|Form-template-default}}}
color: white;
| language = {{{language|en}}}
margin-top: 16px;
| country = {{uc:{{{country|XX}}}}}
margin-</html>{{#ifeq:{{Template:Ltr-direction|{{int:lang}}}}|rtl|left|right}}<html>: 24px;
| appeal = {{{appeal|Default}}}
}
| form-countryspecific = {{{form-countryspecific|Form-countryspecific-control}}}
#pitch-body {
| pym_variant = {{{pym_variant|}}}
width: 50%;
| pym_appeal = {{{pym_appeal|JimmyQuote}}}
font-size: 1em;
}}
line-height: 1.5em;
<div style="display: none;"><!-- Opt-in, Pay the Fee, and Monthly Pitch - will be moved into correct position by some javascript -->
color: white;
{{#ifeq:{{{country}}}|FR||
margin-top: 16px;
{{#ifexist:Template:PTF/{{{showPTF}}}
margin-</html>{{#ifeq:{{Template:Ltr-direction|{{int:lang}}}}|rtl|left|right}}<html>: 24px;
| {{PTF/{{{showPTF}}} | country = {{uc:{{{country|XX}}}}} }}
}
| {{PTF/Default | country = {{uc:{{{country|XX}}}}} }}
#LP-table{
}}
width:100%;
}}
direction: </html>{{Template:Ltr-direction|{{int:lang}}}}<html>;
{{#if:{{{optin|}}}{{OptinRequired|{{uc:{{{country}}}}}}}
border: none;
| {{#ifexist:Template:Optin/{{{optin}}}
}
| {{Optin/{{{optin}}}}}
#form-wrapper{
| {{Optin/Default}}
vertical-align: top;
}}
}}
#appeal-wrapper{
{{#if:{{{monthlypitch|}}}
vertical-align: top;
| {{#ifexist:Template:MonthlyPitch/{{{monthlypitch}}}
padding-</html>{{#ifeq:{{Template:Ltr-direction|{{int:lang}}}}|rtl|left|right}}<html>: 2em;
| {{MonthlyPitch/{{{monthlypitch}}}}}
}
| {{MonthlyPitch/Default}}
body.mediawiki{
}}
direction: </html>{{Template:Ltr-direction|{{int:lang}}}}<html> !important;
}}
</div>
div#mw-panel{
<div id="infobox-wrapper" role="complementary">
left: auto !important;
{{#invoke:Main|get_infobox
right: auto !important;
| infobox = {{{infobox|Default}}}
}
| language = {{int:lang}}
#footer {
| country = {{uc:{{{country|XX}}}}}
background-image: none !important;
}}
</div><!-- /infobox-wrapper -->
#mw-head-base {
</div><!-- /form-wrapper -->
height: 1em !important;
</div><!-- /main-wrapper -->
}
<div id="donate-footer" class="plainlinks links-in-new-tab" role="contentinfo">
#mw-panel div.portal {
<div id="donate-tax-message">
display: none !important;
{{#invoke:Main|get_tax_message
}
| tax_message = {{{tax|}}}
#p-namespaces, #p-views, #p-cactions, #p-search, #p-personal, #catlinks, #firstHeading, #contentSub, #siteSub {
| language = {{int:lang}}
display: none;
| country = {{uc:{{{country|XX}}}}}
}
}}
div#content {
</div>
background-color: transparent !important;
{{Footer/Privacy/Default}}
background-image: none !important;
{{Footer/Recurring/Default}}
direction: </html>{{Template:Ltr-direction|{{int:lang}}}}<html> !important;
<div class="donate" id="donate-links-block">
/*margin-</html>{{#ifeq:{{Template:Ltr-direction|{{int:lang}}}}|rtl|left|right}}<html>: 10em;*/
{{Footer/Links/Default}}
}
</div>
div#mw-head-base {
</div><!-- /donate-footer -->
background-image: none !important;
{{#ifexist:Template:MonthlyConvert/{{{monthlyconvert}}}
}
|{{MonthlyConvert/{{{monthlyconvert}}}}}
|{{MonthlyConvert/Default}}
}}
}}<!-- endowment page switch -->
}}<!-- country switch -->
 
<!-- shared resources -->
#footer-places{
{{IncludeCSS | Template:Styles/{{{style|Default}}}.css }}
display: none !important;
{{#if:{{{style2|}}}| {{IncludeCSS | Template:Styles/{{{style2}}}.css }} }} <!-- additional styles? -->
}
{{#if:{{{addStyle|}}}| {{IncludeCSS | Template:Styles/{{{addStyle}}}.css }} }} <!-- additional styles? -->
 
__NOTOC__
</style>
</div><!-- /.mw-parser-output -->
<!--[if lt IE 8]>
<style type="text/css">
div#mw-panel{
left: 0 !important;
right: auto !important;
}
</style>
<![endif]-->
 
<table id="LP-table" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td id="appeal-wrapper">
</html>{{Template:2011FR/{{{appeal-template|Appeal-template-default}}}
| country = {{#ifeq: {{{country|US}}}|XX|US|{{{country}}}}}
| appeal = {{{appeal|Appeal-default}}}
| sitename = {{{sitename}}}
}}<html>
</td>
<td id="form-wrapper">
</html>{{Template:2011FR/{{{form-template|Form-template-default}}}
| country = {{#ifeq: {{{country|US}}}|XX|US|{{{country}}}}}
| appeal = {{{appeal|Appeal-default}}}
| form-countryspecific = {{{form-countryspecific|Form-countryspecific-control}}}
}}<html>
</td>
</tr>
</tbody>
</table>
</html>
__NOTOC__<noinclude><big><b>Doc:</b></big> This template contains the CSS and HTML that hides the normal MediaWiki interface stuff and sets the over-all look for the two part layout.<noinclude>