Predloga:CatAutoTOC
Adds a Table of Contents (TOC) to a category page if the category's size warrants it.
The size thresholds are:
- <= 100 pages → brez TOC
- 101–1200 pages → {{Kategorija TOC}}
- > 1200 pages → {{TOC Obsežna kategorija}}
Usage
{{CatAutoTOC}}
Predloga nima parametrov.
Na straneh kategorij, lahko vključite {{CatAutoTOC}} tja kamor želite, da se izpiše TOC.
V glavah kategorij, ja najbprimernejše mesto izven označevalcev <includeonly></includeonly>, taka da se predloga lahko kategorizira avtomatsko kot CatAutoToc.
Sledilne kategorije
| CatAutoToc učinek | Strani | % |
|---|---|---|
| Brez TOC | 3.479 | 90,43 % |
| standardna {{Kategorija TOC}} | 318 | 8,27 % |
| {{TOC Obsežna kategorija}} | 50 | 1,30 % |
| Skupaj | 3.847 | |
Vsaka stran, ki uporablja to predlogo je kategorizirana v eno izmed treh sledilnih kategorij:
- Kategorija:CatAutoTOC brez TOC
- Kategorija:CatAutoTOC generira standardno Kategorija TOC
- Kategorija:CatAutoTOC generira TOC Obsežna kategorija
Predloge, ki vključujejo {{CatAutoTOC}} so kategorizirane v
- Kategorija:Predloge, ki uporabljajo CatAutoTOC (se nahajajo v: 11)
... ampak le če so vključene izven označevalcev <noinclude></noinclude>
Bugi
This template uses the magic word {{PAGESINCATEGORY}} to count the number of pages in the category. Unfortunately, this function can return wildly erroneous results on some categories which have had many pages added and removed.
This bug is well-known, and has been documented in several places since 2010, including:
In the overwhelming majority of categories, the count is recorded accurately enough to support use of this template. However, as of 1 April 2002, there seems to be some issue with {{PAGESINCATEGORY}} falsely returning zero in some cases. This is now tracked in:
- Kategorija:CatAutoTOC na straneh kjer PAGESINCATEGORY vrne nič (population: 716)
The category should contain only pages labelled as "empty". Osveži to stran za sovežitev zneska
Glej tudi
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.









