Template:List TOC Letters/sandbox

From Wikipedia, the free encyclopedia
Jump to: navigation, search
Documentation icon Template documentation[view] [edit] [history] [purge]


Similar to {{List TOC}}, this template creates a horizontal table of contents with links from A to Z (controllable) and four optional rows of links. It is intended primarily for list articles where the standard TOC would be unwieldy. The template is styled with the hlist class for accessibility and has few superfluous frills.

Unlike {{List TOC}}, the A–Z links do not appear by default. They must be specified as parameters x1 through x26 in order to appear. Additionally, parameters u1 through u8 can be defined to appear before the x* parameters, and z1 through z8 to appear after them.

Two rows to appear above the x* parameters can be defined using a1 through a20 and b1 through b20 and two rows to appear below can be defined using c1 through c20 and d1 through d20.

With the exception of the u* and z* parameters, values are assumed to be anchors on the current page, and are transformed into [[#value|value]] links.

The u* and z* parameter values are rendered as-is, so if they are to be links, you must include proper link markup (i.e. [[value]]).

Blank parameter list[edit]

{{List TOC Letters


{{List TOC Letters
|u1=[[List of colors: A–F|A–F]]
|z2=[[List of colors: N–Z|N–Z]]
{{List TOC Letters

See also[edit]