Template:Collapsed toc: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
<templatestyles src="Collapsed toc/styles.css" /> | <templatestyles src="Collapsed toc/styles.css" /> | ||
{| class=" | {| class="toctable mw-collapsible mw-collapsed" data-expandtext="{{int:show}}" data-collapsetext="{{int:hide}}" | ||
! | ! '''Contents''' | ||
|- | |- | ||
| __TOC__ | | __TOC__ |
Revision as of 19:43, 16 September 2023
Contents |
---|
This template uses TemplateStyles: |
This template is for page __TOC__ (Table Of Contents) code to go into a collapsible table that has [show]/[hide] functionality with the default being that the table is collapsed (and the TOC hidden) thereby allowing for a single click on the [show] area for display. This should help remove a lot of dead space at the beginning of pages that use infoboxes.
Place the template after the Infobox to avoid pushing it down as well when the TOC is expanded.
Usage
Place {{Collapsed toc}} after the Infobox and before the first header section on the page.
TemplateData
Places the page TOC in a collapsed table on page load.
Parameter | Description | Type | Status | |||
---|---|---|---|---|---|---|
No parameters specified |