Template:CategoryTOC



UsageEdit

This template adds a table of contents (TOC) to a category page. It is generally not used for categories containing less than 500 total pages. The parameters are optional.

{{category TOC
|lang = <language code> (see below, default: en)
|numerals = group / separate / days / no (default: group)
|uppercase = yes / no (default: yes)
|lowercase = yes / no (default: no)
|letters = yes / no (default: yes)
}}

ParametersEdit

  • lang - language code of the alphabet to use
  • numerals - specifies whether numerals are included:
    • group: there is one link for all numerals 0-9
    • separate: each numeral from 0 to 9 has a separate link
    • days: day of month from 1 to 31
    • no: no link
  • uppercase - specifies whether there is a link for each uppercase letter from A to Z.
  • lowercase - specifies whether there is a link for each lowercase letter from a to z.
  • letters - use no to hide letters.

Other languagesEdit

The lang parameter can take any of the language codes currently available:

CategoryTOC-be CategoryTOC-bg CategoryTOC-cs
CategoryTOC-de CategoryTOC-en
CategoryTOC-fi CategoryTOC-fr CategoryTOC-he
CategoryTOC-hu CategoryTOC-mk
CategoryTOC-ms CategoryTOC-pl CategoryTOC-ru
CategoryTOC-sv CategoryTOC-uk

LocalisationEdit

The only translatable parts in this template are two MediaWiki pages: MediaWiki:Toc & MediaWiki:Top.

Last modified on 24 March 2014, at 21:03