Difference between revisions of "Category:CatAutoTOC"
Jump to navigation
Jump to search
test>BrownHairedGirl (Don't categorise /doc, /testcases or /sandbox pages) |
test>BrownHairedGirl (As tested in Template:CatAutoTOC/sandbox: use a sub-template Template:CatAutoTOC/core, so that we never have more than one call to the WP:EXPENSIVE function {{PAGESINCATEGORY}}) |
||
| 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. #### | |
| − | + | #### #### | |
| − | + | #### Use a sub-template [[Template:CatAutoTOC/core]], so that we never have #### | |
| − | + | #### more than one call to the [[WP:EXPENSIVE]] function {{PAGESINCATEGORY}} #### | |
| − | + | ################################################################################# | |
| − | + | -->{{CatAutoTOC/core<!-- | |
| − | + | -->|pagecount={{PAGESINCATEGORY|{{PAGENAME}}|R}}<!-- | |
| − | + | -->}}<!-- | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
-->}}<!-- | -->}}<!-- | ||
| − | -->{{Template other|<!-- | + | -->{{Template other<!-- |
| − | -->{{#if: {{Str endswith|{{PAGENAME}}|/doc}}{{Str endswith|{{PAGENAME}}|/testcases}}{{Str endswith|{{PAGENAME}}|/sandbox}}<!-- | + | -->|<!-- |
| − | + | ################################################################################# | |
| − | + | #### 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]] | [[Category:Wikipedia CatAutoTOC]] | ||
</noinclude> | </noinclude> | ||
Revision as of 14:34, 15 March 2020
Documentation[create]
This category currently contains no pages or media.