Template:Collapsed toc: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<templatestyles src="Collapsed toc/styles.css" /> | <templatestyles src="Collapsed toc/styles.css" /> | ||
{| class="toctable mw-collapsible mw-collapsed" | |||
! style="text-align: center; font-size: 96%; padding-left: 10px; padding-right: 10px;" | '''Contents''' | |||
|- | |||
| __TOC__ | |||
|}<noinclude> | |||
{{Documentation}} | {{Documentation}} | ||
<!-- Add categories to the /doc subpage, not here! --> | <!-- Add categories to the /doc subpage, not here! --> | ||
</noinclude> | </noinclude> |
Latest revision as of 20:42, 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 |