Diferencia entre revisiones de «Plantilla:PutInTOC»
De WikiEducator
(Creación de Plantilla) |
m (Modificación de la Categoría) |
||
Línea 50: | Línea 50: | ||
{{--}} | {{--}} | ||
− | [[Category: | + | [[Category:Plantillas |PutInTOC]] |
</noinclude> | </noinclude> |
Última revisión de 17:10 11 jun 2009
Usage
This template puts a Title in the TOC without making the heading visible in the wiki article. The initial idea is to use this inside pedagogical templates so that they can be included in the TOC. The depth={1,2,3,4,5,6}.
The following syntax does nothing. This is done to remain consistent with the original pedagogical templates that had no method for including them in the TOC.
- {{PutInTOC
- }}
The following syntax puts the "Title" in the TOC at at depth of 2 (Section).
- {{PutInTOC
- |Title=My Section
- |Depth=2
- }}
My Section
The following syntax puts the "Title" in the TOC at at depth of 3 (Section):
- {{PutInTOC
- |Title=My Sub-section
- |Depth=3
- }}
My Sub-section
The following syntax puts the "Title" in the TOC at at depth of 4 (Section):
- {{PutInTOC
- |Title=My Sub-sub-section
- |Depth=4
- }}
My Sub-sub-section