Template:CategoryTOC/doc: Difference between revisions
(see also) |
m (Automated Formatting) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Documentation subpage}}The {{tlx|CategoryTOC}} template adds a table of contents to a category page. It should only be used on category pages. It is generally not used on categories with less than 500 pages. | |||
__TOC__ | __TOC__ | ||
Line 11: | Line 11: | ||
|- | |- | ||
| <code>class</code> | | <code>class</code> | ||
| Specifies the css table class as defined in [[MediaWiki:Common.css]]. | | Specifies the css table class as defined in [[MediaWiki:Common.css]]. | ||
;Suggested values: <code>wikitable</code> <code> | ;Suggested values: <code>wikitable</code> <code>wikitable theme-red</code> | ||
;Default: <code>wikitable</code> | ;Default: <code>wikitable</code> | ||
| string | | string | ||
Line 56: | Line 56: | ||
{{CategoryTOC}} | {{CategoryTOC}} | ||
----- | ----- | ||
<pre>{{CategoryTOC|class= | <pre>{{CategoryTOC|class=wikitable theme-red}}</pre> | ||
;Displays: | ;Displays: | ||
{{CategoryTOC|class= | {{CategoryTOC|class=wikitable theme-red}} | ||
----- | ----- | ||
<pre>{{CategoryTOC|numerals=no|uppercase=no|lowercase=yes}}</pre> | <pre>{{CategoryTOC|numerals=no|uppercase=no|lowercase=yes}}</pre> | ||
Line 68: | Line 68: | ||
{{CategoryTOC|numerals=separate|uppercase=no|lowercase=no}} | {{CategoryTOC|numerals=separate|uppercase=no|lowercase=no}} | ||
----- | ----- | ||
<pre>{{CategoryTOC|class= | <pre>{{CategoryTOC|class=wikitable theme-red|top=yes|numerals=separate|uppercase=yes|lowercase=yes}}</pre> | ||
;Displays: | ;Displays: | ||
{{CategoryTOC|class= | {{CategoryTOC|class=wikitable theme-red|top=yes|numerals=separate|uppercase=yes|lowercase=yes}} | ||
==See also== | ==See also== | ||
*{{ | *{{tll|toc}} | ||
Latest revision as of 13:49, 14 April 2024
This is a documentation subpage for Template:CategoryTOC.
It contains usage information and other content that is not part of the original template page. |
The {{CategoryTOC}}
template adds a table of contents to a category page. It should only be used on category pages. It is generally not used on categories with less than 500 pages.
Parameters
Parameter | Description | Type | Status |
---|---|---|---|
class
|
Specifies the css table class as defined in MediaWiki:Common.css.
|
string | optional |
top
|
Specifies whether a link to the top of the category is included.
|
string | optional |
numerals
|
Specifies whether and how numerals are included.
|
string | optional |
uppercase
|
Specifies whether there is a link for each uppercase letter A,B,...,Z.
|
string | optional |
lowercase
|
Specifies whether there is a link for each lowercase letter a,b,...,z
|
string | optional |
Examples
{{CategoryTOC}}
- Displays
Contents: Top · 0–9 · A B C D E F G H I J K L M N O P Q R S T U V W X Y Z |
{{CategoryTOC|class=wikitable theme-red}}
- Displays
Contents: Top · 0–9 · A B C D E F G H I J K L M N O P Q R S T U V W X Y Z |
{{CategoryTOC|numerals=no|uppercase=no|lowercase=yes}}
- Displays
Contents: Top · a b c d e f g h i j k l m n o p q r s t u v w x y z |
{{CategoryTOC|numerals=no|uppercase=no|lowercase=no}}
- Displays
Contents: Top · 0 1 2 3 4 5 6 7 8 9 |
{{CategoryTOC|class=wikitable theme-red|top=yes|numerals=separate|uppercase=yes|lowercase=yes}}
- Displays
Contents: Top · 0 1 2 3 4 5 6 7 8 9 · A B C D E F G H I J K L M N O P Q R S T U V W X Y Z · a b c d e f g h i j k l m n o p q r s t u v w x y z |
See also
{{toc}}