... {{dl}}">
La plantilla {{glossary}}
(también conocida como {{glossary start}}
o {{glossary begin}}
) se utiliza con para encerrar explícitamente un glosario o una lista de descripción similar a un glosario (también llamada lista de definición o lista de asociación), especialmente en un glosario estructurado por plantilla , aunque dichas listas se pueden utilizar de forma más general. Esto es necesario (como cuestión técnica) para los glosarios estructurados por plantilla y es una buena práctica en cualquier lugar en el que se utilicen listas de descripción/definición para glosarios. El par de plantillas invoca el elemento HTML de lista de descripción . Lamentablemente, el mnemónico " " no está disponible como redirección al momento de escribir este artículo.{{glossary end}}
<dl>...</dl>
{{dl}}
El par de plantillas evita incidentalmente que el motor de software MediaWiki de Wikipedia cree automáticamente código de lista de definiciones redundante ( <dl>...</dl>
) alrededor de términos y definiciones si tienen líneas en blanco entre ellos, como suele suceder, especialmente en glosarios no estructurados.
Uso típico:
{{glosario}} {{ término }} {{ definición }} {{fin del glosario}}
|id=
Se puede utilizar para asignar un nombre de identificación de una palabra al glosario. Puede utilizarse como destino de enlace y podría tener otros usos de metadatos.#id
|style=
Pasará el estilo CSS al <dl>
elemento. Es decir, esto aplica estilo a la lista de definiciones en sí, como contenedor, no a los términos y definiciones individuales que la contienen. Rara vez hay motivos para hacer esto.|class=
Pasará una o más clases CSS separadas por espacios al <dl>
elemento, además de la clase incluida automáticamente glossary
. Rara vez hay motivos para hacer esto.Esto muestra una instancia muy simple y luego una bastante compleja en un glosario estructurado (incluida una entrada con una cita en bloque, que dentro de una definición tiene márgenes verticales reducidos en comparación con la visualización estándar de , debido a TemplateStyles ):{{blockquote}}
Esta familia de plantillas, al igual que el código de lista de definiciones subyacente, está destinada principalmente a usos de definición, pero puede tener otras aplicaciones. La propia especificación HTML 4.01 dice:
Las listas de definiciones... generalmente consisten en una serie de pares de términos/definiciones (aunque las listas de definiciones pueden tener otras aplicaciones). Por lo tanto, al anunciar un producto, se puede utilizar una lista de definiciones:
- Menor costo
- ¡La nueva versión de este producto cuesta significativamente menos que la anterior!
- Más fácil de usar
- ¡Hemos cambiado el producto para que sea mucho más fácil de usar!
- Seguro para niños
- Puedes dejar a tus hijos solos en una habitación con este producto y no se lastimarán (no es una garantía).
Por lo tanto, los editores deben sentirse libres de utilizar el marcado de lista de definiciones como alternativa a las listas numeradas o con viñetas cuando el material sea adecuado para la presentación de lista de definiciones.
{{glossary}}
también conocido como o – La mitad de un par de plantillas; se usa con una clase para abrir la lista de definiciones del glosario estructurado que se cierra.{{glossary start}}
{{glossary begin}}
<dl>
{{glossary end}}
{{glossary end}}
– La otra mitad de este par de plantillas; se utiliza </dl>
para cerrar la lista de definiciones que {{glossary}}
se abre.{{term}}
– El término del glosario al que {{defn}}
se aplica la definición; un personalizado <dt>
con una clase y un incrustado <dfn>
.{{defn}}
– La definición que se aplica a los {{term}}
usos ; <dd>
con una clase{{ghat}}
– una plantilla de nota de sombrero con el formato adecuado para la parte superior de una {{defn}}
definición{{glossary link}}
– metaplantilla para crear plantillas de acceso directo para vincular a definiciones en glosarios específicos