Template:CatAutoTOC: Difference between revisions

Nothing to hide, but nothing to show you either.
Jump to navigation Jump to search
Content added Content deleted
(Don't categorise /doc pages)
m (26 revisions imported from wikipedia:Template:CatAutoTOC)
 
(11 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}}
-->{{Category other|<!--
-->{{Category other|<!--
#################################################################################
-->{{#ifexpr: {{PAGESINCATEGORY|{{PAGENAME}}|R}} > 1200 <!--
#### This is a category page, so generate a TOC if needed. ####
-->|<!--
# > 1200, so large TOC
#### ####
#### Use a sub-template [[Template:CatAutoTOC/core]], so that we never have ####
-->{{Large category TOC}}<!--
#### more than one call to the [[WP:EXPENSIVE]] function {{PAGESINCATEGORY}} ####
-->[[Category:CatAutoTOC generates Large category TOC]]<!--
#################################################################################
-->|<!--
-->{{CatAutoTOC/core<!--
# < 1200, so check again
-->{{#ifexpr: {{PAGESINCATEGORY|{{PAGENAME}}|R}} > 100<!--
-->|pagecount={{PAGESINCATEGORY:{{#invoke:HTMLDecode | HTMLDecode | text={{PAGENAME}} }}|R}}<!--
-->|<!--
-->|align = {{{align|}}}<!--
# > 100, so std TOC
-->|top = {{{top|}}}<!--
-->{{Category TOC}}<!--
-->|numerals = {{{numerals|}}}<!--
-->|uppercase = {{{uppercase|}}}<!--
-->[[Category:CatAutoTOC generates standard Category TOC]]<!--
-->|<!--
-->|lowercase = {{{lowercase|}}}<!--
-->}}<!--
# < 100, so no TOC
-->[[Category:CatAutoTOC generates no TOC]]<!--
-->}}<!--
-->}}<!--
-->}}<!--
-->}}<!--
-->{{Template other|<!--
-->{{Template other<!--
-->{{#if: {{Str endswith|{{PAGENAME}}|/doc}}<!--
-->|<!--
#################################################################################
-->|<!--
#### This page is a template, so categorise it ####
### Don't categorise /doc pages
#### in [[Category:Templates using CatAutoTOC]] ... ####
-->|<!--
#### ####
### Not a /doc page, so categorise it
#### ... unless it is a /doc, /testcases or /sandbox ####
-->[[Category:Templates using CatAutoTOC]]<!--
#### ####
-->}}<!--
#### 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}}

Latest revision as of 11:05, 22 June 2021