Template:Dotted TOC line/doc
Jump to navigation
Jump to search
This is a documentation subpage for Template:Dotted TOC line. It contains usage information, categories and other content that is not part of the original template page. |
This template uses TemplateStyles: |
This template is intended for replicating an original work's Table of Contents entries within the Wikisource Page: namespace.
Usage
[edit]Parameters:
chaptertext (1)
: the chapter number (optional). Displays in a column to the left of the main text.entrytext (2)
: the title of the chapter or entrypagetext (3)
: the page number to be linkedsymbol
: any series of characters or images. Default is a single period. (".")spaces
: The number of spaces between symbols — a number from 0 to 10. Default is 1.dotend
: Additional text at the end of the line of dots, for offsets etc.pagenum
positionoffset
hi
: a measure for the hanging indent when text overflows to a second line. Default is 1em.chapter-width
: Adjusts the width of the chapter column. Default is 3.5em.chapter-align
: Adjusts the alignment of the chapter column. Default is "right".entry-align
: Adjusts the alignment of the entry (second) column. Default is "left"; alternate choice: "justify".entry-width
: Adjusts the width of the entry column. Default is 80%.col2-vertical-align
: Sets the vertical alignment of the second (entry) column. Default is "inherit"; alternate choices: "top", "bottom", "text-top", and "text-bottom".col3-width
: Adjusts the width of the third column. Default is 2em.col3-align
: Adjusts the alignment of the third column. Default is "right"; alternate choice: "center" or "left".dottext
: Replaces the series of periods (".") by text.col4text
: Adds an extra fourth column after the page number.col4-width
: Adjusts the width of the fourth column. Default is 2em.col4-align
: Adjusts the alignment of the fourth column. Default is "right"; alternate choice: "center" or "left".textbackground
: Gives the ability to override the background color; default is white. If using within {{Auxiliary Table of Contents}}, settextbackground=#E6F2E6;
See also
[edit]- {{TOC line}} (typically used for TOC column headings)
- {{Dotted TOC page listing}}