Template:Lp-layout-default: Difference between revisions

Content deleted Content added
cleanup excess of <html> tags, move blocked country switch to start (so can avoid loading social media template in those countries)
add role="complementary" for infobox and role="contentinfo" for footer (too complicated at the moment to use <aside>/<footer>)
 
(107 intermediate revisions by 2 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 -->
{{#switch: {{{country|}}}
<div class="mw-parser-output"><!-- so that TemplateStyles and various other things work -->
|BY|CD|CI|CU|IQ|IR|KP|LB|LY|MM|SD|SO|SY|YE|ZW|FI
{{#switch: {{uc:{{{country|}}}}}
= {{CountryNope}}
|AE|AF|AX|BY|CD|CI|CU|IQ|IR|KP|LB|LY|MM|SD|SS|SO|SY|YE|ZW|ID|SA|TR|KR
|#default=
|PY|UZ|TM|XK = {{#ifexist:Template:CountryNope/{{int:lang}} | {{CountryNope/{{int:lang}}}} | {{CountryNope}} }}
{{2012FR/Lp-header/Socialmedia
|FI = {{CountryNope/FI}}
| image = <nowiki>//upload.wikimedia.org/wikipedia/donate/e/eb/Wikipedia-logo-Donate2.png</nowiki>
|RU = {{CountryNope/RU}}
| description = {{Template:2012FR/Switch/Appeal
|UA = {{CountryNope/UA}}
|appeal = 2011FR/{{{appeal|Appeal-default}}}
|XX|EU|AP|A1|A2|O1 = {{GeolocateError}}
|subpage = title
|#default =
|language = {{int:lang}}
{{#switch: {{{wmf_medium| {{{utm_medium|}}} }}}
|country = {{{country|XX}}}
|endowment = {{Lp-layout-endowment|country={{uc:{{{country|}}}}}|form-countryspecific={{{form-countryspecific|Form-countryspecific-control}}}|appeal={{{appeal}}}|optin={{{optin|}}}}}
|sitename = {{{sitename}}}
|#default =
}}
<div id="main-wrapper" class="country-{{uc:{{{country|XX}}}}}">
}}
<div id="appeal-wrapper">
<table id="LP-table" cellspacing="0" cellpadding="0">
<div id="appeal">
<tr>
{{#invoke:Main|get_appeal
<td id="appeal-wrapper">
{{Template:2012FR/ | appeal = {{{appeal-template|Appeal-template-default}}}
| language = {{{language|en}int:lang}}
| country = {{uc:{{{country|XX}}}}}
| appeal = {{{appeal|Default}}}
| sitename = {{{sitename}}}
}}
</div><!-- /appeal -->
</td>
<td/div><!-- id="form/appeal-wrapper" -->
<div id="form-wrapper">
{{Template:2012FR/{{{form-template|Form-template-default}}}
{{Template:Form-template/{{{form-template|Form-template-default}}}
| language = {{{language|en}}}
| country = {{uc:{{{country|XX}}}}}
| appeal = {{{appeal|Default}}}
| form-countryspecific = {{{form-countryspecific|Form-countryspecific-control}}}
| pym_variant = {{{pym_variant|}}}
| infobox = {{2012FR/Form-section/Infobox
| pym_appeal | infobox = {{{infoboxpym_appeal|DefaultJimmyQuote}}}
}}
| width = 25em
<div style="display: none;"><!-- Opt-in, Pay the Fee, and Monthly Pitch - will be moved into correct position by some javascript -->
| language = {{int:lang}}
| country = {{#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}}}}}
}}
</tddiv>
<div class="donate-smallprint">
</tr>
{{Footer/Privacy/Default}}
</table>
{{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 }}
{{MediaWiki:Resources/landingpage.css}}
{{#if:{{{style2|}}}| {{IncludeCSS | Template:Styles/{{{style2}}}.css }} }} <!-- additional styles? -->
{{MediaWiki:Resources/landingpage.js}}
{{#if:{{{addStyle|}}}| {{IncludeCSS | Template:Styles/{{{addStyle}}}.css }} }} <!-- additional styles? -->
{{#if: {{{responsive|}}} | {{MediaWiki:Resources/landingpage-responsive}} }}
__NOTOC__
</div><!-- /.mw-parser-output -->