Templat:TOC limit

Daripada Wikipedia, ensiklopedia bebas.
Lompat ke: pandu arah, cari

Isi kandungan

Documentation icon Pendokumenan templat[lihat] [sunting] [sejarah] [nyahcache]

This template inserts a Table of Contents which omits subheadings lower than a certain level. The table obeys the same layout rules as the __TOC__ magic word. Omitted sections still have section edit links in the article body; the main use for this template is situations where you want section edit links for ease of editing but don't want to clutter the table of contents.

Penggunaan[sunting | sunting sumber]

{{TOC limit}}

Templat ini mengehadkan paparan jadual kandungan kepada judul == tingkat 2 == dan === tingkat 3 === sahaja.

Anda boleh mengubah suai hadnya dengan membubuh tingkat judul:

{{TOC limit|4}}

4 membenarkan ==== judul tingkat 4 ==== tetapi menggugurkan mana-mana subjudul di bawahnya dari TOC.

Fungsi templat ini adalah menyorokkan tingkat-tingkat yang lebih rendah secara CSS. Rujuk MediaWiki:Common.css.

Conflicts[sunting | sunting sumber]

This template does not interact well with the {{TOC right}}, {{TOC left}}, {{TOC center}} templates. To achieve the correct effect, use those with a limit parameter. For example, {{TOC right|limit=2}} has the effect that {{TOC right}} and {{TOC limit|2}} would have—if they worked together.