Template:CatAutoTOC: Difference between revisions

m
26 revisions imported from wikipedia:Template:CatAutoTOC
(blank line above the TOC template, if one used)
m (26 revisions imported from wikipedia:Template:CatAutoTOC)
 
(13 intermediate revisions by 3 users not shown)
Line 1:
<includeonly><!--
# TOC, depending on category size
# <= 100 pages = no TOC
# 100–1200101–1200 pages = {{Category TOC}}
# > 1200 pages = {{Large category TOC}}
-->{{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 ####
-->
#### more than one call to the [[WP:EXPENSIVE]] function {{PAGESINCATEGORY}} ####
<!-- -->{{Large category TOC}}<!--
#################################################################################
-->[[Category:CatAutoTOC generates Large category TOC]]<!--
-->|{{CatAutoTOC/core<!--
-->|pagecount={{PAGESINCATEGORY:{{#invoke:HTMLDecode | HTMLDecode | text={{PAGENAME}} }}|R}}<!--
# < 1200, so check again
-->|align = -->{{#ifexpr: {{PAGESINCATEGORYalign|{{PAGENAME}}|R}} > 100<!--
-->|top = -->{{{top|}}}<!--
-->|numerals = {{{numerals|}}}<!--
# > 100, so std TOC
-->|uppercase = {{{uppercase|}}}<!-->
<!-- -->|lowercase = {{Category TOC{lowercase|}}}<!--
-->}}<!--
-->[[Category:CatAutoTOC generates standard Category TOC]]<!--
-->|<!--
# < 100, so no TOC
-->[[Category:CatAutoTOC generates no TOC]]<!--
-->}}<!--
-->}}<!--
-->}}<!--
-->{{Template other|<!--
-->[[Category:Templates using CatAutoTOC]]|<!--
#################################################################################
#### 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:CatAutoTOCTemplates generatesusing Large category TOCCatAutoTOC]]<!--
-->}}<!--
-->}}</includeonly><noinclude>
{{Documentation}}