Template:Lp-layout-default: Difference between revisions

From Donate
Jump to navigation Jump to search
Content deleted Content added
the "pitch" css isn't going to be used any time soon
comment end of footer
 
(139 intermediate revisions by 4 users not shown)
Line 1: 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
<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:AppealSwitch|2011FR/{{{appeal|Appeal-default}}}|text|{{int:lang}}|{{{country|US}}}|sitename={{{sitename}}}}}
|AE|AF|AX|BY|CD|CI|CU|IQ|IR|KP|LB|LY|MM|SD|SS|SO|SY|YE|ZW|ID|SA|TR|KR
}}
|PY|UZ|TM|XK = {{#ifexist:Template:CountryNope/{{int:lang}} | {{CountryNope/{{int:lang}}}} | {{CountryNope}} }}
<html>
|FI = {{CountryNope/FI}}
<script type="text/javascript">
|RU = {{CountryNope/RU}}
$( document ).ready( function () {
|UA = {{CountryNope/UA}}
// Disable submitting form with return key
|XX|EU|AP|A1|A2|O1 = {{GeolocateError}}
$( 'form' ).bind( 'keypress', function(e) {
|#default =
var code = ( e.keyCode ? e.keyCode : e.which );
{{#switch: {{{wmf_medium| {{{utm_medium|}}} }}}
if ( code == 13 ) return false;
|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}}}}}">
</script>
<style type="text/css">
<div id="appeal-wrapper">
<div id="appeal">
#LP-table {
{{#invoke:Main|get_appeal
width:100%;
| appeal = {{{appeal|default}}}
direction: </html>{{Template:Ltr-direction|{{int:lang}}}}<html>;
| language = {{int:lang}}
border: none;
| country = {{uc:{{{country|XX}}}}}
}
#form-wrapper {
vertical-align: top;
}
#appeal-wrapper {
vertical-align: top;
padding-</html>{{#ifeq:{{Template:Ltr-direction|{{int:lang}}}}|rtl|left|right}}<html>: 2em;
}
body.mediawiki {
direction: </html>{{Template:Ltr-direction|{{int:lang}}}}<html> !important;
}
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:Ltr-direction|{{int:lang}}}}<html> !important;
/*margin-</html>{{#ifeq:{{Template:Ltr-direction|{{int:lang}}}}|rtl|left|right}}<html>: 10em;*/
}
div#mw-head-base {
background-image: none !important;
}
#footer-places, #footer-info {
display: none !important;
}
</style>
<!--[if lt IE 8]>
<style type="text/css">
div#mw-panel{
left: 0 !important;
right: auto !important;
}
</style>
<![endif]-->
</html>
<table id="LP-table" cellspacing="0" cellpadding="0">
<tr>
<td id="appeal-wrapper">
{{Template:2011FR/{{{appeal-template|Appeal-template-default}}}
| country = {{#ifeq: {{{country|US}}}|XX|US|{{{country}}}}}
| appeal = {{{appeal|Appeal-default}}}
| sitename = {{{sitename}}}
| sitename = {{{sitename}}}
}}
}}
</div><!-- /appeal -->
</td>
<td id="form-wrapper">
</div><!-- /appeal-wrapper -->
<div id="form-wrapper">
{{Template:2011FR/{{#ifeq: {{{country|US}}}|US|Form-template-recurring|{{{form-template|Form-template-default}}}}}
{{Template:Form-template/{{{form-template|Form-template-default}}}
| country = {{#ifeq: {{{country|US}}}|XX|US|{{{country}}}}}
| appeal = {{{appeal|Appeal-default}}}
| language = {{{language|en}}}
| country = {{uc:{{{country|XX}}}}}
| form-countryspecific = {{#ifeq: {{{country|}}}|US|Form-countryspecific-recurring|{{{form-countryspecific|Form-countryspecific-control}}}}}
| appeal = {{{appeal|Default}}}
| form-countryspecific = {{{form-countryspecific|Form-countryspecific-control}}}
| pym_variant = {{{pym_variant|}}}
| 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 -->
{{#ifeq:{{{country}}}|FR||
{{#ifexist:Template:PTF/{{{showPTF}}}
| {{PTF/{{{showPTF}}} | country = {{uc:{{{country|XX}}}}} }}
| {{PTF/Default | country = {{uc:{{{country|XX}}}}} }}
}}
}}
{{#if:{{{optin|}}}{{OptinRequired|{{uc:{{{country}}}}}}}
| {{#ifexist:Template:Optin/{{{optin}}}
| {{Optin/{{{optin}}}}}
| {{Optin/Default}}
}}
}}
{{#if:{{{monthlypitch|}}}
| {{#ifexist:Template:MonthlyPitch/{{{monthlypitch}}}
| {{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>
{{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 -->
</td>
}}<!-- country switch -->
</tr>

</table>
<!-- shared resources -->
__NOTOC__<noinclude><big><b>Doc:</b></big>This template contains the CSS and HTML that hides the normal MediaWiki interface stuff and sets the overall look for the two part layout.</noinclude>
{{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 -->

Latest revision as of 18:45, 30 September 2024

Wikipedia still can't be sold.

Thank you for considering a donation to the Wikimedia Foundation.

We invite you to reflect on the number of times you visited Wikipedia in the last year. If the knowledge you gained here was valuable, please join the 2% of readers who donate. Any amount helps: $5, $20, $50, or whatever feels right to you today.

In the age of AI, access to verifiable facts is crucial. Wikipedia is at the heart of online information, powering everything from your personal searches to emerging AI technologies. Your gift strengthens the knowledge of today and tomorrow.

If Wikipedia has given you useful knowledge this year, please give back. There are no small contributions: every edit counts, every donation counts.

Thank you.