Template:CatAutoTOC: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>BrownHairedGirl
(tweak)
m (24 revisions imported)
 
(21 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly><!--
<includeonly><!--
   # TOC, depending on category size
   # TOC, depending on category size
   # < 100 pages = no TOC
   # <= 100 pages no TOC
   # 100–1200 pages = {{Category TOC}}
   # 101–1200 pages {{Category TOC}}
   # > 1200 pages = {{Large category TOC}}
   # > 1200 pages {{Large category TOC}}
-->{{#ifexpr: {{PAGESINCATEGORY|{{PAGENAME}}|R}} > 1200 <!--
-->{{Category other|<!--
      -->|<!--
        #################################################################################
            # > 1200, so large TOC
        #### This is a category page, so generate a TOC if needed.                  ####
          -->{{Large category TOC}}<!--
        ####                                                                        ####
          -->[[Category:CatAutoToc generates Large category TOC]]<!--
        #### Use a sub-template [[Template:CatAutoTOC/core]], so that we never have  ####
      -->|<!--
        #### more than one call to the [[WP:EXPENSIVE]] function {{PAGESINCATEGORY}} ####
            # < 1200, so check again
        #################################################################################
          -->{{#ifexpr: {{PAGESINCATEGORY|{{PAGENAME}}|R}} > 100<!--
    -->{{CatAutoTOC/core<!--
              -->|<!--
        -->|pagecount={{PAGESINCATEGORY:{{#invoke:HTMLDecode | HTMLDecode | text={{PAGENAME}} }}|R}}<!--
                    # > 100, so std TOC
        -->|align    = {{{align|}}}<!--
                  -->{{Category TOC}}<!--
        -->|top      = {{{top|}}}<!--
                  -->[[Category:CatAutoToc generates standard Category TOC]]<!--
        -->|numerals  = {{{numerals|}}}<!--
               -->|<!--
        -->|uppercase = {{{uppercase|}}}<!--
                    # < 100, so no TOC
        -->|lowercase = {{{lowercase|}}}<!--
                  -->[[Category:CatAutoToc generates no TOC]]<!--
    -->}}<!--
          -->}}<!--
-->}}<!--
-->{{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>
-->}}</includeonly><noinclude>
{{Documentation}}
{{Documentation}}
[[Category:Wikipedia CatAutoTOC]]
</noinclude>
</noinclude>

Latest revision as of 00:52, 3 September 2020