Template:Lp-layout-default: Difference between revisions

Content deleted Content added
Cbarr (talk | contribs)
No edit summary
add role="complementary" for infobox and role="contentinfo" for footer (too complicated at the moment to use <aside>/<footer>)
 
(203 intermediate revisions by 6 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 = {{#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;
line-height: 1.5em;
color: white;
margin-top: 16px;
margin-</html>{{#ifeq:{{Template:Ltr-direction|{{#ifeq:{{{uselang|}}}||{{int:lang}}|{{{uselang}}}}}}}|rtl|right|left}}<html>: 24px;
}
#LP-table{
width:100%;
direction: </html>{{Template:Ltr-direction|{{#ifeq:{{{uselang|}}}||{{int:lang}}|{{{uselang}}}}}}}<html>;
border: none;
}
#form-wrapper{
vertical-align: top;
}
#appeal-wrapper{
vertical-align: top;
padding-right: 2em;
}
body.mediawiki{
direction: </html>{{Template:Ltr-direction|{{#ifeq:{{{uselang|}}}||{{int:lang}}|{{{uselang}}}}}}}<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|{{#ifeq:{{{uselang|}}}||{{int:lang}}|{{{uselang}}}}}}}<html> !important;
margin-</html>{{#ifeq:{{Template:Ltr-direction|{{#ifeq:{{{uselang|}}}||{{int:lang}}|{{{uselang}}}}}}}|rtl|right|left}}<html>: 10em;
}
 
div#mw-head-base {
background-image: none !important;
}
 
</style>
 
<script type="text/javascript">
function getQuerystring( key ) {
key = key.replace( /[\[]/, '\\\[' ).replace( /[\]]/, '\\\]' );
var regex = new RegExp( '[\\?&]' + key + '=([a-zA-Z0-9\_\-]*)' );
var qs = regex.exec( window.location.search );
return qs == null ? '' : qs[1];
}
</script>
<table id="LP-table" cellspacing="0" cellpadding="0">
<tr>
<td id="appeal-wrapper">
</html>{{Template:2011FR/{{{appeal-template|appeal-template-default}}}
| 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}}}
}}<html>
</td>
<td id="form-wrapper">
</html>
{{Template:2011FR/{{{form-template|form-template-default-2}}}
| country = {{{country}}}
| lang = {{#ifeq:{{{uselang|}}}||{{int:lang}}|{{{uselang}}}}}
}}
</div><!-- /appeal -->
<html>
</div><!-- /appeal-wrapper -->
</td>
<div id="form-wrapper">
</tr>
{{Template:Form-template/{{{form-template|Form-template-default}}}
</table>
| language = {{{language|en}}}
</html>
| country = {{uc:{{{country|XX}}}}}
| 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>
<div class="donate-smallprint">
{{Footer/Privacy/Default}}
{{Footer/Recurring/Default}}
</div>
<div class="donate" id="donate-links-block">
{{Footer/Links/Default}}
</div>
</div>
{{#ifexist:Template:MonthlyConvert/{{{monthlyconvert}}}
|{{MonthlyConvert/{{{monthlyconvert}}}}}
|{{MonthlyConvert/Default}}
}}
}}<!-- endowment page switch -->
}}<!-- country switch -->
 
<!-- shared resources -->
{{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 -->