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="mw-collapsible mw-collapsed wikitable" data-expandtext="{{int:show}}" data-collapsetext="{{int:hide}}" | {| class="mw-collapsible mw-collapsed wikitable" data-expandtext="{{int:show}}" data-collapsetext="{{int:hide}}" | ||
! style="background-color:# | ! style="background-color:#f8f9fa"| Contents | ||
|- | |- | ||
| __TOC__ | | __TOC__ |
Revision as of 22:14, 26 June 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 |