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>)
 
(179 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|{{{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>);
|FI = {{CountryNope/FI}}
background-position: </html>{{#ifeq:{{Template:Ltr-direction|{{{uselang|en}}}}}|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>{{#ifeq:{{Template:Ltr-direction|{{{uselang|en}}}}}|rtl|left|right}}<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|{{{uselang|en}}}}}|rtl|left|right}}<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|{{{uselang|en}}}}}<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-</html>{{#ifeq:{{Template:Ltr-direction|{{{uselang|en}}}}}|rtl|left|right}}<html>: 2em;
}}
}}
body.mediawiki{
{{#if:{{{optin|}}}{{OptinRequired|{{uc:{{{country}}}}}}}
direction: </html>{{Template:Ltr-direction|{{{uselang|en}}}}}<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|{{{uselang|en}}}}}<html> !important;
<div id="donate-footer" class="plainlinks links-in-new-tab" role="contentinfo">
/*margin-</html>{{#ifeq:{{Template:Ltr-direction|{{{uselang|en}}}}}|rtl|left|right}}<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>
}}
<table id="LP-table" cellspacing="0" cellpadding="0">
<tbody/div>
<div class="donate-smallprint">
<tr>
{{Footer/Privacy/Default}}
<td id="appeal-wrapper">
{{Footer/Recurring/Default}}
</html>{{Template:2011FR/{{{appeal-template|appeal-template-default}}}
</div>
| appeal-title = {{Template:LanguageSwitch|2011FR/{{{appeal|Appeal-default}}}/title|{{{uselang|en}}}|{{{country|US}}}}}
<div class="donate" id="donate-links-block">
| appeal-text = {{Template:LanguageSwitch|2011FR/{{{appeal|Appeal-default}}}/text|{{{uselang|en}}}|{{{country|US}}}}}
{{Footer/Links/Default}}
| uselang = {{{uselang|en}}}
</div>
] country = {{{country|US}}}
}}<html/div>
{{#ifexist:Template:MonthlyConvert/{{{monthlyconvert}}}
</td>
|{{MonthlyConvert/{{{monthlyconvert}}}}}
<td id="form-wrapper">
|{{MonthlyConvert/Default}}
</html>{{Template:2011FR/{{{form-template|form-template-default-2}}}
}}
| country = {{{country|US}}}
}}<!-- endowment page switch -->
| uselang = {{{uselang|en}}}
}}<!-- country switch -->
}}<html>
 
</td>
<!-- shared resources -->
</tr>
{{IncludeCSS | Template:Styles/{{{style|Default}}}.css }}
</tbody>
{{#if:{{{style2|}}}| {{IncludeCSS | Template:Styles/{{{style2}}}.css }} }} <!-- additional styles? -->
</table>
{{#if:{{{addStyle|}}}| {{IncludeCSS | Template:Styles/{{{addStyle}}}.css }} }} <!-- additional styles? -->
</html>
__NOTOC__
</div><!-- /.mw-parser-output -->