Template:Lp-layout-default: Difference between revisions

From Donate
Jump to navigation Jump to search
Content deleted Content added
m minor edits for clarity & style
add role="complementary" for infobox and role="contentinfo" for footer (too complicated at the moment to use <aside>/<footer>)
 
(141 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}} }}
|FI = {{CountryNope/FI}}
|RU = {{CountryNope/RU}}
|UA = {{CountryNope/UA}}
|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 -->
<html>
</div><!-- /appeal-wrapper -->
<script type="text/javascript">
<div id="form-wrapper">
$( document ).ready( function () {
{{Template:Form-template/{{{form-template|Form-template-default}}}
// Disable submitting form with return key
| language = {{{language|en}}}
$( 'form' ).bind( 'keypress', function(e) {
| country = {{uc:{{{country|XX}}}}}
var code = ( e.keyCode ? e.keyCode : e.which );
| appeal = {{{appeal|Default}}}
if ( code == 13 ) return false;
| form-countryspecific = {{{form-countryspecific|Form-countryspecific-control}}}
} );
| pym_variant = {{{pym_variant|}}}
} );
| pym_appeal = {{{pym_appeal|JimmyQuote}}}
</script>
}}
<style type="text/css">
<div style="display: none;"><!-- Opt-in, Pay the Fee, and Monthly Pitch - will be moved into correct position by some javascript -->
#pitch {
{{#ifeq:{{{country}}}|FR||
height: 236px;
{{#ifexist:Template:PTF/{{{showPTF}}}
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>);
| {{PTF/{{{showPTF}}} | country = {{uc:{{{country|XX}}}}} }}
background-position: </html>{{#ifeq:{{Template:Ltr-direction|{{int:lang}}}}|rtl|left|right}}<html> top;
| {{PTF/Default | country = {{uc:{{{country|XX}}}}} }}
background-repeat: no-repeat;
}}
background-color: #1e1e1e;
}}
border: 1px solid gray;
{{#if:{{{optin|}}}{{OptinRequired|{{uc:{{{country}}}}}}}
border-bottom-width: 0;
| {{#ifexist:Template:Optin/{{{optin}}}
}
| {{Optin/{{{optin}}}}}
#pitch-head {
| {{Optin/Default}}
width: 50%;
}}
font-size: 1.75em;
}}
line-height: 1.5em;
{{#if:{{{monthlypitch|}}}
color: white;
| {{#ifexist:Template:MonthlyPitch/{{{monthlypitch}}}
margin-top: 16px;
| {{MonthlyPitch/{{{monthlypitch}}}}}
margin-</html>{{#ifeq:{{Template:Ltr-direction|{{int:lang}}}}|rtl|left|right}}<html>: 24px;
| {{MonthlyPitch/Default}}
}
}}
#pitch-body {
}}
width: 50%;
</div>
font-size: 1em;
<div id="infobox-wrapper" role="complementary">
line-height: 1.5em;
{{#invoke:Main|get_infobox
color: white;
| infobox = {{{infobox|Default}}}
margin-top: 16px;
| language = {{int:lang}}
margin-</html>{{#ifeq:{{Template:Ltr-direction|{{int:lang}}}}|rtl|left|right}}<html>: 24px;
| country = {{uc:{{{country|XX}}}}}
}
}}
#LP-table {
</div><!-- /infobox-wrapper -->
width:100%;
</div><!-- /form-wrapper -->
direction: </html>{{Template:Ltr-direction|{{int:lang}}}}<html>;
</div><!-- /main-wrapper -->
border: none;
<div id="donate-footer" class="plainlinks links-in-new-tab" role="contentinfo">
}
<div id="donate-tax-message">
#form-wrapper {
{{#invoke:Main|get_tax_message
vertical-align: top;
| tax_message = {{{tax|}}}
}
| language = {{int:lang}}
#appeal-wrapper {
| country = {{uc:{{{country|XX}}}}}
vertical-align: top;
}}
padding-</html>{{#ifeq:{{Template:Ltr-direction|{{int:lang}}}}|rtl|left|right}}<html>: 2em;
</div>
}
<div class="donate-smallprint">
body.mediawiki {
{{Footer/Privacy/Default}}
direction: </html>{{Template:Ltr-direction|{{int:lang}}}}<html> !important;
{{Footer/Recurring/Default}}
}
</div>
div#mw-panel {
<div class="donate" id="donate-links-block">
left: auto !important;
{{Footer/Links/Default}}
right: auto !important;
</div>
}
</div>
#footer {
{{#ifexist:Template:MonthlyConvert/{{{monthlyconvert}}}
background-image: none !important;
|{{MonthlyConvert/{{{monthlyconvert}}}}}
}
|{{MonthlyConvert/Default}}
#mw-head-base {
}}
height: 1em !important;
}}<!-- endowment page switch -->
}
}}<!-- country switch -->
#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 {
display: none !important;
}
</style>
<!--[if lt IE 8]>
<style type="text/css">
div#mw-panel{
left: 0 !important;
right: auto !important;
}
</style>
<![endif]-->


<!-- shared resources -->
<table id="LP-table" cellspacing="0" cellpadding="0">
{{IncludeCSS | Template:Styles/{{{style|Default}}}.css }}
<tbody>
{{#if:{{{style2|}}}| {{IncludeCSS | Template:Styles/{{{style2}}}.css }} }} <!-- additional styles? -->
<tr>
{{#if:{{{addStyle|}}}| {{IncludeCSS | Template:Styles/{{{addStyle}}}.css }} }} <!-- additional styles? -->
<td id="appeal-wrapper">
__NOTOC__
</html>{{Template:2011FR/{{{appeal-template|Appeal-template-default}}}
</div><!-- /.mw-parser-output -->
| country = {{#ifeq: {{{country|US}}}|XX|US|{{{country}}}}}
| appeal = {{{appeal|Appeal-default}}}
| sitename = {{{sitename}}}
}}<html>
</td>
<td id="form-wrapper">
</html>{{Template:2011FR/{{#ifeq: {{{country|US}}}|US|Form-template-recurring|{{{form-template|Form-template-default}}}}}
| country = {{#ifeq: {{{country|US}}}|XX|US|{{{country}}}}}
| appeal = {{{appeal|Appeal-default}}}
| form-countryspecific = {{#ifeq: {{{country|US}}}|US|Form-countryspecific-recurring|{{{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 overall look for the two part layout.<noinclude>

Latest revision as of 13:05, 29 April 2024

Wikipedia is still not on the market

Thank you for considering a donation to the Wikimedia Foundation, the nonprofit that hosts Wikipedia and other crucial free knowledge projects.

We invite you to reflect on the number of times you visited Wikipedia in the past year. If the knowledge you gained here was valuable, please join the 2% of readers who donate to the nonprofit that supports Wikipedia.

It is hard to know what to trust online these days. Wikipedia is different: not perfect, but also not here to make a profit or to push a particular perspective. It is written by everyone, together, because they want to help create a free repository of high-quality information.

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.