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
 
(208 intermediate revisions by 7 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 -->
<style type="text/css">
{{#switch: {{uc:{{{country|}}}}}
#pitch {
|AE|AF|AX|BY|CD|CI|CU|IQ|IR|KP|LB|LY|MM|SD|SS|SO|SY|YE|ZW|ID|SA|TR|KR
height: 236px;
|PY|UZ|TM|XK|IN = {{#ifexist:Template:CountryNope/{{int:lang}} | {{CountryNope/{{int:lang}}}} | {{CountryNope}} }}
background-image: url(</html>{{#ifeq:{{Template:Ltr-direction|{{#ifeq:{{{uselang|}}}||{{int:lang}}|{{{uselang}}}}}}}|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>);
|FI = {{CountryNope/FI}}
background-position: </html>{{#ifeq:{{Template:Ltr-direction|{{#ifeq:{{{uselang|}}}||{{int:lang}}|{{{uselang}}}}}}}|rtl|left|right}}<html> top;
|RU = {{CountryNope/RU}}
background-repeat: no-repeat;
|UA = {{CountryNope/UA}}
background-color: #1e1e1e;
|XX|EU|AP|A1|A2|O1 = {{GeolocateError}}
border: 1px solid gray;
|#default =
border-bottom-width: 0;
{{#switch: {{{wmf_medium| {{{utm_medium|}}} }}}
}
|endowment = {{Lp-layout-endowment|country={{uc:{{{country|}}}}}|form-countryspecific={{{form-countryspecific|Form-countryspecific-control}}}|appeal={{{appeal}}}|optin={{{optin|}}}}}
#pitch-head {
|#default =
width: 50%;
<div id="main-wrapper" class="country-{{uc:{{{country|XX}}}}}">
font-size: 1.75em;
<div id="appeal-wrapper">
line-height: 1.5em;
<div id="appeal">
color: white;
{{#invoke:Main|get_appeal
margin-top: 16px;
| appeal = {{{appeal|default}}}
margin-</html>{{#feq:{{Template:Ltr-direction|{{#ifeq:{{{uselang|}}}||{{int:lang}}|{{{uselang}}}}}}}|rtl|right|left}}<html>: 24px;
| language = {{int:lang}}
}
| country = {{uc:{{{country|XX}}}}}
#pitch-body {
| sitename = {{{sitename}}}
width: 50%;
}}
font-size: 1em;
</div><!-- /appeal -->
line-height: 1.5em;
</div><!-- /appeal-wrapper -->
color: white;
<div id="form-wrapper">
margin-top: 16px;
{{Template:Form-template/{{{form-template|Form-template-default}}}
margin-</html>{{#ifeq:{{Template:Ltr-direction|{{#ifeq:{{{uselang|}}}||{{int:lang}}|{{{uselang}}}}}}}|rtl|right|left}}<html>: 24px;
| language = {{{language|en}}}
}
| country = {{uc:{{{country|XX}}}}}
#LP-table{
| appeal = {{{appeal|Default}}}
width:100%;
| form-countryspecific = {{{form-countryspecific|Form-countryspecific-control}}}
direction: </html>{{Template:Ltr-direction|{{#ifeq:{{{uselang|}}}||{{int:lang}}|{{{uselang}}}}}}}<html>;
| pym_variant = {{{pym_variant|}}}
border: none;
| pym_appeal = {{{pym_appeal|JimmyQuote}}}
}
}}
#form-wrapper{
<div style="display: none;"><!-- Opt-in, Pay the Fee, and Monthly Pitch - will be moved into correct position by some javascript -->
vertical-align: top;
{{#ifeq:{{{country}}}|FR||
}
{{#ifexist:Template:PTF/{{{showPTF}}}
#appeal-wrapper{
| {{PTF/{{{showPTF}}} | country = {{uc:{{{country|XX}}}}} }}
vertical-align: top;
| {{PTF/Default | country = {{uc:{{{country|XX}}}}} }}
padding-right: 2em;
}}
}}
body.mediawiki{
{{#if:{{{optin|}}}{{OptinRequired|{{uc:{{{country}}}}}}}
direction: </html>{{Template:Ltr-direction|{{#ifeq:{{{uselang|}}}||{{int:lang}}|{{{uselang}}}}}}}<html> !important;
| {{#ifexist:Template:Optin/{{{optin}}}
}
| {{Optin/{{{optin}}}}}
div#mw-panel{
| {{Optin/Default}}
left: auto !important;
}}
right: auto !important;
}}
{{#if:{{{monthlypitch|}}}
#footer {
| {{#ifexist:Template:MonthlyPitch/{{{monthlypitch}}}
background-image: none !important;
| {{MonthlyPitch/{{{monthlypitch}}}}}
}
| {{MonthlyPitch/Default}}
#mw-head-base {
}}
height: 1em !important;
}}
</div>
#mw-panel div.portal {
<div id="infobox-wrapper" role="complementary">
display: none !important;
{{#invoke:Main|get_infobox
}
| infobox = {{{infobox|Default}}}
#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><!-- /infobox-wrapper -->
background-color: transparent !important;
</div><!-- /form-wrapper -->
background-image: none !important;
</div><!-- /main-wrapper -->
direction: </html>{{Template:Ltr-direction|{{#ifeq:{{{uselang|}}}||{{int:lang}}|{{{uselang}}}}}}}<html> !important;
<div id="donate-footer" class="plainlinks links-in-new-tab" role="contentinfo">
margin-</html>{{#ifeq:{{Template:Ltr-direction|{{#ifeq:{{{uselang|}}}||{{int:lang}}|{{{uselang}}}}}}}|rtl|right|left}}<html>: 10em;
<div id="donate-tax-message">
}
{{#invoke:Main|get_tax_message
div#mw-head-base {
| tax_message = {{{tax|}}}
background-image: none !important;
| language = {{int:lang}}
}
| country = {{uc:{{{country|XX}}}}}
</style>
}}
<script type="text/javascript">
</div>
function getQuerystring( key ) {
{{Footer/Privacy/Default}}
key = key.replace( /[\[]/, '\\\[' ).replace( /[\]]/, '\\\]' );
{{Footer/Recurring/Default}}
var regex = new RegExp( '[\\?&]' + key + '=([a-zA-Z0-9\_\-]*)' );
<div class="donate" id="donate-links-block">
var qs = regex.exec( window.location.search );
{{Footer/Links/Default}}
return qs == null ? '' : qs[1];
</div>
}
</div><!-- /donate-footer -->
</script>
{{#ifexist:Template:MonthlyConvert/{{{monthlyconvert}}}
<table id="LP-table" cellspacing="0" cellpadding="0">
|{{MonthlyConvert/{{{monthlyconvert}}}}}
<tbody>
|{{MonthlyConvert/Default}}
<tr>
}}
<td id="appeal-wrapper">
}}<!-- endowment page switch -->
</html>{{Template:2011FR/{{{appeal-template|appeal-template-default}}}
}}<!-- country switch -->
| appeal-title = {{Template:LanguageSwitch|2011FR/{{{appeal|Appeal-default}}}/title|{{#ifeq:{{{uselang|}}}||{{int:lang}}|{{{uselang}}}}}}}|{{{country}}}
 
| appeal-text = {{Template:LanguageSwitch|2011FR/{{{appeal|Appeal-default}}}/text|{{#ifeq:{{{uselang|}}}||{{int:lang}}|{{{uselang}}}}}}}|{{{country}}}
<!-- shared resources -->
}}<html>
{{IncludeCSS | Template:Styles/{{{style|Default}}}.css }}
</td>
{{#if:{{{style2|}}}| {{IncludeCSS | Template:Styles/{{{style2}}}.css }} }} <!-- additional styles? -->
<td id="form-wrapper">
{{#if:{{{addStyle|}}}| {{IncludeCSS | Template:Styles/{{{addStyle}}}.css }} }} <!-- additional styles? -->
</html>{{Template:2011FR/{{{form-template|form-template-default-2}}}
| country = CA<!-- {{{country}}} -->
<!-- | lang = {{#ifeq:{{{uselang|}}}||{{int:lang}}|{{{uselang}}}}} -->
| lang = {{int:lang}}
}}<html>
</td>
</tr>
</tbody>
</table>
</html>
__NOTOC__
</div><!-- /.mw-parser-output -->