Template:CatAutoTOC/core: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>BrownHairedGirl
meta>BrownHairedGirl
add the sort key {{PAGENAME}} to all the tracking categories, to override any {{DEFAULTSORT}} used in the category
Line 6: Line 6:
   # 100–1200 pages = {{Category TOC}}
   # 100–1200 pages = {{Category TOC}}
   # > 1200 pages = {{Large category TOC}}
   # > 1200 pages = {{Large category TOC}}
###########################################################################
# NOTE: The sort key {{PAGENAME}} is used on all the tracking categories  #
#      to override any {{DEFAULTSORT}} used in the category              #
###########################################################################
  -->{{#ifexpr: {{{pagecount}}} > 1200 <!--
  -->{{#ifexpr: {{{pagecount}}} > 1200 <!--
     -->|<!--
     -->|<!--
           # > 1200, so large TOC
           # > 1200, so large TOC
         -->{{Large category TOC|CatAutoTOC=yes}}<!--
         -->{{Large category TOC|CatAutoTOC=yes}}<!--
         -->[[Category:CatAutoTOC generates Large category TOC]]<!--
         -->[[Category:CatAutoTOC generates Large category TOC|{{PAGENAME}}]]<!--
     -->|<!--
     -->|<!--
           # < 1200, so check again
           # < 1200, so check again
Line 17: Line 23:
                 # >= 100, so std TOC
                 # >= 100, so std TOC
                 -->{{Category TOC|CatAutoTOC=yes}}<!--
                 -->{{Category TOC|CatAutoTOC=yes}}<!--
                 -->[[Category:CatAutoTOC generates standard Category TOC]]<!--
                 -->[[Category:CatAutoTOC generates standard Category TOC|{{PAGENAME}}]]<!--
             -->|<!--
             -->|<!--
                 # < 100, so no TOC
                 # < 100, so no TOC
                 -->[[Category:CatAutoTOC generates no TOC]]<!--
                 -->[[Category:CatAutoTOC generates no TOC|{{PAGENAME}}]]<!--
         -->}}<!--
         -->}}<!--
  -->}}<!--
  -->}}<!--
  -->{{#ifeq: {{{pagecount}}} | 0 <!--
  -->{{#ifeq: {{{pagecount}}} | 0 <!--
     -->|[[Category:CatAutoTOC on pages where PAGESINCATEGORY returns zero]]<!--
     -->|[[Category:CatAutoTOC on pages where PAGESINCATEGORY returns zero|{{PAGENAME}}]]<!--
  -->}}<!--
  -->}}<!--
--></includeonly><noinclude>
--></includeonly><noinclude>

Revision as of 15:18, 6 April 2020