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 Why does this template cause the table of contents to be hidden?  
5 comments  













Template talk:Culture of Peru




Page contents not supported in other languages.  









Template
Talk
 

















Read
Edit
Add topic
View history
 








Tools
   


Actions  



Read
Edit
Add topic
View history
 




General  



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




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 


Why does this template cause the table of contents to be hidden?[edit]

(copied from Wikipedia:Help desk#Why does this template cause the table of contents to be hidden?)

I noticed that Peruvian cuisine has no table of contents despite having more than 4 sections and not containing __NOTOC__ in the markup, per WP:TOC. I found that removing Template:Culture of Peru from the article causes the table of contents to appear. Can anyone tell me why this template hides the table of contents? Rublov (talk) 16:20, 30 June 2021 (UTC)[reply]

The table of contents, by default, appears before the first section header. Since the template contains a section header (====== Recent ======) in the history section, the table of contents ends up inside the template, and thus invisible unless you expand the template. * Pppery * it has begun... 16:22, 30 June 2021 (UTC)[reply]
Pppery, should that be considered a bug in the template? Rublov (talk) 16:42, 30 June 2021 (UTC)[reply]
Rublov, I have replaced the heading format in the template and it seems to have resolved the TOC issue. It might be worth copying this discussion to the template talk page. TSventon (talk) 17:15, 30 June 2021 (UTC)[reply]
TSventon, thank you. I will do so. Rublov (talk) 17:19, 30 June 2021 (UTC)[reply]

Retrieved from "https://en.wikipedia.org/w/index.php?title=Template_talk:Culture_of_Peru&oldid=1229534147"

Categories: 
Template-Class culture articles
NA-importance culture articles
WikiProject Culture articles
Template-Class Peru articles
NA-importance Peru articles
 



This page was last edited on 17 June 2024, at 10:03 (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