Template:Tocalphabet/doc

From MegaGlest
< Template:Tocalphabet
Revision as of 22:48, 11 August 2010 by Hofmic (talk) (1 revision: Templates)
Jump to: navigation, search
Description
This is a custom TOC intended for an alphabetical list with each letter having its own section/page.
The default is to cause the TOC to not appear, and to give a link to each heading A through Z. It can be customized to link to other pages, or to allow the default TOC to appear.
parameters
  • prefixlink=
This is the prefix for the links A-Z. if this were "+", the A link would go to "+A" The default is "#", so "#" is not included if this is changed.
  • prefixdesc=
This is the prefix for the appearance of the links. If this were "+", the A link would appear "+A"
  • notoc=
This clears the __NOTOC__ tag if set.
Sample output
{{Tocalphabet}}   gives

Contents

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




{{Tocalphabet|prefixlink=Stars}} gives

Contents

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



{{Tocalphabet|prefixdesc=Stars}} gives

Contents

StarsA StarsB StarsC StarsD StarsE StarsF StarsG StarsH StarsI StarsJ StarsK StarsL StarsM StarsN StarsO StarsP StarsQ StarsR StarsS StarsT StarsU StarsV StarsW StarsX StarsY StarsZ