Differenze tra le versioni di "Template:TOC limit"

Da Sotto le querce.
(Creata pagina con "<includeonly><div class="toclimit-{{{1|{{{limit|2}}}}}}">__TOC__</div></includeonly><noinclude> This template inserts a Table of Contents which omits subheadings beyond a cer...")
 
m
 
Riga 1: Riga 1:
 +
<html><style>
 +
.toclimit-2 .toclevel-2,
 +
.toclimit-3 .toclevel-3,
 +
.toclimit-4 .toclevel-4,
 +
.toclimit-5 .toclevel-5,
 +
.toclimit-6 .toclevel-6,
 +
.toclimit-7 .toclevel-7 { display: none; }
 +
</style></html>
 
<includeonly><div class="toclimit-{{{1|{{{limit|2}}}}}}">__TOC__</div></includeonly><noinclude>
 
<includeonly><div class="toclimit-{{{1|{{{limit|2}}}}}}">__TOC__</div></includeonly><noinclude>
  

Versione attuale delle 16:16, 22 feb 2020


This template inserts a Table of Contents which omits subheadings beyond a certain depth. 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.

Usage

Place the below code at the top of the page, replace # with heading level you want.

 {{TOC limit|#}}

for example

 {{TOC limit|2}}

Alternatively you can use:

 {{TOC limit}}

which would assume the default level 2.