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) Unify archive styling and navigation; improve template forms and upload guidance |
||
| 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> |
|||
</noinclude> |
|||
Revision as of 20:39, 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 |