模板:Dotted TOC page listing/doc

維基文庫,自由的圖書館

本模板模仿原文中的目錄格式,用於維基文庫的作品頁面。

用法[編輯]

參數:

  • chaptertext (1):章節號碼(可選),顯示於項目的左側。
  • entrytext (2):章節或項目的標題
  • pagetext (3):鏈接的頁碼
  • symbol:任何系列的符號或圖片,默認為「.」。
  • spaces (4):符號之間的空格數量,可輸入0至10之間的數字,默認為1。
  • dotend:點線後額外的文字,以供排版之用。
  • djvupage
  • djvupageoffset
  • hi:a measure for the hanging indent when text overflows to a second line. Default is 1em.
  • chapter-width:調整章節列的寬度,默認為2.5em。
  • chapter-align:調整章節列的對齊方向,默認為「right」。
  • entry-align:調整項目列(即第二列)的對齊方向,默認為「left」,亦可選「justify」。
  • entry-width:調整項目列的寬度,默認為80%。
  • col3-width:調整第三列的寬度,默認為2em。
  • col3-align:調整第三列的對齊方向,默認為「right」,亦可選「center」或「left」。
  • dottext:取代默認的「.」符號。
  • col4text:在頁碼後加入第四列。
  • col4-width:調整第四列的寬度,默認為2em。
  • col4-align:調整第四列的對齊方向,默認為「right」,亦可選「center」或「left」。

相關模板[編輯]

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):

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 {{dotted TOC page listing}} with only minor deviations from the same parameters and values normally used in the core template.