Template:TOC hidden/doc

From RCS Wiki
< Template:TOC hidden
Revision as of 14:15, 23 December 2017 by SiteAdmin (talk | contribs) (Created page with "{{Documentation subpage}} <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> ==Purpose of this template== This template is for page <nowiki>__TOC__</nowiki> (Table Of Conte...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

{{#ifeq:doc |doc


{{#ifeq:show |show

         | Template:Mbox
        }}{{#if: |
         |   {{#ifexist:Template:TOC hidden
                  | [[Category:{{#switch:Template |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]]

Purpose of this template

This template is for page __TOC__ (Table Of Contents) code to go into a collapsible box that has [show]/[hide] functionality with the default being that the box is collapsed (and the TOC hidden) thereby allowing for a single click on the [show] area for display. This provides editors an option to better pages with long TOCs so that the lead isn't by default occupied with a large amount of dead blank space. Place the template in the location where the TOC is to be displayed. Note that Show Preview will show the TOC; the page must first be saved before the TOC will be hidden.

Usage: - Place the following on the page: {{TOC hidden}}

Alternative: - The necessity of this template is often disputed, so apply it with consideration. A suggested alternative is: {{TOC limit}}.