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
 
(2 intermediate revisions by the same user not shown)
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.
Line 19: Line 20:


<!-- Categories below this line, please -->
<!-- Categories below this line, please -->
[[Category:Templates]]
[[Category:General use templates]]
[[Category:General Use Templates]]
[[Category:CD page templates]]
[[Category:Seiyuu page templates]]
}}}}</includeonly>
}}}}</includeonly>

Latest revision as of 02:36, 20 August 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