Difference between revisions of "Template:Category TOC"

From MINR.ORG WIKI
(description and instructions)
(Replacing hyphen with en-dash per editprotected on talk, also replacing documentation with {{Documentation}}; /doc page will be created momentarily with what documentation was removed... etc.)
Line 1: Line 1:
<noinclude>{{pp-template}}</noinclude>
+
<noinclude>{{pp-template|small=yes}}</noinclude>
 
{| id="toc" class="toc plainlinks" summary="Contents" align="center"
 
{| id="toc" class="toc plainlinks" summary="Contents" align="center"
 
! {{MediaWiki:Toc}}&nbsp;&nbsp;
 
! {{MediaWiki:Toc}}&nbsp;&nbsp;
| [{{fullurl:{{FULLPAGENAME}}}} Top]&nbsp;&nbsp;'''·'''&nbsp; [{{fullurl:{{FULLPAGENAME}}|from=0}} 0-9]&nbsp;&nbsp;'''·'''&nbsp; [{{fullurl:{{FULLPAGENAME}}|from=A}} A] [{{fullurl:{{FULLPAGENAME}}|from=B}} B] [{{fullurl:{{FULLPAGENAME}}|from=C}} C] [{{fullurl:{{FULLPAGENAME}}|from=D}} D] [{{fullurl:{{FULLPAGENAME}}|from=E}} E] [{{fullurl:{{FULLPAGENAME}}|from=F}} F] [{{fullurl:{{FULLPAGENAME}}|from=G}} G] [{{fullurl:{{FULLPAGENAME}}|from=H}} H] [{{fullurl:{{FULLPAGENAME}}|from=I}} I] [{{fullurl:{{FULLPAGENAME}}|from=J}} J] [{{fullurl:{{FULLPAGENAME}}|from=K}} K] [{{fullurl:{{FULLPAGENAME}}|from=L}} L] [{{fullurl:{{FULLPAGENAME}}|from=M}} M] [{{fullurl:{{FULLPAGENAME}}|from=N}} N] [{{fullurl:{{FULLPAGENAME}}|from=O}} O] [{{fullurl:{{FULLPAGENAME}}|from=P}} P] [{{fullurl:{{FULLPAGENAME}}|from=Q}} Q] [{{fullurl:{{FULLPAGENAME}}|from=R}} R] [{{fullurl:{{FULLPAGENAME}}|from=S}} S] [{{fullurl:{{FULLPAGENAME}}|from=T}} T] [{{fullurl:{{FULLPAGENAME}}|from=U}} U] [{{fullurl:{{FULLPAGENAME}}|from=V}} V] [{{fullurl:{{FULLPAGENAME}}|from=W}} W] [{{fullurl:{{FULLPAGENAME}}|from=X}} X] [{{fullurl:{{FULLPAGENAME}}|from=Y}} Y] [{{fullurl:{{FULLPAGENAME}}|from=Z}} Z]
+
| [{{fullurl:{{FULLPAGENAME}}}} Top]&nbsp;&nbsp;'''·'''&nbsp; [{{fullurl:{{FULLPAGENAME}}|from=0}} 0–9]&nbsp;&nbsp;'''·'''&nbsp; [{{fullurl:{{FULLPAGENAME}}|from=A}} A] [{{fullurl:{{FULLPAGENAME}}|from=B}} B] [{{fullurl:{{FULLPAGENAME}}|from=C}} C] [{{fullurl:{{FULLPAGENAME}}|from=D}} D] [{{fullurl:{{FULLPAGENAME}}|from=E}} E] [{{fullurl:{{FULLPAGENAME}}|from=F}} F] [{{fullurl:{{FULLPAGENAME}}|from=G}} G] [{{fullurl:{{FULLPAGENAME}}|from=H}} H] [{{fullurl:{{FULLPAGENAME}}|from=I}} I] [{{fullurl:{{FULLPAGENAME}}|from=J}} J] [{{fullurl:{{FULLPAGENAME}}|from=K}} K] [{{fullurl:{{FULLPAGENAME}}|from=L}} L] [{{fullurl:{{FULLPAGENAME}}|from=M}} M] [{{fullurl:{{FULLPAGENAME}}|from=N}} N] [{{fullurl:{{FULLPAGENAME}}|from=O}} O] [{{fullurl:{{FULLPAGENAME}}|from=P}} P] [{{fullurl:{{FULLPAGENAME}}|from=Q}} Q] [{{fullurl:{{FULLPAGENAME}}|from=R}} R] [{{fullurl:{{FULLPAGENAME}}|from=S}} S] [{{fullurl:{{FULLPAGENAME}}|from=T}} T] [{{fullurl:{{FULLPAGENAME}}|from=U}} U] [{{fullurl:{{FULLPAGENAME}}|from=V}} V] [{{fullurl:{{FULLPAGENAME}}|from=W}} W] [{{fullurl:{{FULLPAGENAME}}|from=X}} X] [{{fullurl:{{FULLPAGENAME}}|from=Y}} Y] [{{fullurl:{{FULLPAGENAME}}|from=Z}} Z]
 
|}<noinclude>
 
|}<noinclude>
  
----
+
{{Documentation}}
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 {{[[Template:CategoryTOC|CategoryTOC]]}} to the text on the category page.
 
 
 
<!--Categories-->
 
[[Category:TOC templates|{{PAGENAME}}]]
 
 
 
<!--Other languages-->
 
[[ar:قالب:فهرس تصنيف]]
 
[[af:Template:CategoryTOC]]
 
[[ast:Template:CategoryTOC]]
 
[[ca:Template:CategoryTOC]]
 
[[cy:Template:CategoryTOC]]
 
[[de:Vorlage:CategoryTOC]]
 
[[el:Πρότυπο:CategoryTOC]]
 
[[es:Plantilla:CategoryTOC]]
 
[[eo:Ŝablono:TOCcat]]
 
[[et:Template:CategoryTOC]]
 
[[fa:الگو:فهرست رده]]
 
[[fi:Template:CategoryTOC]]
 
[[fr:Template:Sommaire compact catégorie]]
 
[[fy:Template:CategoryTOC]]
 
[[hr:Template:CategoryTOC]]
 
[[hu:Sablon:CatAZ]]
 
[[id:Template:CategoryTOC]]
 
[[io:Template:CategoryTOC]]
 
[[is:Template:CategoryTOC]]
 
[[ku:Template:CategoryTOC]]
 
[[la:Template:CategoryTOC]]
 
[[lb:Template:CategoryTOC]]
 
[[lt:Template:CategoryTOC]]
 
[[lv:Template:CategoryTOC]]
 
[[ja:Template:CategoryTOC]]
 
[[mk:Шаблон:Категориски азбучник]]
 
[[nn:Template:CategoryTOC]]
 
[[no:Mal:KategoriTOC]]
 
[[oc:Template:CategoryTOC]]
 
[[pl:Template:CategoryTOC]]
 
[[pt:Predefinição:Índice cat]]
 
[[ro:Format:TOCcat]]
 
[[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]]
 
[[wa:Template:CategoryTOC]]
 
 
</noinclude>
 
</noinclude>

Revision as of 17:08, 7 September 2008

Template:Pp-template

Template documentation[view] [edit] [history] [purge]

Lua error: expandTemplate: template "No redirect" does not exist.

Usage

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

  • 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

See also