模板:Dotted TOC page listing
Entry text |
1 |
本模板模仿原文中的目录格式,用于维基文库的作品页面。
用法
[编辑]參數:
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):
{{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 {{dotted TOC page listing}} with only minor deviations from the same parameters and values normally used in the core template.
上述文档嵌入自Template:Dotted TOC page listing/doc。 (编辑 | 历史) 编者可以在本模板的沙盒 (创建 | 镜像)和测试样例 (创建)页面进行实验。 请在/doc子页面中添加分类。 本模板的子页面。 |