Template:Category TOC/doc: Difference between revisions
(Created page with '{{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> === Usage === This template adds a table of contents (TOC) to a category page.…') |
m (remove { from template) |
||
Line 27: | Line 27: | ||
*{{tl2|CategoryTOC-Numeric}} or {{tl2|CategoryTOC|numerals{{=}}separate|uppercase{{=}}no}} | *{{tl2|CategoryTOC-Numeric}} or {{tl2|CategoryTOC|numerals{{=}}separate|uppercase{{=}}no}} | ||
{{CategoryTOC-Numeric}} | {{CategoryTOC-Numeric}} | ||
* | *tl2| ategoryTOClc or {{tl2|CategoryTOC|uppercase{{=}}no|lowercase{{=}}yes}} | ||
CategoryTOClc | |||
*{{tl2|CategoryTOCnum}} or {{tl2|CategoryTOC|numerals{{=}}separate}} | *{{tl2|CategoryTOCnum}} or {{tl2|CategoryTOC|numerals{{=}}separate}} | ||
{{CategoryTOCnum}} | {{CategoryTOCnum}} |
Revision as of 12:02, 10 January 2019
![]() |
This is a documentation subpage for Template:Category TOC (see that page for the template itself). It contains usage information, categories and other content that is not part of the original template page. |
Usage[edit source]
This template adds a table of contents (TOC) to a category page. It should only be added to category pages. It is generally not used for categories containing less than 500 total pages.
{{CategoryTOC | top = yes / no | numerals = separate / group / no | uppercase = yes / no | lowercase = yes / no }}
Parameters[edit source]
- top - specifies whether a link to the top of the category is included. Default is yes.
- numerals - specifies whether numerals are included:
- separate: each numeral 0,1,...,9 has a separate link.
- group (default): there is one link for 0-9.
- no: no link.
- uppercase - specifies whether there is a link for each uppercase letter A,B,...,Z. Default is yes.
- lowercase - specifies whether there is a link for each lowercase letter a,b,...,z. Default is no.
Common variants[edit source]
- {{CategoryTOC{{{2}}}{{{3}}}}}
- {{CatAZ{{{2}}}{{{3}}}}} or {{CategoryTOC{{{3}}}}}
- {{CategoryTOC-Numeric{{{2}}}{{{3}}}}} or {{CategoryTOC}}
- tl2| ategoryTOClc or {{CategoryTOC}}
CategoryTOClc
- {{CategoryTOCnum{{{2}}}{{{3}}}}} or {{CategoryTOC{{{3}}}}}
See also[edit source]
- Template:CategoryTOC (Non-Latin)
- Template:CategoryYearTOC
- Template:CollapsibleLargeCategoryTOC
- Template:LargeCategoryTOC
- Template:LargeCategoryTOC2