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== | ||
+ | This template adds a [[table of contents]] (TOC) to a [[Wikipedia:Categorization|category]] page. It should ''only'' be added to category pages. In general, it should not be used for categories containing less than 200 total pages. | ||
− | |||
− | |||
<pre style="overflow:auto;"> | <pre style="overflow:auto;"> | ||
{{Category TOC | {{Category TOC | ||
Line 10: | Line 10: | ||
| top = <!-- yes (default) / no --> | | top = <!-- yes (default) / no --> | ||
| numerals = <!-- group (default) / separate / no --> | | numerals = <!-- group (default) / separate / no --> | ||
− | | uppercase = <!-- yes (default) | + | | uppercase = <!-- yes (default) / no --> |
− | | lowercase = <!-- yes | + | | lowercase = <!-- yes / no (default) --> |
}}</pre> | }}</pre> | ||
− | + | ==Parameters== | |
− | *''align'' | + | *''align'' - specifies the position. Default is '''left'''. |
− | *''top'' | + | *''top'' - specifies whether a link to the top of the category is included. Default is '''yes'''. |
− | *''numerals'' | + | *''numerals'' - specifies whether numerals are included: |
− | **'''group''' (default): there is one link for | + | **'''group''' (default): there is one link for 0-9. |
**'''separate''': each numeral 0,1,...,9 has a separate link. | **'''separate''': each numeral 0,1,...,9 has a separate link. | ||
**'''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'''. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
==Examples== | ==Examples== | ||
*{{tl2|Category TOC}} | *{{tl2|Category TOC}} | ||
{{Category TOC}} | {{Category TOC}} | ||
− | |||
− | |||
*{{tl2|Category TOC|numerals{{=}}no}} | *{{tl2|Category TOC|numerals{{=}}no}} | ||
{{Category TOC|numerals=no}} | {{Category TOC|numerals=no}} | ||
Line 43: | Line 35: | ||
*{{tl2|Category TOC|numerals{{=}}separate|uppercase{{=}}no}} | *{{tl2|Category TOC|numerals{{=}}separate|uppercase{{=}}no}} | ||
{{Category TOC|numerals=separate|uppercase=no}} | {{Category TOC|numerals=separate|uppercase=no}} | ||
− | |||
− | |||
− | |||
− | |||
==See also== | ==See also== | ||
Line 55: | Line 43: | ||
* [[:Template:Large category TOC 2]] | * [[:Template:Large category TOC 2]] | ||
* [[:Template:Large category TOC numeric]] | * [[:Template:Large category TOC numeric]] | ||
− | |||
− | <includeonly> | + | <includeonly> |
− | <!--Categories | + | <!--Categories--> |
[[Category:Wikipedia category table of contents templates]] | [[Category:Wikipedia category table of contents templates]] | ||
[[Category:Category namespace templates]] | [[Category:Category namespace templates]] | ||
− | + | ||
+ | <!--Other languages--> | ||
+ | [[fa:الگو:فهرست مندرجات رده]] | ||
+ | [[fr:Modèle:Boîte des catégories]] | ||
+ | [[ur:سانچہ:فہرست زمرہ]] | ||
+ | </includeonly> |