Difference between revisions of "Template:ContentTemplate"

From Holdfast: Nations At War
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<!-- Based on: https://hoi4.paradoxwikis.com/Template:MainTemplate -->{{HeaderTemplate|welcome={{{welcome}}}|blurb={{{blurb}}}}}
+
<!-- Modern, responsive content layout (div + flexbox) -->
<!-- LEFT COLUMN -->
+
<!-- Based on Paradox-style layout, but using semantic wrappers and CSS classes -->
{| width="100%" cellspacing="0" cellpadding="0" style="background:transparent;"
+
 
|-
+
 
| width="320px" style="vertical-align:top; padding-right:0.5em; float:left;" |
+
{{HeaderTemplate|welcome={{{welcome|}}}|blurb={{{blurb|}}}}}
<!-- Sections -->
+
 
{{SectionTemplate|title={{{sections_title}}}|content={{{sections_content}}}}}
+
 
| width="100%" style="vertical-align:top;" |
+
<div class="cpage" role="presentation">
<!-- Info about this site -->
+
<div class="cpage__left">
{{SectionTemplate|title={{{about_title}}}|content={{{about_content}}}}}
+
{{SectionTemplate
{{SectionTemplate|title={{{featured_title}}}|content={{{featured_content}}}}}
+
|title = {{{sections_title|Sections}}}
{{SectionTemplate|title={{{news_title}}}|content={{{news_content}}}}}
+
|content = {{{sections_content|}}}
| style="vertical-align:top;" |
+
}}
 +
</div>
 +
 
 +
 
 +
<main class="cpage__main" role="main">
 +
{{#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}}}
 
{{{image_content}}}
|}
+
</aside>
 +
|}}
 +
</div>
 +
 
 +
 
 +
<!-- Optional magic words (default hidden). Set |show_toc=yes or |show_section_edit=yes to enable. -->
 +
{{#ifeq:{{{show_toc|no}}}|yes||__NOTOC__}}
 +
{{#ifeq:{{{show_section_edit|no}}}|yes||__NOEDITSECTION__}}
 +
 
  
__NOTOC__
 
__NOEDITSECTION__
 
 
<noinclude>[[Category:Templates]]</noinclude>
 
<noinclude>[[Category:Templates]]</noinclude>

Latest revision as of 08:41, 18 September 2025