Difference between revisions of "Template:ContentTemplateModernInline"
Jump to navigation
Jump to search
| Line 2: | Line 2: | ||
{{HeaderTemplate|welcome={{{welcome|}}}|blurb={{{blurb|}}}}} | {{HeaderTemplate|welcome={{{welcome|}}}|blurb={{{blurb|}}}}} | ||
| − | {{#ifeq:{{{show_toc| | + | {{#ifeq:{{{show_toc|}}}|yes|__TOC__|}}<nowiki/><!--trim--> |
<!-- Inline edit chips (off by default; set |show_tools=yes to show) --> | <!-- Inline edit chips (off by default; set |show_tools=yes to show) --> | ||
| Line 25: | Line 25: | ||
<div class="cpage__main" role="main" style="margin-bottom:{{{gap|1rem}}};"> | <div class="cpage__main" role="main" style="margin-bottom:{{{gap|1rem}}};"> | ||
| − | {{#if:{{{about_content|}}}|{{SectionTemplate|title={{{about_title|About}}}|content={{{about_content}}}}}|}}<nowiki/><!--trim--> | + | {{#if:{{#titleparts:{{{about_content|}}}|1}}|{{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 if it exists --> | ||
| − | {{#if:{{{featured_content|}}} | + | {{#if:{{#titleparts:{{{featured_content|}}}|1}} |
| {{SectionTemplate|title={{{featured_title|Featured}}}|content={{{featured_content}}}}} | | {{SectionTemplate|title={{{featured_title|Featured}}}|content={{{featured_content}}}}} | ||
| {{#ifexist:{{FULLPAGENAME}}/Body | | {{#ifexist:{{FULLPAGENAME}}/Body | ||
| Line 35: | Line 35: | ||
}}<nowiki/><!--trim--> | }}<nowiki/><!--trim--> | ||
| − | {{#if:{{{news_content|}}}|{{SectionTemplate|title={{{news_title|News}}}|content={{{news_content}}}}}|}}<nowiki/><!--trim--> | + | {{#if:{{#titleparts:{{{news_content|}}}|1}}|{{SectionTemplate|title={{{news_title|News}}}|content={{{news_content}}}}}|}}<nowiki/><!--trim--> |
</div> | </div> | ||
| Line 69: | Line 69: | ||
<div class="cpage__main" role="main" style="flex:1 1 auto;min-width:0;"> | <div class="cpage__main" role="main" style="flex:1 1 auto;min-width:0;"> | ||
| − | {{#if:{{{about_content|}}}|{{SectionTemplate|title={{{about_title|About}}}|content={{{about_content}}}}}|}}<nowiki/><!--trim--> | + | {{#if:{{#titleparts:{{{about_content|}}}|1}}|{{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 if it exists --> | ||
| − | {{#if:{{{featured_content|}}} | + | {{#if:{{#titleparts:{{{featured_content|}}}|1}} |
| {{SectionTemplate|title={{{featured_title|Featured}}}|content={{{featured_content}}}}} | | {{SectionTemplate|title={{{featured_title|Featured}}}|content={{{featured_content}}}}} | ||
| {{#ifexist:{{FULLPAGENAME}}/Body | | {{#ifexist:{{FULLPAGENAME}}/Body | ||
| Line 79: | Line 79: | ||
}}<nowiki/><!--trim--> | }}<nowiki/><!--trim--> | ||
| − | {{#if:{{{news_content|}}}|{{SectionTemplate|title={{{news_title|News}}}|content={{{news_content}}}}}|}}<nowiki/><!--trim--> | + | {{#if:{{#titleparts:{{{news_content|}}}|1}}|{{SectionTemplate|title={{{news_title|News}}}|content={{{news_content}}}}}|}}<nowiki/><!--trim--> |
</div> | </div> | ||
Revision as of 20:13, 18 September 2025