Template:CategoryTOC: Difference between revisions
(Created page with "<includeonly><table id="cattoc" class="{{{style|wikitable}}} plainlinks" style="margin-left:auto; margin-right:auto;"><tr><td>'''Contents:'''<!-- -->{{#ifeq:{{{top|1}}}|1|&nbs...") |
mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly><table id="cattoc" class="{{{ | <includeonly><table id="cattoc" class="{{{class|wikitable}}} plainlinks" style="margin-left:auto; margin-right:auto;"><tr><td>'''Contents:'''<!-- | ||
-->{{#ifeq:{{{top|1}}}|1| [{{fullurl:{{FULLPAGENAME}}}} Top]}}<!-- | -->{{#ifeq:{{{top|1}}}|1| [{{fullurl:{{FULLPAGENAME}}}} Top]}}<!-- | ||
-->{{#ifeq:{{{numerals|group}}}|group| '''·''' [{{fullurl:{{FULLPAGENAME}}|from=0}} 0–9]}}<!-- | -->{{#ifeq:{{{numerals|group}}}|group| '''·''' [{{fullurl:{{FULLPAGENAME}}|from=0}} 0–9]}}<!-- |
Revision as of 14:00, 27 April 2022
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: · 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}}
Documentation transcluded from Template:CategoryTOC/doc.
Editors can experiment in this template's sandbox (create)
Editors can experiment in this template's sandbox (create)