Difference between revisions of "Template:Category TOC/doc"

From MINR.ORG WIKI
m (updating instructions)
m (60 revisions imported: Imported Category TOC from wikipedia)
 
(54 intermediate revisions by 37 users not shown)
Line 1: Line 1:
{{Documentation subpage}}
+
{{Documentation subpage}}{{shortcut|WP:CATTOC}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
+
<!--Categories where indicated at the bottom of this page, please; interwikis at Wikidata (see [[Wikipedia:Wikidata]])-->
 +
{{High-use| 62,500+ }}
  
=== Usage ===
+
== Usage ==
This template adds a table of contents to a category page. It should ''only'' be added to category pages. There are no parameters, simply add the following to the text on the category page:
+
This template adds a [[table of contents]] (TOC) to a [[Wikipedia:Categorization|category]] page. It should ''only'' be added to category pages and should not be used for categories containing less than 200 pages.
* '''{{tnull|CategoryTOC}}'''
+
<pre style="overflow:auto;">
 +
{{Category TOC
 +
| align    = <!-- left (default) / center / right -->
 +
| top      = <!-- yes (default) / no -->
 +
| numerals  = <!-- group (default) / separate / no -->
 +
| uppercase = <!-- yes (default) / group / no -->
 +
| lowercase = <!-- yes / group / no (default) -->
 +
}}</pre>
  
=== See also ===  
+
===Parameters===
* [[:Template:CatAZ]]
+
*''align''&nbsp;– specifies the position. Default is '''left'''.
* [[:Template:CategoryTOC (Non-Latin)]]
+
*''top''&nbsp;– specifies whether a link to the top of the category is included. Default is '''yes'''.
* [[:Template:CategoryTOC-Numeric]]
+
*''numerals''&nbsp;– specifies whether numerals are included:
* [[:Template:CategoryTOClc]]
+
**'''group''' (default): there is one link for 0–9.
* [[:Template:CategoryYearTOC]]
+
**'''separate''': each numeral 0,1,...,9 has a separate link.
* [[:Template:CollapsibleLargeCategoryTOC]]
+
**'''no''': no link.
* [[:Template:LargeCategoryTOC]]
+
*''uppercase''&nbsp;– specifies whether uppercase letters are included:
* [[:Template:LargeCategoryTOC2]]
+
** '''yes''' (default): each letter A,B,...,Z has a separate link.
<includeonly>
+
** '''group''': there is one link for A-Z.
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
+
** '''no''': there is no link for uppercase letters.
<!--Categories-->
+
*''lowercase''&nbsp;– specifies whether lowercase letters are included:
[[Category:TOC templates|{{PAGENAME}}]]
+
** '''yes''': each letter a,b,...,z has a separate link.
[[Category:Category namespace templates|{{PAGENAME}}]]
+
** '''group''': there is one link for a-z.
<!--Other languages-->
+
** '''no''' (default): there is no link for lowercase letters.
[[af:Template:CategoryTOC]]
+
 
[[ar:قالب:فهرس تصنيف]]
+
==Examples==
[[ast:Template:CategoryTOC]]
+
*{{tl2|Category TOC}}
[[ca:Template:CategoryTOC]]
+
{{Category TOC}}
[[cy:Template:CategoryTOC]]
+
*{{tl2|Category TOC|align{{=}}center}}
[[de:Vorlage:CategoryTOC]]
+
{{Category TOC|align=center}}
[[el:Πρότυπο:CategoryTOC]]
+
*{{tl2|Category TOC|numerals{{=}}no}}
[[eo:Ŝablono:TOCcat]]
+
{{Category TOC|numerals=no}}
[[es:Plantilla:CategoryTOC]]
+
*{{tl2|Category TOC|uppercase{{=}}no|lowercase{{=}}yes}}
[[et:Template:CategoryTOC]]
+
{{Category TOC|uppercase=no|lowercase=yes}}
[[fa:الگو:فهرست رده]]
+
*{{tl2|Category TOC|numerals{{=}}separate}}
[[fi:Template:CategoryTOC]]
+
{{Category TOC|numerals=separate}}
[[fr:Template:Sommaire compact catégorie]]
+
*{{tl2|Category TOC|numerals{{=}}separate|uppercase{{=}}no}}
[[fy:Template:CategoryTOC]]
+
{{Category TOC|numerals=separate|uppercase=no}}
[[hr:Template:CategoryTOC]]
+
*{{tl2|Category TOC|numerals{{=}}separate|uppercase{{=}}group}}
[[hu:Sablon:CatAZ]]
+
{{Category TOC|numerals=separate|uppercase=group}}
[[id:Template:CategoryTOC]]
+
*{{tl2|Category TOC|uppercase{{=}}group|lowercase{{=}}group}}
[[io:Template:CategoryTOC]]
+
{{Category TOC|uppercase=group|lowercase=group}}
[[is:Template:CategoryTOC]]
+
 
[[ja:Template:CategoryTOC]]
+
==See also==
[[ko:틀:분류 목차]]
+
* [[:Template:Category TOC ATC]]
[[ku:Template:CategoryTOC]]
+
* [[:Template:Category TOC (non-Latin)]]
[[la:Template:CategoryTOC]]
+
* [[:Template:Collapsible large category TOC]]
[[lb:Template:CategoryTOC]]
+
* [[:Template:Large category TOC]]
[[lt:Template:CategoryTOC]]
+
* [[:Template:Large category TOC 2]]
[[lv:Template:CategoryTOC]]
+
* [[:Template:Large category TOC numeric]]
[[mk:Шаблон:Категориски азбучник]]
+
* [[:Template:Compact ToC]] (for articles)
[[nn:Template:CategoryTOC]]
+
 
[[no:Mal:KategoriTOC]]
+
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
[[oc:Template:CategoryTOC]]
+
<!--Categories below this line, please; interwikis at Wikidata-->
[[pl:Template:CategoryTOC]]
+
[[Category:Wikipedia category table of contents templates]]
[[pt:Predefinição:Índice cat]]
+
[[Category:Category namespace templates]]
[[ro:Format:TOCcat]]
+
}}</includeonly>
[[ru:Template:CategoryTOC]]
 
[[simple:Template:CategoryTOC]]
 
[[sk:Template:CategoryTOC]]
 
[[sl:Template:CategoryTOC]]
 
[[sq:Stampa:CategoryTOC1]]
 
[[su:Template:CategoryTOC]]
 
[[sv:Mall:KategoriTOC]]
 
[[tr:Template:CategoryTOC]]
 
[[tt:Template:CategoryTOC]]
 
[[uk:Шаблон:CategoryTOC]]
 
[[vi:Tiêu bản:Mục lục thể loại]]
 
[[wa:Template:CategoryTOC]]
 
</includeonly>
 

Latest revision as of 18:55, 11 August 2017

Template:MboxLua error: expandTemplate: template "No redirect" does not exist.

Usage[edit]

This template adds a table of contents (TOC) to a category page. It should only be added to category pages and should not be used for categories containing less than 200 pages.

{{Category TOC
 | align     = <!-- left (default) / center / right -->
 | top       = <!-- yes (default) / no -->
 | numerals  = <!-- group (default) / separate / no -->
 | uppercase = <!-- yes (default) / group / no -->
 | lowercase = <!-- yes / group / no (default) -->
}}

Parameters[edit]

  • align – specifies the position. Default is left.
  • top – specifies whether a link to the top of the category is included. Default is yes.
  • numerals – specifies whether numerals are included:
    • group (default): there is one link for 0–9.
    • separate: each numeral 0,1,...,9 has a separate link.
    • no: no link.
  • uppercase – specifies whether uppercase letters are included:
    • yes (default): each letter A,B,...,Z has a separate link.
    • group: there is one link for A-Z.
    • no: there is no link for uppercase letters.
  • lowercase – specifies whether lowercase letters are included:
    • yes: each letter a,b,...,z has a separate link.
    • group: there is one link for a-z.
    • no (default): there is no link for lowercase letters.

Examples[edit]

See also[edit]