Template:Collapsible section/doc: Difference between revisions
More actions
DivošiRunner (talk | contribs) Add curated lore navigation and document native disclosures and template previews |
DivošiRunner (talk | contribs) Add curated lore navigation and document native disclosures and template previews |
||
| Line 10: | Line 10: | ||
* <code>content</code>: wikitext to reveal; use headings, paragraphs, lists and links as usual. |
* <code>content</code>: wikitext to reveal; use headings, paragraphs, lists and links as usual. |
||
* <code>open=yes</code>: start expanded. Omit it or use <code>open=no</code> to start collapsed. |
* <code>open=yes</code>: start expanded. Omit it or use <code>open=no</code> to start collapsed. |
||
When a table or other content contains a literal pipe, escape it with <code><nowiki>{{!}}</nowiki></code> inside the template parameter, including the table’s opening pipe. For very large tables, the native <code><nowiki><details></nowiki></code> and <code><nowiki><summary></nowiki></code> tags can be used directly. |
|||
== Example == |
== Example == |
||
Latest revision as of 14:32, 5 October 2026
Use this template for supplementary notes or a long optional list. Keep the article’s main explanation and document-status banner visible. It uses a native disclosure, supports keyboard activation, and needs no JavaScript to open.
{{Collapsible section
|title=Background notes
|content=Additional information and links.
|open=no
}}
title: visible label; defaults to “More information”.content: wikitext to reveal; use headings, paragraphs, lists and links as usual.open=yes: start expanded. Omit it or useopen=noto start collapsed.
When a table or other content contains a literal pipe, escape it with {{!}} inside the template parameter, including the table’s opening pipe. For very large tables, the native <details> and <summary> tags can be used directly.
Example
Example: additional notes
This example can be opened by mouse or keyboard. Read the editing guide.
Avoid folding essential information, primary navigation or a spoiler without a clear label. The extension automatically adds pages with disclosures to Category:Pages using Details parser tag. Test images, lists and mobile layout before saving.