Jump to content

ទំព័រគំរូ:cattoc

ពីWiktionary



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.