Template:CatAutoTOC: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
m (Moving from Category:Wikipedia CatAutoToc to Category:Wikipedia CatAutoTOC using Cat-a-lot) |
m (26 revisions imported from wikipedia:Template:CatAutoTOC) |
||
(16 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 |
# <= 100 pages → no TOC |
||
# |
# 101–1200 pages → {{Category TOC}} |
||
# > 1200 pages |
# > 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. #### |
|||
⚫ | |||
#### #### |
|||
#### 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}} #### |
|||
⚫ | |||
################################################################################# |
|||
⚫ | |||
-->{{CatAutoTOC/core<!-- |
|||
# < 1200, so check again |
|||
-->|pagecount={{PAGESINCATEGORY:{{#invoke:HTMLDecode | HTMLDecode | text={{PAGENAME}} }}|R}}<!-- |
|||
-->|align = {{{align|}}}<!-- |
|||
-->|top = {{{top|}}}<!-- |
|||
-->|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<!-- |
||
-->|<!-- |
|||
################################################################################# |
|||
#### 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 |
|||
⚫ | |||
⚫ | |||
-->}}</includeonly><noinclude> |
-->}}</includeonly><noinclude> |
||
{{Documentation}} |
{{Documentation}} |