Template:CategoryTOC/doc

From NC Commons
Jump to navigation Jump to search

Lua error in Module:Autotranslate at line 77: No fallback page found for autotranslate (base=Documentation subpage, lang=⧼lang⧽).__EXPECTED_UNCONNECTED_PAGE__

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.

Usage

<poem>{{categoryTOC

|lang = 
|numerals = 
|uppercase = 
|lowercase = 
|letters = 

}}</poem>

Template parameters

ParameterDescriptionDefaultStatus
langlanguage codeenoptional
lang2language code 2emptyoptional
lang3language code 3emptyoptional
numeralsnumeralsgroupoptional
uppercaseuppercase lettersyesoptional
lowercaselowercase lettersnooptional
lettersletters at allyesoptional
Template data
Lua error in Module:Autotranslate at line 77: No fallback page found for autotranslate (base=TemplateDataInfo/i18n, lang=⧼lang⧽).

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.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
language codelang

The language code of the alphabet to use

Default
en
Lineoptional
language code 2lang2

The language code of the second alphabet to use

Lineoptional
language code 3lang3

The language code of the third alphabet to use

Lineoptional
letters at allletters

Use no to hide letters.

Default
yes
Lineoptional
lowercase letterslowercase

Specifies whether there is a link for each lowercase letter from a to z.

Default
no
Lineoptional
numeralsnumerals

Specifies whether numerals are included. One of “group” (there is one line for all numerals 0–9), “separate” (each numeral from 0 to 9 has a separate link), “days” (days of month from 1 to 31) and “no” (no numeral link).

Default
group
Lineoptional
uppercase lettersuppercase

Specifies whether there is a link for each uppercase letter from A to Z.

Default
yes
Lineoptional

Additional information

The template is intended to be used in the following namespaces: the Category namespace

The template is intended to be used by the following user groups: all users

Placement: At the top of the page

⧼Seealso⧽

The language parameters can take any of the language codes currently available:

Localization

This template is localized by utilizing MediaWiki namespace messages. These can be translated at translatewiki.net (current translations).

The only translatable parts in this template are three MediaWiki pages: MediaWiki:Toc, MediaWiki:Top and MediaWiki:Colon (usually there is no need to translate the latter, but in French, for example, it’s used to insert a space before the colon).