Jump to content

Template:Automatic category TOC: Difference between revisions

From cernipedia
m 37 revisions imported from wikipedia:Template:Automatic_category_TOC
 
(2 intermediate revisions by 2 users not shown)
Line 5: Line 5:
   # > 1200 pages → {{Large category TOC}}
   # > 1200 pages → {{Large category TOC}}
-->{{Category other|<!--
-->{{Category other|<!--
        #################################################################################
#######################################################################
        #### This is a category page, so generate a TOC if needed.                   ####
#### This is a category page, so generate a TOC if needed.         ####
        ####                                                                         ####
####                                                               ####
        #### Use a sub-template [[Template:CatAutoTOC/core]], so that we never have ####
#### Use a sub-template [[Template:Automatic category TOC/core]],  ####
        #### more than one call to the [[WP:EXPENSIVE]] function {{PAGESINCATEGORY}} ####
#### so that we never have more than one call to the               ####
        #################################################################################
#### [[WP:EXPENSIVE]] function {{PAGESINCATEGORY}}                 ####
     -->{{CatAutoTOC/core<!--
#######################################################################
     -->{{Automatic category TOC/core<!--
         -->|pagecount={{PAGESINCATEGORY:{{#invoke:HTMLDecode | HTMLDecode | text={{PAGENAME}} }}|R}}<!--
         -->|pagecount={{PAGESINCATEGORY:{{#invoke:HTMLDecode | HTMLDecode | text={{PAGENAME}} }}|R}}<!--
         -->|align    = {{{align|}}}<!--
         -->|align    = {{{align|}}}<!--
Line 17: Line 18:
         -->|numerals  = {{{numerals|}}}<!--
         -->|numerals  = {{{numerals|}}}<!--
         -->|uppercase = {{{uppercase|}}}<!--
         -->|uppercase = {{{uppercase|}}}<!--
         -->|lowercase = {{{lowercase|}}}<!--  
         -->|lowercase = {{{lowercase|}}}<!--
     -->}}<!--
     -->}}<!--
-->}}<!--
-->}}<!--
-->{{Template other<!--
-->{{Template other<!--
     -->|<!--
     -->|<!--
        #################################################################################
#######################################################################
        #### This page is a template, so categorise it                               ####
#### This page is a template, so categorise it                     ####
        #### in [[Category:Templates using CatAutoTOC]] ...                         ####
#### in [[Category:Templates using Automatic category TOC]] ...   ####
        ####                                                                         ####
####                                                               ####
        #### ... unless it is a /doc, /testcases or /sandbox                         ####
#### ... unless it is a /doc, /testcases or /sandbox               ####
        ####                                                                         ####
####                                                               ####
        #### There is no point categorising every sub-page of the same template      ####
#### 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}}<!--
         -->{{#if: {{Str endswith|{{PAGENAME}}|/doc}}{{Str endswith|{{PAGENAME}}|/testcases}}{{Str endswith|{{PAGENAME}}|/sandbox}}<!--
         -->|<!--
         -->|<!--
Line 35: Line 37:
         -->|<!--
         -->|<!--
               ### Not a /doc, /testcases or /sandbox page, so categorise it
               ### Not a /doc, /testcases or /sandbox page, so categorise it
             -->[[Category:Templates using CatAutoTOC]]<!--
             -->[[Category:Templates using Automatic category TOC]]<!--
     -->}}<!--
     -->}}<!--
-->}}</includeonly><noinclude>
-->}}</includeonly><noinclude>

Latest revision as of 13:13, 19 November 2026