Template:cattoc

Definition from Wiktionary, the free dictionary
Jump to: navigation, search



Usage:

{{cattoc|key1|key2|...|keyn}}

generates category index keys 1 to n, separated by spaces.

{{cattoc|top=Top}}

generates category index link to the top of the category.

For example, to make a simple alphabet category toc:

{{cattoc|top=Top|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}}

Topa 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

To make this look much better, and set up the layout as desired, wrap it in a wikitable:

{| class="toc plainlinks" |
| {{cattoc|top=Top|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}}
|}

Now you can use wikitable syntax to do whatever you like. (<span class="toc plainlinks"> ... </span> also works as expected)