Template:CatAutoTOC/core and Template:CatAutoTOC/core/sandbox: Difference between pages

From HandWiki
(Difference between pages)
Page 1
Page 2
imported>Jworkorg
No edit summary
 
imported>Jworkorg
m (1 revision imported)
 
Line 3: Line 3:
   #
   #
   # TOC, depending on category size
   # TOC, depending on category size
   # <= 100 pages no TOC
   # < 100 pages = no TOC
   # 101–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<!--
         -->{{Large category TOC}}<!--
            -->|CatAutoTOC=yes<!--
         -->[[Category:CatAutoTOC generates Large category TOC]]<!--
            -->|pagecount={{{pagecount}}}<!--
        -->}}<!--
         --> <!--
     -->|<!--
     -->|<!--
           # < 1200, so check again
           # < 1200, so check again
         -->{{#ifexpr: {{{pagecount}}} > 100<!--
         -->{{#ifexpr: {{{pagecount}}} >= 100<!--
             -->|<!--
             -->|<!--
                 # > 100, so std TOC
                 # >= 100, so std TOC
                 -->{{Category TOC<!--
                 -->{{Category TOC<!--
                    -->|pagecount={{{pagecount}}}<!--
                    -->|CatAutoTOC=yes<!--
                     -->|align    = {{#if: {{{align|}}} | {{{align}}} |left}}<!--
                     -->|align    = {{#if: {{{align|}}} | {{{align}}} |left}}<!--
                     -->|top      = {{#if: {{{top|}}} | {{{top}}} |yes}}<!--
                     -->|top      = {{#if: {{{top|}}} | {{{top}}} |yes}}<!--
Line 34: Line 23:
                     -->|lowercase = {{#if: {{{lowercase|}}} | {{{lowercase}}} |no}}<!--
                     -->|lowercase = {{#if: {{{lowercase|}}} | {{{lowercase}}} |no}}<!--
                 -->}}<!--
                 -->}}<!--
                 --> <!--
                 -->[[Category:CatAutoTOC generates standard Category TOC]]<!--
             -->|<!--
             -->|<!--
                 # <= 100, so no TOC
                 # < 100, so no TOC
                 --> <!--
                 -->[[Category:CatAutoTOC generates no TOC]]<!--
         -->}}<!--
         -->}}<!--
-->}}<!--
-->{{#ifeq: {{{pagecount}}} | 0 <!--
    -->| <!--
  -->}}<!--
  -->}}<!--
--></includeonly><noinclude>
--></includeonly><noinclude>
{{Documentation|Template:{{ROOTPAGENAME}}/doc}}
{{Documentation|Template:{{ROOTPAGENAME}}/doc}}
[[Category:Wikipedia CatAutoTOC]]
</noinclude>
</noinclude>