Template:Lp-layout-default: Difference between revisions

Content deleted Content added
doing a quick test
Tag: Reverted
add role="complementary" for infobox and role="contentinfo" for footer (too complicated at the moment to use <aside>/<footer>)
 
(27 intermediate revisions by the same user not shown)
Line 2:
<div class="mw-parser-output"><!-- so that TemplateStyles and various other things work -->
{{#switch: {{uc:{{{country|}}}}}
|AE|AF|AX|BY|CD|CI|CU|IQ|IR|KP|LB|LY|MM|SD|SS|SO|SY|YE|ZW|ID|SA|TR|RU|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">
Line 21 ⟶ 24:
</div><!-- /appeal-wrapper -->
<div id="form-wrapper">
{{Template:2012FRForm-template/{{{form-template|Form-template-default}}}
| language = {{{language|en}}}
| country = {{uc:{{{country|XX}}}}}
Line 29 ⟶ 32:
| pym_appeal = {{{pym_appeal|JimmyQuote}}}
}}
<div style="display: none;"><!-- Opt-in and, 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:Footer/TaxMonthlyPitch/{{{taxmonthlypitch}}}/{{int:lang}}
| {{MonthlyPitch/{{{monthlypitch}}}}}
| {{MonthlyPitch/Default}}
}}
}}
</div>
<div id="infobox-wrapper" role="complementary">
{{#invoke:Main|get_infobox
| infobox = {{{infobox|Default}}}
Line 50 ⟶ 61:
</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
{{#ifexist:Template:Footer/Tax/{{{tax}}}/{{int:lang}}
| {{Footer/Tax/tax_message = {{{tax}}}/{{int:lang}|}}}
| language = {{int:lang}}
| {{Footer/Tax/LinkOnly}}
| country = {{uc:{{{country|XX}}}}}
}}
</div>
Line 65 ⟶ 77:
</div>
</div>
{{#ifexist:Template:MonthlyConvert/{{{monthlyconvert}}}
|{{MonthlyConvert/{{{monthlyconvert}}}}}
|{{MonthlyConvert/Default}}
}}
}}<!-- endowment page switch -->
}}<!-- country switch -->
Line 74 ⟶ 90:
__NOTOC__
</div><!-- /.mw-parser-output -->
 
{{{appeal}}}