Шаблон:TOC
Usage
{{TOC|mode|size|limit|nonum|title=|content=}}
- mode: (Optional, default: "normal"; case-insensitive) one of:
- abc - a horizontal A..Z TOC (more of an index)
- horizontal - a horizontal TOC, where full titles are kept
- normal - the normal TOC - can be placed at the wanted position with this
- none - no TOC on the page (similar to Шаблон:Hl)
- side - sets the TOC to the right
- subtoc - creates a TOC-like box. Additional parameters:
- title: (Optional, default empty) subTOC title
- content: subTOC content, usually a list of HashLink internal links in format:
* 1. {{HashLink|#Title 1}} * 2. {{HashLink|#Title 2}} * 3. {{HashLink|#Title 3}}
- size: (Optional, default 1) size in em (e.g Шаблон:Hl for 90%)
- limit: (Optional, default empty) sub-level limit (e.g Шаблон:Hl)
- nonum: (Optional, default empty) Шаблон:Hl to hide numbers
Code | Result |
---|---|
{{TOC|abc}} |
Шаблон:TOC |
{{TOC|subtoc |content= * 1. {{HashLink|#Title 1}} * 2. {{HashLink|#Title 2}} * 3. {{HashLink|#Title 3}} }} |
|
{{TOC|subtoc |title= The sub-TOC title |content= * 1. {{HashLink|#Title 1}} * 2. {{HashLink|#Title 2}} * 3. {{HashLink|#Title 3}} }} |
[[Category:Templates|[[:uc:PAGENAME]]]]