模板:Auxiliary Table of Contents
This template uses block elements, e.g. See H:DIVSPAN for details. |
This template creates a special boxed table of contents within a mainspace page. It is intended for adding tables of contents to works that did not originally feature such a navigation device. For example, where a work has been broken into chapters or other subsections on subpages on Wikisource where the original document simply flowed from one section to the other.
This template uses the same class as {{header}}, which separates the table of contents from the proofread text derived from the Page: and Index: space.
Usage
[编辑]Basic
[编辑]{{Auxiliary Table of Contents|List of subpages}}
Advanced
[编辑]{{Auxiliary Table of Contents|text=List of subpages|title=|comment=|width=}}
Parameters
[编辑]- {{{title}}}: Inserts and new word or phrase in the top left of the table. Default: Chapters.
- {{{comment}}}: Inserts a new comment to the right of the title. Default: (not individually listed).
- {{{width}}}: Width of the table; default: 30em. Avoid using widths in px, as this can ccause unexpectedly narrow results on export.[1]
- {{{nosummary}}}: Do not add the contained links to exported file TOCs. This can be useful if the same links are added elsewhere. For example, if the same links are presented on a subpage as well as on the main page, the entries from the subpage will be nested in the output file, so the subpage should be used and the main page table should use {{{nosummary=y}}}. E.g. Pierre and Jean (Bell, 1902).
Examples
[编辑]{{Auxiliary Table of Contents|
#[[/Chapter 1/]]
#[[/Chapter 2/]]
#[[/Chapter 3/]]
#[[/Chapter 4/]]
#[[/Chapter 5/]]
}}
{{Auxiliary Table of Contents|title=Foo|comment=Bar|width=20em|<poem>[[/Preface /]]
[[/Chapter 1/]]
[[/Chapter 2/]]
[[/Chapter 3/]]</poem>}}
See also
[编辑]- ↑ See H:PXWIDTH for details. Using a pixel width will add the page to Category:Pages using pixel widths.
上述文档嵌入自Template:Auxiliary Table of Contents/doc。 (编辑 | 历史) 编者可以在本模板的沙盒 (创建 | 镜像)和测试样例 (创建)页面进行实验。 请在/doc子页面中添加分类。 本模板的子页面。 |