Difference between revisions of "Template:ContentTemplateModernInline"

From Holdfast: Nations At War
Jump to navigation Jump to search
Line 47: Line 47:
 
{{#ifeq:{{{show_toc|no}}}|yes||__NOTOC__}}
 
{{#ifeq:{{{show_toc|no}}}|yes||__NOTOC__}}
 
{{#ifeq:{{{show_section_edit|no}}}|yes||__NOEDITSECTION__}}
 
{{#ifeq:{{{show_section_edit|no}}}|yes||__NOEDITSECTION__}}
 
<!-- VisualEditor TemplateData -->
 
<templatedata>
 
{
 
  "description": "Modern inline, 2–3 column content layout for Holdfast wiki (no site CSS required).",
 
  "params": {
 
    "welcome": {
 
      "label": "Welcome headline",
 
      "description": "Big page header text",
 
      "type": "string",
 
      "suggested": true
 
    },
 
    "blurb": {
 
      "label": "Blurb",
 
      "description": "Tagline under the header",
 
      "type": "string"
 
    },
 
    "sections_title": {
 
      "label": "Sidebar title",
 
      "type": "string",
 
      "default": "On this page"
 
    },
 
    "sections_content": {
 
      "label": "Sidebar links",
 
      "description": "Bulleted list using * and ** (no leading spaces).",
 
      "type": "string",
 
      "suggested": true
 
    },
 
    "about_title": {
 
      "label": "About: title",
 
      "type": "string",
 
      "default": "About"
 
    },
 
    "about_content": {
 
      "label": "About: content",
 
      "type": "content"
 
    },
 
    "featured_title": {
 
      "label": "Featured: title",
 
      "type": "string",
 
      "default": "Featured"
 
    },
 
    "featured_content": {
 
      "label": "Main content",
 
      "description": "The page body (headings, paragraphs, lists).",
 
      "type": "content",
 
      "suggested": true
 
    },
 
    "news_title": {
 
      "label": "News: title",
 
      "type": "string",
 
      "default": "News"
 
    },
 
    "news_content": {
 
      "label": "News: content",
 
      "type": "content"
 
    },
 
    "image_content": {
 
      "label": "Right column content",
 
      "description": "Optional image/thumb or extra block.",
 
      "type": "content"
 
    },
 
    "layout": {
 
      "label": "Layout",
 
      "description": "auto = 3-column flex; stack = vertical.",
 
      "type": "string",
 
      "default": "auto",
 
      "example": "auto|stack"
 
    },
 
    "two_col": {
 
      "label": "Force two columns",
 
      "description": "yes = hide right column even if image_content is set.",
 
      "type": "string",
 
      "default": "no",
 
      "example": "yes|no"
 
    },
 
    "left_width": {
 
      "label": "Left column width",
 
      "type": "string",
 
      "default": "320px"
 
    },
 
    "aside_width": {
 
      "label": "Right column width",
 
      "type": "string",
 
      "default": "320px"
 
    },
 
    "gap": {
 
      "label": "Column gap",
 
      "type": "string",
 
      "default": "1rem"
 
    },
 
    "pullup": {
 
      "label": "Top gap compensation",
 
      "description": "Adjust if you still see a white strip under the header.",
 
      "type": "string",
 
      "default": "0.8em"
 
    },
 
    "show_toc": {
 
      "label": "Show Table of Contents",
 
      "type": "string",
 
      "default": "no",
 
      "example": "yes|no"
 
    },
 
    "show_section_edit": {
 
      "label": "Show section edit links",
 
      "type": "string",
 
      "default": "no",
 
      "example": "yes|no"
 
    }
 
  }
 
}
 
</templatedata>
 
  
 
<noinclude>[[Category:Templates]]</noinclude>
 
<noinclude>[[Category:Templates]]</noinclude>
 +
<noinclude>{{Documentation}}</noinclude>

Revision as of 09:57, 18 September 2025



Navigation menu