Predloga:CatAutoTOC/dok

Iz Wikipedije, proste enciklopedije

Adds a Table of Contents (TOC) to a category page if the category's size warrants it.

The size thresholds are:

  1. <= 100 pages → brez TOC
  2. 101–1200 pages → {{Kategorija TOC}}
  3. > 1200 pages → {{TOC Obsežna kategorija}}

Usage[uredi kodo]

{{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[uredi kodo]

CatAutoToc učinek Strani %
Brez TOC 3.395 89,01 %
standardna {{Kategorija TOC}} 326 8,55 %
{{TOC Obsežna kategorija}} 93 2,44 %
Skupaj 3.814
Za osvežitev tabele Osvežite stran

Vsaka stran, ki uporablja to predlogo je kategorizirana v eno izmed treh sledilnih kategorij:

Predloge, ki vključujejo {{CatAutoTOC}} so kategorizirane v

... ampak le če so vključene izven označevalcev <noinclude></noinclude>

Za osvežitev skupnih podatkov Osvežite to stran

Bugi[uredi kodo]

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:

The category should contain only pages labelled as "empty". Osveži to stran za sovežitev zneska

Glej tudi[uredi kodo]