From Wikipedia, the free encyclopedia
WikiProject icon Culture Template‑class
WikiProject iconThis template is within the scope of WikiProject Culture, a collaborative effort to improve the coverage of culture on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
TemplateThis template does not require a rating on Wikipedia's content assessment scale.
WikiProject icon Peru Template‑class
WikiProject iconThis template is supported by WikiProject Peru. This project provides a central approach to Peru-related subjects on Wikipedia. Please participate by editing the article, and help us assess and improve articles to good and 1.0 standards, or visit the wikiproject page for more details.
TemplateThis template does not require a rating on Wikipedia's content assessment scale.
WikiProject Peru To-do:

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

(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