Template:CatAutoTOC: Difference between revisions

From The Goon Show Depository

m (1 revision imported)
en>Mclay1
(Mclay1 moved page Template:CatAutoTOC to Template:Auto category TOC: clearer name in line with other TOC templates)
Line 1: Line 1:
<includeonly><!--
#REDIRECT [[Template:Auto category TOC]]
  # TOC, depending on category size
 
  # <= 100 pages → no TOC
{{Redirect category shell|
  # 101–1200 pages → {{Category TOC}}
{{R from move}}
  # > 1200 pages → {{Large category TOC}}
}}
-->{{Category other|<!--
        #################################################################################
        #### This is a category page, so generate a TOC if needed.                  ####
        ####                                                                        ####
        #### Use a sub-template [[Template:CatAutoTOC/core]], so that we never have  ####
        #### more than one call to the [[WP:EXPENSIVE]] function {{PAGESINCATEGORY}} ####
        #################################################################################
    -->{{CatAutoTOC/core<!--
        -->|pagecount={{PAGESINCATEGORY:{{#invoke:HTMLDecode | HTMLDecode | text={{PAGENAME}} }}|R}}<!--
        -->|align    = {{{align|}}}<!--
        -->|top      = {{{top|}}}<!--
        -->|numerals  = {{{numerals|}}}<!--
        -->|uppercase = {{{uppercase|}}}<!--
        -->|lowercase = {{{lowercase|}}}<!--
    -->}}<!--
-->}}<!--
-->{{Template other<!--
    -->|<!--
        #################################################################################
        #### This page is a template, so categorise it                              ####
        #### in [[Category:Templates using CatAutoTOC]] ...                          ####
        ####                                                                        ####
        #### ... unless it is a /doc, /testcases or /sandbox                        ####
        ####                                                                        ####
        #### There is no point categorising every sub-page of the same template      ####
        #################################################################################
        -->{{#if: {{Str endswith|{{PAGENAME}}|/doc}}{{Str endswith|{{PAGENAME}}|/testcases}}{{Str endswith|{{PAGENAME}}|/sandbox}}<!--
        -->|<!--
              ### Don't categorise /doc, /testcases or /sandbox pages
        -->|<!--
              ### Not a /doc, /testcases or /sandbox page, so categorise it
            -->[[Category:Templates using CatAutoTOC]]<!--
    -->}}<!--
-->}}</includeonly><noinclude>
{{Documentation}}
[[Category:Wikipedia CatAutoTOC]]
</noinclude>

Revision as of 03:58, 6 March 2023