Template:Collapsed toc/doc: Difference between revisions

From HIBIKIFORUM
Jump to navigation Jump to search
(Created page with "{{Documentation subpage}} This template is for page <nowiki>__TOC__</nowiki> (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 we...")
 
mNo edit summary
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
{{Uses TemplateStyles|Template:Collapsed toc/styles.css}}


This template is for page <nowiki>__TOC__</nowiki> (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.
This template is for page <nowiki>__TOC__</nowiki> (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.

Revision as of 22:19, 26 June 2023

Light bulb.png }}
It contains usage information, categories and other content that is not part of the original template page.

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.

Template parameters

ParameterDescriptionTypeStatus
No parameters specified