Plantilla:TOC top

De la Viquipèdia, l'enciclopèdia lliure
Icona de documentació de mòdul Documentació de la plantilla [ mostra ] [ modifica el codi ] [ mostra l'historial ] [ refresca ]

Això s'utilitza per crear taules personalitzades de plantilles de contingut, com ara {{List TOC}}. Substitueix i suprimeix la TOC que el programari wiki generaria automàticament.

Ús[modifica]

Recordeu que aquesta és exclusivament per la facilitat de manteniment de les plantilles existents. Si us plau no utilitzeu aquesta per escriure noves plantilles: al seu lloc, navegueu a través de Categoria:Plantilles d'indexació i utilitzeu una plantilla existent. Aquest codi és una de les últimes peces en la neteja d'anys de codi redundant i superposició en aquesta àrea.

Paràmetres (opcional)[modifica]

title
The title to use for this ToC element. The default is Contingut.
align
Sets the CSS float and clear properties, which forces this float underneath the side specified with this attribute. So, align=right will place the element after all the right floating elements before it. Options are left, right, center, or none (default).
clear
Overrides the default CSS clear property set by the align parameter, which is not typically needed. Options are left, right, both, or none. The defaults are left when |align=left, right when |align=right, none when |align=center, and left when |align=none. Use |clear=none to allow other floating elements to float next to the table of contents, and |clear=both to force the table of contents to have nothing next to it.
primary
Set this to false if this ToC is not used as the primary ToC of a page. This makes sure that the title of this ToC does not show up in the primary ToC. A side effect of this is the disappearing of the show/hide toggle.

TemplateData[modifica]

Aquesta és la documentació dels paràmetres de la plantilla utilitzada pel nou editor visual.

TOC top

This is used to create custom table of contents templates. It replaces and suppresses the ToC that the wiki software would automatically generate.

Paràmetres de la plantilla[Edita les dades de la plantilla]

ParàmetreDescripcióTipusEstat
Titletitle

The title to use for this ToC element. The default is Contents.

Cadenaopcional
Alignalign

Sets the CSS float and clear properties, which forces this float underneath the side specified with this attribute. So, "right" will place the element after all the right floating elements before it. Options are left, right, center, or none (default).

Cadenaopcional
Clearclear

Overrides the default CSS clear property set by the align parameter, which is not typically needed. Options are left, right, both, or none. The defaults are left when align=left, right when align=right, none when align=center, and left when align=none. Use "none" to allow other floating elements to float next to the table of contents, and "both" to force the table of contents to have nothing next to it.

Cadenaopcional
Primaryprimary

Set this to "false" if this ToC is not used as the primary ToC of a page. This makes sure that the title of this ToC does not show up in the primary ToC. A side effect of this is the disappearing of the show/hide toggle.

Cadenaopcional

Vegeu també[modifica]