Difference between revisions of "Template:ContentTemplateModernInline"

From Holdfast: Nations At War
Jump to navigation Jump to search
Line 35: Line 35:
 
     {{#if:{{{about_content|}}}|{{SectionTemplate|title={{{about_title|About}}}|content={{{about_content}}}}}|}}<nowiki/><!--trim-->
 
     {{#if:{{{about_content|}}}|{{SectionTemplate|title={{{about_title|About}}}|content={{{about_content}}}}}|}}<nowiki/><!--trim-->
  
     <!-- Featured: explicit content or auto /Body if it exists -->
+
     <!-- Featured: explicit content; OR auto-/Body only when opt-in -->
    {{#if:{{{featured_content|}}}
+
{{#ifeq:{{{auto_featured|no}}}|yes|
      | {{SectionTemplate|title={{{featured_title|Featured}}}|content={{{featured_content}}}}}
+
  {{#if:{{{featured_content|}}}
      | {{#ifexist:{{FULLPAGENAME}}/Body
+
    | {{SectionTemplate|title={{{featured_title|Featured}}}|content={{{featured_content}}}}}
          | {{SectionTemplate|title={{{featured_title|Featured}}}|content={{:{{FULLPAGENAME}}/Body}} }}
+
    | {{#ifexist:{{FULLPAGENAME}}/Body
        }}
+
        | {{#if:{{:{{FULLPAGENAME}}/Body}}|
     }}<nowiki/><!--trim-->
+
            {{SectionTemplate|title={{{featured_title|Featured}}}|content={{:{{FULLPAGENAME}}/Body}}}}
 +
          }}
 +
      }}
 +
  }}
 +
| {{#if:{{{featured_content|}}}|
 +
     {{SectionTemplate|title={{{featured_title|Featured}}}|content={{{featured_content}}}}}
 +
  |  <!-- nothing -->
 +
  }}
 +
}}
 +
 
  
 
     {{#if:{{{news_content|}}}|{{SectionTemplate|title={{{news_title|News}}}|content={{{news_content}}}}}|}}<nowiki/><!--trim-->
 
     {{#if:{{{news_content|}}}|{{SectionTemplate|title={{{news_title|News}}}|content={{{news_content}}}}}|}}<nowiki/><!--trim-->
Line 88: Line 97:
 
     {{#if:{{{about_content|}}}|{{SectionTemplate|title={{{about_title|About}}}|content={{{about_content}}}}}|}}<nowiki/><!--trim-->
 
     {{#if:{{{about_content|}}}|{{SectionTemplate|title={{{about_title|About}}}|content={{{about_content}}}}}|}}<nowiki/><!--trim-->
  
     <!-- Featured: explicit content or auto /Body if it exists -->
+
     <!-- Featured: explicit content; OR auto-/Body only when opt-in -->
    {{#if:{{{featured_content|}}}
+
{{#ifeq:{{{auto_featured|no}}}|yes|
      | {{SectionTemplate|title={{{featured_title|Featured}}}|content={{{featured_content}}}}}
+
  {{#if:{{{featured_content|}}}
      | {{#ifexist:{{FULLPAGENAME}}/Body
+
    | {{SectionTemplate|title={{{featured_title|Featured}}}|content={{{featured_content}}}}}
          | {{SectionTemplate|title={{{featured_title|Featured}}}|content={{:{{FULLPAGENAME}}/Body}} }}
+
    | {{#ifexist:{{FULLPAGENAME}}/Body
        }}
+
        | {{#if:{{:{{FULLPAGENAME}}/Body}}|
     }}<nowiki/><!--trim-->
+
            {{SectionTemplate|title={{{featured_title|Featured}}}|content={{:{{FULLPAGENAME}}/Body}}}}
 +
          }}
 +
      }}
 +
  }}
 +
| {{#if:{{{featured_content|}}}|
 +
     {{SectionTemplate|title={{{featured_title|Featured}}}|content={{{featured_content}}}}}
 +
  |  <!-- nothing -->
 +
  }}
 +
}}
 +
 
  
 
     {{#if:{{{news_content|}}}|{{SectionTemplate|title={{{news_title|News}}}|content={{{news_content}}}}}|}}<nowiki/><!--trim-->
 
     {{#if:{{{news_content|}}}|{{SectionTemplate|title={{{news_title|News}}}|content={{{news_content}}}}}|}}<nowiki/><!--trim-->

Revision as of 20:25, 18 September 2025

Navigation menu