ទំព័រគំរូ:cattoc
- ឯកសារកម្មតទៅនេះស្ថិតនៅទំព័រគំរូ:cattoc/documentation។ [កែប្រែ]
- តំណភ្ជាប់មានប្រយោជន៍ : បញ្ជីទំព័ររង • សម្រង់ • ការបញ្ជូនបន្ត
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}}
- 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}} |}
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)
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.