Difference between revisions of "Template:ContentTemplate"

From Holdfast: Nations At War
Jump to navigation Jump to search
(Created page with "<noinclude><!-- Template:ContentTemplate --></noinclude> <!-- Minimal wrapper for inner pages (guides, docs). Requires ParserFunctions. --> <div class="ct"> <!-- Optional h...")
 
Line 1: Line 1:
<noinclude><!-- Template:ContentTemplate --></noinclude>
+
<!-- Based on: https://hoi4.paradoxwikis.com/Template:MainTemplate -->{{HeaderTemplate|welcome={{{welcome}}}|blurb={{{blurb}}}}}
<!-- Minimal wrapper for inner pages (guides, docs). Requires ParserFunctions. -->
+
<!-- LEFT COLUMN -->
<div class="ct">
+
{| width="100%" cellspacing="0" cellpadding="0" style="background:transparent;"
 +
|-
 +
| width="320px" style="vertical-align:top; padding-right:0.5em; float:left;" |
 +
<!-- Sections -->
 +
{{SectionTemplate|title={{{sections_title}}}|content={{{sections_content}}}}}
 +
| width="100%" style="vertical-align:top;" |
 +
<!-- Info about this site -->
 +
{{SectionTemplate|title={{{about_title}}}|content={{{about_content}}}}}
 +
{{SectionTemplate|title={{{featured_title}}}|content={{{featured_content}}}}}
 +
{{SectionTemplate|title={{{news_title}}}|content={{{news_content}}}}}
 +
| style="vertical-align:top;" |
 +
{{{image_content}}}
 +
|}
  
  <!-- Optional header -->
+
__NOTOC__
  {{#if:{{{title|}}}|
+
__NOEDITSECTION__
    <div class="ct-head">
+
<noinclude>[[Category:Templates]]</noinclude>
      {{#if:{{{icon|}}}|<span class="ct-icon">{{{icon}}}</span>}}
 
      <span class="ct-title">{{{title}}}</span>
 
      {{#if:{{{subtitle|}}}|<span class="ct-sub">{{{subtitle}}}</span>}}
 
    </div>
 
  }}
 
 
 
  <div class="ct-body {{#if:{{{sidebar|}}}|ct-has-sidebar|}}">
 
    <div class="ct-main">
 
      {{{content|''(No content provided.)''}}}
 
    </div>
 
 
 
    {{#if:{{{sidebar|}}}|
 
      <aside class="ct-sidebar">
 
        {{{sidebar}}}
 
      </aside>
 
    }}
 
  </div>
 
 
 
  {{#if:{{{footer|}}}|
 
    <div class="ct-foot">
 
      {{{footer}}}
 
    </div>
 
  }}
 
 
 
</div>
 
<noinclude>
 
== Usage ==
 
<pre>
 
{{ContentTemplate
 
| title    = Beginner’s Guide
 
| subtitle = An introductory guide for new players.
 
| icon    = 🪖
 
| content  =
 
Your full page wikitext goes here, including == headings ==, lists, tables, etc.
 
 
 
| sidebar  =
 
* [[Game Modes]]
 
* [[Classes:_Command|Classes]]
 
* [[Aiming]]
 
* [[Melee]]
 
* [[Organised Events]]
 
 
 
| footer  = Last updated: {{REVISIONDAY}} {{REVISIONMONTHNAME}} {{REVISIONYEAR}}
 
}}
 
</pre>
 
 
 
== Notes ==
 
* All parameters are optional.
 
* Wrap big blocks in nowiki only if you see parsing conflicts.
 
* Protect this template if lots of pages depend on it.
 
</noinclude>
 

Revision as of 09:09, 17 September 2025

{{{welcome}}}

{{{blurb}}}

{{{sections_title}}}

{{{sections_content}}}

{{{about_title}}}

{{{about_content}}}

{{{featured_title}}}

{{{featured_content}}}

{{{news_title}}}

{{{news_content}}}

{{{image_content}}}