Editing Template:Category TOC/doc
From MINR.ORG WIKI
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | {{Documentation subpage | + | {{Documentation subpage}} |
− | <!-- | + | <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> |
− | |||
− | == Usage == | + | ==Usage== |
− | This template adds a | + | 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. |
− | <pre | + | <pre>{{Category TOC |
− | {{Category TOC | + | | top = yes / no |
− | + | | numerals = separate / group / no | |
− | | top = | + | | uppercase = yes / no |
− | | numerals = | + | | lowercase = yes / no |
− | | uppercase = | ||
− | | lowercase = | ||
}}</pre> | }}</pre> | ||
− | + | ==Parameters== | |
− | + | *''top'' - specifies whether a link to the top of the category is included. Default is '''yes'''. | |
− | *''top'' | + | *''numerals'' - specifies whether numerals are included: |
− | *''numerals'' | ||
− | |||
**'''separate''': each numeral 0,1,...,9 has a separate link. | **'''separate''': each numeral 0,1,...,9 has a separate link. | ||
+ | **'''group''' (default): there is one link for 0-9. | ||
**'''no''': no link. | **'''no''': no link. | ||
− | *''uppercase'' | + | *''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== |
*{{tl2|Category TOC}} | *{{tl2|Category TOC}} | ||
{{Category TOC}} | {{Category TOC}} | ||
− | *{{tl2|Category TOC | + | *{{tl2|Category A-Z TOC}} or {{tl2|Category TOC|numerals{{=}}no}} |
− | + | {{CatAZ}} | |
− | + | *{{tl2|Category TOC numeric}} or {{tl2|Category TOC|numerals{{=}}separate|uppercase{{=}}no}} | |
− | {{Category TOC | + | {{Category TOC numeric}} |
− | + | *{{tl2|Category TOC lower case}} or {{tl2|Category TOC|uppercase{{=}}no|lowercase{{=}}yes}} | |
− | {{Category TOC | + | {{Category TOC lower case}} |
− | *{{tl2|Category TOC | + | *{{tl2|Category TOC numerals}} or {{tl2|Category TOC|numerals{{=}}separate}} |
− | + | {{Category TOC numerals}} | |
− | |||
− | {{Category TOC | ||
− | *{{tl2|Category TOC | ||
− | |||
− | |||
− | {{Category TOC | ||
==See also== | ==See also== | ||
− | |||
* [[:Template:Category TOC (non-Latin)]] | * [[:Template:Category TOC (non-Latin)]] | ||
+ | * [[:Template:Category year TOC]] | ||
* [[:Template:Collapsible large category TOC]] | * [[:Template:Collapsible large category TOC]] | ||
* [[:Template:Large category TOC]] | * [[:Template:Large category TOC]] | ||
* [[:Template:Large category TOC 2]] | * [[:Template:Large category TOC 2]] | ||
− | * [[:Template: | + | * [[:Template:Category TOC ATC]] |
− | + | ||
+ | <includeonly> | ||
+ | <!--Categories--> | ||
+ | [[Category:Wikipedia category table of contents templates|{{PAGENAME}}]] | ||
+ | [[Category:Category namespace templates|{{PAGENAME}}]] | ||
+ | |||
+ | <!--Other languages--> | ||
− | + | </includeonly> | |
− | |||
− | |||
− | |||
− |