Difference between revisions of "Template:ContentTemplateModernInline"
Jump to navigation
Jump to search
(Created page with "<!-- Modern content layout with ZERO site CSS and NO TemplateStyles. Everything is inline. Media queries aren't possible; use |layout=stack to force vertical layout. -->...") |
|||
| Line 1: | Line 1: | ||
| − | <!-- | + | <!-- ContentTemplateModernInline — no Variables extension, no leading spaces --> |
| − | |||
{{HeaderTemplate|welcome={{{welcome|}}}|blurb={{{blurb|}}}}} | {{HeaderTemplate|welcome={{{welcome|}}}|blurb={{{blurb|}}}}} | ||
| − | + | {{#switch:{{{layout|auto}}} | |
| − | {{# | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| stack = | | stack = | ||
| − | + | <div class="cpage" role="presentation" style="display:block;"> | |
| − | + | <div class="cpage__left" style="margin-bottom:{{{gap|1rem}}};"> | |
| − | + | {{SectionTemplate|title={{{sections_title|Sections}}}|content={{{sections_content|}}}}} | |
| − | + | </div> | |
| − | + | <main class="cpage__main" role="main" style="margin-bottom:{{{gap|1rem}}};"> | |
| − | + | {{#if:{{{about_content|}}}|{{SectionTemplate|title={{{about_title|About}}}|content={{{about_content}}}}}|}} | |
| − | + | {{#if:{{{featured_content|}}}|{{SectionTemplate|title={{{featured_title|Featured}}}|content={{{featured_content}}}}}|}} | |
| − | + | {{#if:{{{news_content|}}}|{{SectionTemplate|title={{{news_title|News}}}|content={{{news_content}}}}}|}} | |
| − | + | </main> | |
| − | + | {{#if:{{{image_content|}}}|<aside class="cpage__aside" role="complementary">{{{image_content}}}</aside>|}} | |
| − | + | </div> | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| #default = | | #default = | ||
| − | + | <div class="cpage" role="presentation" style="display:flex;align-items:flex-start;gap:{{{gap|1rem}}};"> | |
| − | + | <div class="cpage__left" style="flex:0 0 {{{left_width|320px}}};min-width:260px;"> | |
| − | + | {{SectionTemplate|title={{{sections_title|Sections}}}|content={{{sections_content|}}}}} | |
| − | + | </div> | |
| − | + | <main class="cpage__main" role="main" style="flex:1 1 auto;min-width:0;"> | |
| − | + | {{#if:{{{about_content|}}}|{{SectionTemplate|title={{{about_title|About}}}|content={{{about_content}}}}}|}} | |
| − | + | {{#if:{{{featured_content|}}}|{{SectionTemplate|title={{{featured_title|Featured}}}|content={{{featured_content}}}}}|}} | |
| − | + | {{#if:{{{news_content|}}}|{{SectionTemplate|title={{{news_title|News}}}|content={{{news_content}}}}}|}} | |
| − | + | </main> | |
| − | + | {{#if:{{{image_content|}}}|<aside class="cpage__aside" role="complementary" style="flex:0 0 {{{aside_width|320px}}};min-width:260px;">{{{image_content}}}</aside>|}} | |
| − | + | </div> | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
}} | }} | ||
| − | + | {{#ifeq:{{{show_toc|no}}}|yes||__NOTOC__}} | |
| − | {{#ifeq:{{ | + | {{#ifeq:{{{show_section_edit|no}}}|yes||__NOEDITSECTION__}} |
| − | {{#ifeq:{{ | ||
<noinclude>[[Category:Templates]]</noinclude> | <noinclude>[[Category:Templates]]</noinclude> | ||
Revision as of 09:03, 18 September 2025
Sections
<main class="cpage__main" role="main" style="flex:1 1 auto;min-width:0;">
</main>