Template:Collapsed toc: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (Minor cleanup of the table code) |
||
Line 1: | Line 1: | ||
<templatestyles src="Collapsed toc/styles.css" /> | <templatestyles src="Collapsed toc/styles.css" /> | ||
{| class="toctable mw-collapsible mw-collapsed" | {| class="toctable mw-collapsible mw-collapsed" | ||
! style="text-align: center; font-size: 96%; padding: 10px;" | '''Contents''' | |||
|- | |- | ||
| __TOC__ | | __TOC__ |
Revision as of 20:40, 23 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 |