Jump to content

ទំព័រគំរូ:cattoc/documentation

ពីWiktionary
Documentation for ទំព័រគំរូ:cattoc. [edit]
This page contains usage information, categories, interwiki links and other content describing the template.

Usage:

{{cattoc|key1|key2|...|key9}}

generates category index keys 1 - 9, 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}} - {{cattoc|a|b|c|d|e|f|g|h|i}} {{cattoc|j|k|l|m|n|o|p|q|r}} {{cattoc|s|t|u|v|w|x|y|z}}

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


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

{| class="toc plainlinks" |
| {{cattoc|top=Top}} - {{cattoc|a|b|c|d|e|f|g|h|i}} {{cattoc|j|k|l|m|n|o|p|q|r}} {{cattoc|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)

Note: this template takes a limited number of parameters to minimize the amount of unused code transcluded; please don't add more: as shown you can just use a space, and another template call.