Template:Lp-layout-default: Difference between revisions

Content deleted Content added
Rkaldari (talk | contribs)
Disable submitting form with return key
add role="complementary" for infobox and role="contentinfo" for footer (too complicated at the moment to use <aside>/<footer>)
 
(160 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 -->
{{DISPLAYTITLE:KeepItFree}}
<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 = {{#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|{{{uselang|en}}}}}|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|{{{uselang|en}}}}}|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|{{{uselang|en}}}}}|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|{{{uselang|en}}}}}|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|{{{uselang|en}}}}}<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|{{{uselang|en}}}}}|rtl|left|right}}<html>: 2em;
| {{MonthlyPitch/{{{monthlypitch}}}}}
}
| {{MonthlyPitch/Default}}
body.mediawiki{
}}
direction: </html>{{Template:Ltr-direction|{{{uselang|en}}}}}<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;
<div class="donate-smallprint">
background-image: none !important;
{{Footer/Privacy/Default}}
direction: </html>{{Template:Ltr-direction|{{{uselang|en}}}}}<html> !important;
{{Footer/Recurring/Default}}
/*margin-</html>{{#ifeq:{{Template:Ltr-direction|{{{uselang|en}}}}}|rtl|left|right}}<html>: 10em;*/
</div>
}
<div class="donate" id="donate-links-block">
div#mw-head-base {
{{Footer/Links/Default}}
background-image: none !important;
</div>
}
</div>
{{#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}}}
| appeal-title = {{Template:LanguageSwitch|2011FR/{{{appeal|Appeal-default}}}/title|{{{uselang|en}}}|{{{country|US}}}}}
| appeal-text = {{Template:LanguageSwitch|2011FR/{{{appeal|Appeal-default}}}/text|{{{uselang|en}}}|{{{country|US}}}}}
| translate-link = {{{appeal|Appeal-default}}}
| uselang = {{{uselang|en}}}
| country = {{{country|US}}}
}}<html>
</td>
<td id="form-wrapper">
</html>{{Template:2011FR/{{{form-template|form-template-default}}}
| country = {{{country|US}}}
| uselang = {{{uselang|en}}}
| appeal = {{{appeal|Appeal-default}}}
| form-countryspecific = {{{form-countryspecific|Form-countryspecific-control}}}
}}<html>
</td>
</tr>
</tbody>
</table>
</html>
__NOTOC__
</div><!-- /.mw-parser-output -->