Template:CatAutoTOC/core: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>BrownHairedGirl
add the sort key {{PAGENAME}} to all the tracking categories, to override any {{DEFAULTSORT}} used in the category
meta>BrownHairedGirl
tweak thresholds: >100, and >1200
Line 3: Line 3:
   #
   #
   # TOC, depending on category size
   # TOC, depending on category size
   # < 100 pages = no TOC
   # <= 100 pages = no TOC
   # 100–1200 pages = {{Category TOC}}
   # 100–1200 pages = {{Category TOC}}
   # > 1200 pages = {{Large category TOC}}
   # > 1200 pages = {{Large category TOC}}
Line 19: Line 19:
     -->|<!--
     -->|<!--
           # < 1200, so check again
           # < 1200, so check again
         -->{{#ifexpr: {{{pagecount}}} >= 100<!--
         -->{{#ifexpr: {{{pagecount}}} > 100<!--
             -->|<!--
             -->|<!--
                 # >= 100, so std TOC
                 # > 100, so std TOC
                 -->{{Category TOC|CatAutoTOC=yes}}<!--
                 -->{{Category TOC|CatAutoTOC=yes}}<!--
                 -->[[Category:CatAutoTOC generates standard Category TOC|{{PAGENAME}}]]<!--
                 -->[[Category:CatAutoTOC generates standard Category TOC|{{PAGENAME}}]]<!--
             -->|<!--
             -->|<!--
                 # < 100, so no TOC
                 # <= 100, so no TOC
                 -->[[Category:CatAutoTOC generates no TOC|{{PAGENAME}}]]<!--
                 -->[[Category:CatAutoTOC generates no TOC|{{PAGENAME}}]]<!--
         -->}}<!--
         -->}}<!--

Revision as of 02:49, 7 April 2020