User:Gorgon/Sandbox/Sandbox Charlie

From Avlis Wiki
Revision as of 18:43, 5 February 2017 by Gorgon (talk | contribs) (Test version of Template:CategoryTOC)
Jump to navigation Jump to search
This is a user sandbox of Gorgon. A user sandbox is a subpage of the user's user page. It serves as a testing spot and page development space for the user, and is not an Avlis wiki article.


Template:CategoryTOC

This template is based on Template:CategoryTOC.

It uses the original markup. The documentation below was copied to this template, since we do not use documentation sub-pages. MediaWiki specific information, links and sub-templates have either been removed, or modified for the Avlis wiki. It has been reformatted, and modified for improved clarity.

See the original template documentation for further details.

Template documentation

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

Usage

{{CategoryTOC
 | align     = center / left / right
 | top       = yes / no
 | numerals  = group / separate / no
 | uppercase = yes / no
 | lowercase = no / yes
}}

Parameters

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