Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Usage  





2 Alternatives  





3 Limitations  





4 See also  














Template:TOC hidden






العربية

Basa Bali

Banjar
 / Bân-lâm-gú
Беларуская
Català
فارسی
Føroyskt
Français
Հայերեն
Bahasa Indonesia
Íslenska
Italiano

ि

Нохчийн
ି
Oʻzbekcha / ўзбекча

Polski
Português
Română
Русский
Simple English
Српски / srpski
Svenska
 


Тоҷикӣ
Türkçe
Українська

 

Edit links
 









Template
Talk
 

















Read
View source
View history
 








Tools
   


Actions  



Read
View source
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 




In other projects  



Meta-Wiki
 
















Appearance
   

 





Permanently protected template

From Wikipedia, the free encyclopedia
 


Contents

This template can't be used in articles, it will not function when placed in one.

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 view 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}}

Alternatives

The necessity of this template is often disputed, so apply it with consideration. A suggested alternative is: {{TOC limit}}. Another alternative, for no table of contents at all, is the magic word __NOTOC__.

Limitations

Since the Vector 2022 skin forces the table of contents into a sidebar or a pop-up menu, this template does not control the placement of the TOC in that skin.

See also


Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:TOC_hidden&oldid=1096822471"

Category: 
Wikipedia table of contents templates
Hidden category: 
Wikipedia semi-protected templates
 



This page was last edited on 6 July 2022, at 21:18 (UTC).

Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki