Template:ListTOC

From Libregamewiki
Jump to navigation Jump to search
Contents: 0-9!$@ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Template documentation

Introduction

The ListTOC template gives a compact, alphanumerical alternative to the standard table of contents. It does not fetch sections automatically, instead it can only link to sections which are either named "0-9!$@" (numbers and symbols) or by any uppercase letter and relies on the list authors to update it according to changes in the list. ListTOC should only be used for lists!

Usage

Place {{ListTOC}} at the position where you want it to appear.

Contents: 0-9!$@ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Reducing length

To disable links for single letters, you have to set the lowercase versions of them equal to nothing. For symbols and numbers to disappear, you have to set nu= as parameter.

{{ListTOC|sy=|a=}} will lead to the removal of the numbers and symbols and the A-link.

Contents: B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Recommended template

This example of the ListTOC will hide all letters, place it in the targeted list and remove all letters according to the letters existing in the list.

{{ListTOC|nu=|a=|b=|c=|d=|e=|f=|g=|h=|i=|j=|k=|l=|m=|n=|o=|p=|q=|r=|s=|t=|u=|v=|w=|x=|y=|z=}}

Contents: