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
 
(162 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 -->
<html>
<div class="mw-parser-output"><!-- so that TemplateStyles and various other things work -->
<script type="text/javascript">
{{#switch: {{uc:{{{country|}}}}}
$( document ).ready( function () {
|AE|AF|AX|BY|CD|CI|CU|IQ|IR|KP|LB|LY|MM|SD|SS|SO|SY|YE|ZW|ID|SA|TR|KR
// Disable submitting form with return key
|PY|UZ|TM|XK|IN = {{#ifexist:Template:CountryNope/{{int:lang}} | {{CountryNope/{{int:lang}}}} | {{CountryNope}} }}
$( 'form' ).bind( 'keypress', function(e) {
|FI = {{CountryNope/FI}}
var code = ( e.keyCode ? e.keyCode : e.which );
|RU = {{CountryNope/RU}}
if ( code == 13 ) return false;
|UA = {{CountryNope/UA}}
} );
|XX|EU|AP|A1|A2|O1 = {{GeolocateError}}
} );
|#default =
</script>
{{#switch: {{{wmf_medium| {{{utm_medium|}}} }}}
<style type="text/css">
|endowment = {{Lp-layout-endowment|country={{uc:{{{country|}}}}}|form-countryspecific={{{form-countryspecific|Form-countryspecific-control}}}|appeal={{{appeal}}}|optin={{{optin|}}}}}
#pitch {
|#default =
height: 236px;
<div id="main-wrapper" class="country-{{uc:{{{country|XX}}}}}">
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-wrapper">
background-position: </html>{{#ifeq:{{Template:Ltr-direction|{{int:lang}}}}|rtl|left|right}}<html> top;
<div id="appeal">
background-repeat: no-repeat;
{{#invoke:Main|get_appeal
background-color: #1e1e1e;
| appeal = {{{appeal|default}}}
border: 1px solid gray;
| language = {{int:lang}}
border-bottom-width: 0;
| country = {{uc:{{{country|XX}}}}}
}
| sitename = {{{sitename}}}
#pitch-head {
}}
width: 50%;
</div><!-- /appeal -->
font-size: 1.75em;
</div><!-- /appeal-wrapper -->
line-height: 1.5em;
<div id="form-wrapper">
color: white;
{{Template:Form-template/{{{form-template|Form-template-default}}}
margin-top: 16px;
| language = {{{language|en}}}
margin-</html>{{#ifeq:{{Template:Ltr-direction|{{int:lang}}}}|rtl|left|right}}<html>: 24px;
| country = {{uc:{{{country|XX}}}}}
}
| appeal = {{{appeal|Default}}}
#pitch-body {
| form-countryspecific = {{{form-countryspecific|Form-countryspecific-control}}}
width: 50%;
| pym_variant = {{{pym_variant|}}}
font-size: 1em;
| pym_appeal = {{{pym_appeal|JimmyQuote}}}
line-height: 1.5em;
}}
color: white;
<div style="display: none;"><!-- Opt-in, Pay the Fee, and Monthly Pitch - will be moved into correct position by some javascript -->
margin-top: 16px;
{{#ifeq:{{{country}}}|FR||
margin-</html>{{#ifeq:{{Template:Ltr-direction|{{int:lang}}}}|rtl|left|right}}<html>: 24px;
{{#ifexist:Template:PTF/{{{showPTF}}}
}
| {{PTF/{{{showPTF}}} | country = {{uc:{{{country|XX}}}}} }}
#LP-table{
| {{PTF/Default | country = {{uc:{{{country|XX}}}}} }}
width:100%;
}}
direction: </html>{{Template:Ltr-direction|{{int:lang}}}}<html>;
}}
border: none;
{{#if:{{{optin|}}}{{OptinRequired|{{uc:{{{country}}}}}}}
}
| {{#ifexist:Template:Optin/{{{optin}}}
#form-wrapper{
| {{Optin/{{{optin}}}}}
vertical-align: top;
| {{Optin/Default}}
}
}}
#appeal-wrapper{
}}
vertical-align: top;
{{#if:{{{monthlypitch|}}}
padding-</html>{{#ifeq:{{Template:Ltr-direction|{{int:lang}}}}|rtl|left|right}}<html>: 2em;
| {{#ifexist:Template:MonthlyPitch/{{{monthlypitch}}}
}
| {{MonthlyPitch/{{{monthlypitch}}}}}
body.mediawiki{
| {{MonthlyPitch/Default}}
direction: </html>{{Template:Ltr-direction|{{int:lang}}}}<html> !important;
}}
}}
div#mw-panel{
</div>
left: auto !important;
<div id="infobox-wrapper" role="complementary">
right: auto !important;
{{#invoke:Main|get_infobox
}
| infobox = {{{infobox|Default}}}
#footer {
| language = {{int:lang}}
background-image: none !important;
| country = {{uc:{{{country|XX}}}}}
}
}}
#mw-head-base {
</div><!-- /infobox-wrapper -->
height: 1em !important;
</div><!-- /form-wrapper -->
}
</div><!-- /main-wrapper -->
#mw-panel div.portal {
<div id="donate-footer" class="plainlinks links-in-new-tab" role="contentinfo">
display: none !important;
<div id="donate-tax-message">
}
{{#invoke:Main|get_tax_message
#p-namespaces, #p-views, #p-cactions, #p-search, #p-personal, #catlinks, #firstHeading, #contentSub, #siteSub {
| tax_message = {{{tax|}}}
display: none;
| language = {{int:lang}}
}
| country = {{uc:{{{country|XX}}}}}
div#content {
}}
background-color: transparent !important;
</div>
background-image: none !important;
{{Footer/Privacy/Default}}
direction: </html>{{Template:Ltr-direction|{{int:lang}}}}<html> !important;
{{Footer/Recurring/Default}}
/*margin-</html>{{#ifeq:{{Template:Ltr-direction|{{int:lang}}}}|rtl|left|right}}<html>: 10em;*/
<div class="donate" id="donate-links-block">
}
{{Footer/Links/Default}}
div#mw-head-base {
</div>
background-image: none !important;
</div><!-- /donate-footer -->
}
{{#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? -->
 
</style>
<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__
</div><!-- /.mw-parser-output -->