Template:Collapsible section: Difference between revisions
Template page
More actions
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]]< |
[[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.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Visible heading | title | A short label explaining what the reader can expand.
| String | suggested |
| Optional content | content | The notes or list to reveal. Normal wikitext is allowed. | Content | suggested |
| Start expanded? | open | Use yes to show the content initially, or no to start collapsed.
| String | optional |