Difference between revisions of "Template:MainTemplateModern"

From Holdfast: Nations At War
Jump to navigation Jump to search
Line 64: Line 64:
  
  
<!-- RIGHT / Image or custom (optional) -->
+
<!-- RIGHT / Image + Tools (optional, both can render) -->
{{#if:{{{image_content|}}}|
+
{{#if:{{{image_content|}}}{{{show_tools|}}}|
 
<aside class="hf-right" role="complementary">
 
<aside class="hf-right" role="complementary">
<div class="hf-card hf-right-card">
+
  {{#if:{{{image_content|}}}|
{{{image_content|}}}
+
  <div class="hf-card hf-right-card">
 +
    {{{image_content|}}}
 +
  </div>
 +
  }}
 +
 
 +
  {{#ifeq:{{{show_tools|no}}}|yes|
 +
  <div class="hf-card hf-right-card" id="edit-tools">
 +
    {{SectionTemplate
 +
      | title  = {{{tools_title|Edit Tools}}}
 +
      | content =
 +
<div class="hf-chiprow">
 +
  <span class="hf-chip">Body</span>
 
</div>
 
</div>
 +
<div class="plainlinks">
 +
  {{#ifexist:{{FULLPAGENAME}}/Body
 +
    | <ul>
 +
        <li>[{{fullurl:{{FULLPAGENAME}}/Body|veaction=edit}} Edit body (VE)]</li>
 +
        <li>[{{fullurl:{{FULLPAGENAME}}/Body|action=edit}} Edit body (source)]</li>
 +
        <li>[{{fullurl:{{FULLPAGENAME}}/Body|action=history}} Body history]</li>
 +
        <li>Last body edit: [[User:{{REVISIONUSER:{{FULLPAGENAME}}/Body}}|{{REVISIONUSER:{{FULLPAGENAME}}/Body}}]] — {{#time:Y-m-d H:i \\U\\T\\C|{{REVISIONTIMESTAMP:{{FULLPAGENAME}}/Body}}}}</li>
 +
      </ul>
 +
    | <ul>
 +
        <li>[{{fullurl:{{FULLPAGENAME}}/Body|action=edit}} Create body]</li>
 +
      </ul>
 +
  }}
 +
</div>
 +
    }}
 +
  </div>
 +
  }}
 
</aside>
 
</aside>
 
}}
 
}}

Revision as of 16:58, 23 September 2025



<templatestyles src="MainTemplateModern/styles.css"/>





<main class="hf-center" role="main">




</main>