Jump to content
Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Collapsible section: Difference between revisions

Template page
Content deleted Content added
DivošiRunner (talk | contribs)
Add curated lore navigation and document native disclosures and template previews
 
DivošiRunner (talk | contribs)
Polish the homepage and public search/link previews; keep template metadata scoped
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
{{{content|}}}
{{{content|}}}
</div>|class=wiki-disclosure|open={{#ifeq:{{{open|no}}}|yes|yes|no}}}}</includeonly><noinclude>Reusable native disclosure for optional supplementary content. See [[Template:Collapsible section/doc|documentation]].
</div>|class=wiki-disclosure|open={{#ifeq:{{{open|no}}}|yes|yes|no}}}}</includeonly><noinclude>Reusable native disclosure for optional supplementary content. See [[Template:Collapsible section/doc|documentation]].
[[Category:Templates]]</noinclude>
[[Category:Templates]]<templatedata>{
"description": "An expandable block for optional notes. Keep essential content outside it.",
"params": {
"title": {
"label": "Visible heading",
"description": "A short label explaining what the reader can expand.",
"type": "string",
"default": "More information",
"suggested": true
},
"content": {
"label": "Optional content",
"description": "The notes or list to reveal. Normal wikitext is allowed.",
"type": "content",
"suggested": true
},
"open": {
"label": "Start expanded?",
"description": "Use yes to show the content initially, or no to start collapsed.",
"type": "string",
"default": "no",
"suggestedvalues": [
"no",
"yes"
]
}
},
"paramOrder": [
"title",
"content",
"open"
],
"format": "block"
}</templatedata>

{{Page metadata|page=Template:Collapsible section|description=A reusable collapsible section for supplementary page content, with a title and an optional open state.}}
</noinclude>

Latest revision as of 21:11, 27 October 2026

Reusable native disclosure for optional supplementary content. See documentation.

An expandable block for optional notes. Keep essential content outside it.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Visible headingtitle

A short label explaining what the reader can expand.

Default
More information
Stringsuggested
Optional contentcontent

The notes or list to reveal. Normal wikitext is allowed.

Contentsuggested
Start expanded?open

Use yes to show the content initially, or no to start collapsed.

Suggested values
no yes
Default
no
Stringoptional