Template:List TOC: Difference between revisions
Jump to navigation
Jump to search
(Updated copy) |
(+category (Glossary templates)) |
||
Line 56: | Line 56: | ||
</div> | </div> | ||
</div>{{ #ifeq: {{{center|{{ #ifeq: {{{1}}} | short1 | yes }}}}} | yes | </div> }}<noinclude> | </div>{{ #ifeq: {{{center|{{ #ifeq: {{{1}}} | short1 | yes }}}}} | yes | </div> }}<noinclude> | ||
{{Documentation}}<!-- please add category and language links to the /doc sub-page, not here --></noinclude> | {{Documentation}}<!-- please add category and language links to the /doc sub-page, not here --> | ||
[[Category:Glossary templates]] | |||
</noinclude> |
Revision as of 15:17, 23 July 2014
Uses Lua: |
Usage
This template creates a horizontal table of contents with links from A to Z and four optional rows of links. It is intended primarily for list articles where the standard TOC would be unwieldy. The template is styled with the
class for accessibility and has few superfluous frills.
hlist
The A–Z links are always created (to control which letters appear, use {{List TOC Letters}} instead). Two upper rows can be defined using a1 through a20 and b1 through b20. Two lower rows can be defined using c1 through c20 and d1 through d20.
Examples
{{List TOC |c1=White|c2=Pink|c3=Red|c4=Orange|c5=Brown|c6=Yellow|c7=Gray|c8=Green|c9=Cyan|c10=Blue|c11=Violet |d1=Web colors|d2=Fictional colors|d3=See also|d4=Footnotes|d5=References}}
The above documentation is transcluded from Template:List TOC/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |