Template:CatAutoTOC: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>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}}
meta>BrownHairedGirl
The TOC templates don't help navigate subcats, so count only pages, not subcats: pagecount={{PAGESINCATEGORY:{{PAGENAME}}|pages|R}}
Line 12: Line 12:
         #################################################################################
         #################################################################################
     -->{{CatAutoTOC/core<!--
     -->{{CatAutoTOC/core<!--
         -->|pagecount={{PAGESINCATEGORY|{{PAGENAME}}|R}}<!--
         -->|pagecount={{PAGESINCATEGORY:{{PAGENAME}}|pages|R}}<!--
     -->}}<!--
     -->}}<!--
-->}}<!--
-->}}<!--

Revision as of 16:17, 19 March 2020