Skabelon:Dotted TOC page listing

Entry text
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1

This template is intended for replicating an original work's Table of Contents entries within the Wikisource Page: namespace.

Usage redigér

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 entry
  • pagetext (3) : the page number to be linked
  • symbol : any series of characters or images. Default is a single period. (".")
  • spaces (4) : 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.
  • djvupage
  • djvupageoffset
  • hi : a measure for the hanging indent when text overflows to a second line. Default is 0em.
  • chapter-width : Adjusts the width of the chapter column. Default is 2.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%.
  • 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".
  • col0text : Adds an extra zeroth column before the chapter number.
  • col0-width : Adjusts the width of the zeroth column. Default is 1em.
  • col0-align : Adjusts the alignment of the fourth column. Default is "left"; alternate choice: "center" or "right".

Related redigér

To cater for situations where a desired listing crosses one or more page boundaries, a number of variants upon this template exist, all of which accept the same parameters (and silently ignore any which do not apply to them):

  • {{dotted TOC page listing/top}}: permits specification of listing segment appearing above the page break.
  • {{dotted TOC page listing/suspend}}: (normally appears in page footer) closes off listing processing for current page only.
  • {{dotted TOC page listing/resume}}: (normally appears in page header) reopens listing processing for a new page.
  • {{dotted TOC page listing/continue}}: (appears in subsequent body; not normally required) continues specification of entry component of listing on a new page, which will be completed only on yet another following page.
  • {{dotted TOC page listing/bottom}}: (normally appears at top of page body) completes specification of entry component initiated on a prior page.


Note: use of the named parameters are preferred when working with any of the boundary-crossing templates above.


Applying {{dotted TOC page listing/top}}{{dotted TOC page listing/continue}}{{dotted TOC page listing/bottom}} (no intervening new-lines between template invocations; all bearing same parameter specifications) should produce the same result as using Skabelon:Tl with only minor deviations from the same parameters and values normally used in the core template.

Examples redigér

  • For an example of the use of {{Dotted TOC page listing}} (combined with {{TOC page listing}}) see: this page.
  • For an example of the use of {{Dotted TOC page listing/top}} (etc.) see: this page (and the next); and how it looks in the main namespace: this page.