中文基督教大典
Advertisement

頁面可以分成許多的段落使用段落標題語法進行編輯。

設定段落標題[]

可以用設定標題方式來區分段落,請看下面的代碼,另請參看help:如何編輯頁面

==段落標題==
===子標題===
====子標題的子標題====

目錄(TOC)[]

每篇文章只要段落標題超過三個,就會自動根據這些標題生成一個目錄(table of contents)(TOC),下面的情況不會出現目錄:

  • 用戶在偏好設定中關閉了相應的設定。
  • 在文章中加入了__NOTOC__ 代碼。

相反地,使用__FORCETOC__ 或 __TOC__ 代碼可以在少於四個段落標題的情況下,強制顯示目錄。

目錄會自動放在第一個標題的前面,或者放在 __TOC__代碼的地方。 因此,在目錄之前寫一些介紹性的文字是一個好主意,這有助於“提前”了解相關主題。Although usually a header after the TOC is preferable, __TOC__ can be used to avoid being forced to insert a meaningless header just to position the TOC correctly, i.e., not too low.

您可以在偏好設定中設定對標題進行"自動編號"。

help:template名字空間中的段落標題不會出現在目錄中。The automatic section numbering restarts with 1 at the beginning of a template, and continues with the section numbering of the referring page itself after the template.

精簡的目錄格式[]

當您有大量的短標題時(例如英文字母)您會有一個很長的目錄表。這時最好的替代方案是採用 精簡目錄,您只要插入下列文字:

{{compactTOC}}

它顯示時,看起來就像:

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

在年代方面也可以這樣使用,例如

1900s - 1910s - 1920s - 1930s - 1940s - 1950s - 1960s - 1970s - 1980s - 1990s - 2000s

段落鏈接[]

在目錄中的每個標題都有一個鏈接,可以直接跳轉到相應的段落。

你可以在本頁中使用[[ #標題名稱 | 文字 ]], 或者鏈接其他頁面[[ 頁面名稱#標題 | 文字 ]]。

你可以使用help:跨語言鏈接連接到其他語言的段落。也可以使用重定向功能。

段落的編輯[]

你可以多個別的段落使用“段落編輯功能”,在每個段落標題的右側都有一個“[編輯]”鏈接。它可以用來只編輯當前這個段落的內容。

使用"__NOEDITSECTION__" 可以禁止段落編輯。

Opening a link in a header in a new window[]

When right click editing is enabled, you cannot right click a link in a header to open it in a new window, etc. However most browsers have an alternative way of doing that (Mozilla: middle click, ctrl+left click, type ahead find, TAB navigation; IE: shift+left click).

Horizontal dividing line[]

A horizontal dividing line as a division demarcation is not taken into account in the section numbering and TOC. Therefore it should not be used for dividing a page in sets of sections.

"See also" line or section[]

If a page consists of sections and a "see also" refers to the whole page, then make it a separate section. This is to avoid it becoming part of the prior section, to make it visible in the TOC, and to make it easily accessible through the TOC.

Alternatively, a "see also" line is sometimes put at the beginning.

A "see also" belonging to just one section can be put in that section: within a paragraph, as a separate paragraph, or as a subsection.

Large text that should not begin a section[]

When using large text that should not begin a section, e.g. to show a font, use something like

<b><font style="font-size:120%"> Example text </font></b>

giving

Example text

Advertisement