User:Zoeannl/Project guideline/Proofreader’s Guide/Table of Contents

From Wikisource
Jump to navigation Jump to search

{{TOCstyle}}

Contents over multiple pages[edit]

 | starting = yes   ) 
 | continuing = yes ) as appropriate in text
 | completing = yes )
{{TOCstyle | header = yes }} ) if continued
{{TOCstyle | footer = yes }} ) place in top/bottom box

|row1pageribbon=yes where PAGE (on row 1) is not to be transcribed

|row1model=r|{{sc|page}}

|row1model=r|page

Entire text formatting[edit]

These are included as header in subsequent pages

  • Formatting for entire TOC
  • |compact=yes
  • |width=#em for indent width
  • |width=calc(100% - 8em) for both margins
  • |depth=#em for hanging indent depth
  • |style=


Look up Template:Table_style

  • |style=font-size:85%;line-height:1;
  • |style=font-variant:small-caps;
  • |style=margin-left:2em;width:calc(100% - 2em) for indented list

Page:Handbook for Boys.djvu/20

Leaders (dots)[edit]

Where page numbers are like linked to text by a line of leaders-dots, dashes, bullets etc. The type is specified in the model description—default dots; otherwise with HTML character codes: •, ⋅, _, -, –, —, ⋅ (square dot), .. No symbol will leave a blank line.

|leadersym=

The space between leaders is defined globally:

|leaderspacing=2em

N.B. leadersym need not be a single character. Effects are possible like this
  1. left
    ◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞
    right

Model descriptions[edit]

TOC columns: The elements of a Table of Contents are

1. A Chapter column
2. A text Description
3. A page number column

There are innumerable variations on this, and the TOCstyle template can be used in other ingenious ways for different purposes. The table below attempts to enable you to define the elements to give you a TOC that faithfully represents the printed page.

Defaults Parameters by design
Parameter Chapter column Description Page column Chapter column Description Page column
Alignment right left right
Width Default=5em determined by total width
default=100% of screen
Default=2em chapter-width=m
em or px
compact=yes :fits longest line
or width= % or px :400px max to fit mobiles
page-width=p
em or px
Indenting Includes indenting Padding between chapter column and description default=
Hanging indents default=5em
Includes indenting increase chapter-width for larger indent;
decrease chapter-width for smaller indent
(hanging indent) depth=n
em or px
increase page-width for larger indent
decrease chapter-width for smaller indent
 
Defaults Parameters by design
Model Chapter column Description Page column Chapter column Description Page column
mCHn.pP <==5em==> Hanging indent=5em <==2em==> chapter-width=0 for no Chapter column
chapter-width= em
depth=0 for no hanging indent
depth= em
page-width=0 for no Page column
page-width= em

Debugging: If a column is buggy, check it is wide enough for the longest text (increase chapter-width and/or page-width). Put = in curly brackets. width=0.1

Standard default[edit]

|chapter-width=5em|depth=5em|page-width=2em (defaults: these happen if nothing else is specified)

{{TOCstyle
|model=mCHn.pP
|Chapter I|{{lorem ipsum}}|1
}}
  1. Chapter I
    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
    ................................................................................................................................................................................................................................................................................................................................................................................................
    1

Without Page Numbers[edit]

|page-width=0em 
|leadersym=

An unformatted Description[edit]

{{TOCstyle
|chapter-width=0em|depth=0em|page-width=0em 
|leadersym=
||{{lorem ipsum}}
}}
  1. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Description with hanging indent[edit]

default=5em;
{{TOCstyle
|chapter-width=0em|page-width=0em 
||{{lorem ipsum}}
}}
  1. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
else |depth= em
{{TOCstyle
|chapter-width=0em|depth=2em|page-width=0em 
||{{lorem ipsum}}
}}
  1. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Indented Description with hanging indent[edit]

Default=5em;
{{TOCstyle
|page-width=0em 
|leadersym=
||{{lorem ipsum}}
}}
  1. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
else |chapter-width= em and |depth= em
{{TOCstyle
|chapter-width=2em|depth=2em|page-width=0em 
|leadersym=
||{{lorem ipsum}}
}}
  1. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Centered Description[edit]

c
("center") Output row is constructed from single field, centred. Use for headings.
{{TOCstyle
|model=c
|{{lorem ipsum}}
}}
  1. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Justified Description[edit]

j
("justify") Output row is constructed from single field, justified. Useful for title pages or ads.
{{TOCstyle
|model=j
|{{lorem ipsum}}
}}
  1. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Right Aligned Description[edit]

r
("right") Output row is constructed from single field, right-aligned.
{{TOCstyle
|model=mCHn.pP
|row1model=r|{{sc|page}}
}}
  1. page

With Page Numbers, no leaders[edit]

Description with Page Number[edit]

Output row is a pair of input fields (separated by |). The first field is unformatted text and the latter is right-lower-aligned page reference.

{{TOCstyle
|chapter-width=0em |depth=0em 
|leadersym=
||{{lorem ipsum}}|3
}}
  1. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
    3

Description with Hanging Indent and Page Number[edit]

default=5em hanging indent;
{{TOCstyle
|chapter-width=0em
|leadersym=
||{{lorem ipsum}}|3
}}
  1. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
    3
else |depth= em
{{TOCstyle
|chapter-width=0em |depth=2em
|leadersym=
||{{lorem ipsum}}|3
}}
  1. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
    3

Indented Description and page number[edit]

As above; add to Chapter-width.

Default=5em
{{TOCstyle
|depth=0em 
|leadersym=
||{{lorem ipsum}}|3
}}
  1. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
    3

Indented Description with Hanging Indent and Page Number[edit]

default=5em hanging indent;
{{TOCstyle
|leadersym=
||{{lorem ipsum}}|3
}}
  1. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
    3
else |chapter-width= em |depth= em
{{TOCstyle
|chapter-width=7em |depth=2em
|leadersym=
||{{lorem ipsum}}|3
}}
  1. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
    3

Chapter, Description, Page[edit]

Output row is a triple of input fields. The first field is presented as right-aligned within a (5em) column, followed by text. Finally the third field is presented right-lower-aligned page reference.

Chapter, Description, Page, no leaders[edit]

default chapter-width=5em, page-width=2em
{{TOCstyle
|depth=0em 
|leadersym=
|Chapter I|{{lorem ipsum}}|3
}}
  1. Chapter I
    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
    3
else |chapter-width= em |page-width= em
{{TOCstyle
|depth=0em 
|chapter-width=2em |page-width=6em
|leadersym=
|iv|{{lorem ipsum}}|''frontispiece''
}}
  1. iv
    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
    frontispiece

Indented Chapter, Description, Page[edit]

Add to chapter-width

Chapter, Description with hanging indent, Page[edit]

default
{{TOCstyle
|leadersym=
|Chapter I|{{lorem ipsum}}|3
}}
  1. Chapter I
    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
    3
else |depth= em |chapter-width= em
{{TOCstyle
|depth=2em |chapter-width=2em
|leadersym=
|I|{{lorem ipsum}}|3
}}
  1. I
    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
    3

Indented Chapter, Description with hanging indent, Page[edit]

As above, with increased chapter-width

Including leaders (dots)[edit]

All Variations above with |leadersym=

  • You can add the leader of your choice
  • Remove |leadersym= to have the default dot.
Default
{{TOCstyle
|Chapter|{{lorem ipsum}}|1
}}
  1. Chapter
    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
    ................................................................................................................................................................................................................................................................................................................................................................................................
    1

Custom leaders[edit]

{{TOCstyle
|leadersym=•|leaderspacing=1em|leaderbgcolour=#ECFCF4
|Chapter|{{lorem ipsum}}|1
}}
  1. Chapter
    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
    ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
    1



CD5.P
("Chapter, Description, dot-leader, Page") Variant of CD.P without padding following Chapter field; otherwise identical.
CD.P/s
variant of CD.P. Initial fragment to be continued on next page.
CD.P/e
Completion of fragment commenced by CD.P/s.


2H3P/s
("Indented Hanging Indent initial page crossing section") Build TOC fragment per 2H3P above but with expectation the fragment will continue on a later Page. (Differing HTML is constructed for demonstration and presentation name spaces.)
2H3P/e
("Indented Hanging Indent terminal page crossing section") Continuation of TOC fragment commenced by 2H3P/s. (Differing HTML is constructed for demonstration and presentation name spaces.)


lcr
("left-centred-right") Output row is constructed from triples of input fields in a fashion reminiscent of {{running header}} with three parameters specified.
{{TOCstyle
|model=lcr
|Ch. III.|{{lorem ipsum}}|3
}}
  1. Ch. III.Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.3
lccr
("left-centred-right") Output row is constructed from triples of input fields in a fashion reminiscent of {{running header}} with four parameters specified.
lcccr
("left-centred-right") Output row is constructed from triples of input fields in a fashion reminiscent of {{rh/5}}.
lr
("left-right") Output row is constructed from pairs of input fields in a fashion reminiscent of {{running header}} with the "center" parameter omitted. (Degenerate form of model "lcr".)

Format changes for lines or sections[edit]

  • Rows are counted from the template start. Each | counts as one.
  • Multiple rows can be listed e.g. 1,3,5,7
  • Ranges can be specified 1-3, 1to3
Model changes[edit]

|row#model=

Style changes[edit]
  • |row#style=font-style:normal;

Standard formatting can be used inline (e.g. {{sc|text}}, {{larger|text}}). To change formatting for a section or multiple rows, use row#style.

  • |row#style=font-variant:small-caps;
  • |row#style=font-variant:normal;
  • |row#style=font-style:italic;
  • |row#style=font-style:normal;
  • |row#style=font-size:83%; (smaller)
  • |row#style=font-size:120%; (larger)


Indented[edit]
|row#style=margin-left:2em

Examples and Exemplars[edit]