texto del enlace visible
La plantilla {{glossary link}}
y su variante ( para abreviar) son plantillas para crear enlaces estructurados a entradas particulares en glosarios temáticos.{{glossary link internal}}
{{gli}}
{{Glossary link}}
es una metaplantilla para crear plantillas para artículos específicos del glosario principal (por ejemplo, la plantilla para el glosario de términos de deportes de taco ); no se suele utilizar directamente en un artículo. Clasifique las plantillas de enlaces de glosario temáticas derivadas que utilicen esta metaplantilla en Categoría: Plantillas de enlaces de glosario (esto se hace normalmente en la parte inferior de la página /doc de la plantilla, de modo que la categoría no esté dentro de la propia plantilla y no se transcluya accidentalmente en los artículos que utilizan la plantilla).{{cuegloss}}
{{gli}}
Generalmente se utiliza directamente en el mismo artículo del glosario y no es una metaplantilla.La documentación que se incluye a continuación explica cómo utilizarlos para el glosario estructurado en plantilla de su tema . Al igual que el contenedor y la plantilla de glosario, utiliza el elemento HTML de forma adecuada. (Tenga en cuenta que no lo utiliza necesariamente; solo debe utilizarse una vez por término en una sola página, en la apariencia que lo define, y se utiliza dentro del glosario).{{dfn}}
{{term}}
<dfn>
{{glossary link internal}}
<dfn>
{{term}}
{{Glossary link}}
Crea un enlace azul normal. Para evitar el efecto de " mar azul ", utiliza el estilo de subrayado de trazos claros que se ha convertido en un estándar web de facto para el marcado de definiciones. [a]{{Glossary link internal}}
Detalle técnico: Al usar un atributo interno <span>...</span>
independiente title
para una información sobre herramientas, lo configura de una manera que no viola las especificaciones HTML5 muy técnicas y retrógradas sobre el manejo del title
atributo de <dfn>
, que es el término exacto definido, no su definición.
Debido a la falta de lo que sería una función bastante sofisticada en el analizador de MediaWiki , no hay forma de que la definición del glosario aparezca en una ventana emergente de información sobre herramientas al pasar el ratón por encima, lo que sería realmente genial. Quizás algún día. Por ahora, muestra el título del artículo del glosario (si está en otra página) y el nombre de la entrada, tal como lo especifica la plantilla, que es a donde irá el lector si hace clic en el enlace del glosario. Esto reemplaza la información sobre herramientas predeterminada de Wikipedia para dicho enlace, que solo mostraría el título del artículo.
{{glossary link|glossary=Glossary of botanical terms|utricle}}
– da: utrículo{{glossary link|glossary=Glossary of botanical terms|utricle|utricular}}
– da: utricular{{glossary link|glossary=Glossary of botanical terms|utricle}}s
{{term}}
{{term}}
{{glossary link|glossary=Glossary of botanical terms|Utricle}}
{{glossary link|glossary=Glossary of botanical terms|utricle|Utricle}}
{{Term}}
{{anchor}}
{{vanchor}}
|lc=no
:{{glossary link|Amelia P. Steiner|lc=no}}
{{glossary link|chicken nugget}}
– da: nugget de pollo{{glossary link internal|chicken nugget}}
{{gli|chicken nugget}}
{{glossary link|chicken nugget|Compressed and breaded poultry snacks}}
– da: Snacks de pollo comprimidos y empanizados{{glossary link internal|chicken nugget|Compressed and breaded poultry snacks}}
{{gli|chicken nugget|Compressed and breaded poultry snacks}}
Normalmente, esto se hace con una plantilla contenedora derivada y específica del glosario. Por ejemplo, {{glossary link|glossary=Glossary of cue sports terms|massé}}
se puede hacer simplemente con .{{cuegloss|massé}}
Usamos la variante (nombre corto :) para no saturar la página con enlaces azules ; los que llevan a artículos completos sobre términos se destacarán de los enlaces a otras definiciones breves en el mismo glosario:{{glossary link internal}}
{{gli}}
{{gli|Example code}}
{{gli|Example code|some examples}}
{{gli|glossary=Glossary of education terms (M–O)|MEB}}
{{gli|glossary=Glossary of education terms (M–O)|MEB|Master's in European Business}}
Normalmente, esto se hace con el atajo; y son equivalentes. Sin embargo, en una página especialmente larga, si se encuentra con el límite de transclusión de plantilla , puede usar un enlace de código wiki simple a la entrada, por ejemplo .{{gli}}
{{glossary link internal|Example code}}
{{gli|Example code}}
[[#utricle|utricle]]
Debido a que es breve, simple y no requiere parámetros, no hay necesidad ni uso de una plantilla contenedora para un glosario específico (por ejemplo, no cree un para acompañar ).{{gli}}
|glossary=PageName=
{{cueglossi}}
{{cuegloss}}
{{glossary link|glossary=glossary article|term=term in glossary}}
resultados en: término en el glosario{{glossary link|glossary=glossary article|term in glossary}}
resultados en: término en el glosario{{glossary link|glossary=glossary article|term=term in glossary|text=text in article}}
Resultados en: texto en el artículo{{glossary link|glossary=glossary article|term in glossary|text in article}}
Resultados en: texto en el artículo{{glossary link|term in glossary}}
resultados en: término en el glosario{{glossary link|term in glossary|text in article}}
Resultados en: texto en el artículoLa {{glossary link internal}}
variante funciona exactamente igual, pero se utiliza dentro del propio glosario para proporcionar referencias cruzadas entre entradas, y también se utiliza cuando el mismo término está enlazado dos veces en otros artículos (por ejemplo, porque el artículo es muy largo). Su única diferencia con {{glossary link}}
es que no utiliza <dfn>
, ya que se supone que sólo se debe utilizar una vez por página por término, y no hace un enlace azul al enlace, ya que no queremos crear un lío de enlaces " mar de azules ".
{{glossary link internal|term in glossary}}
resultados en: término en el glosario{{glossary link internal|term in glossary|text in article}}
Resultados en: texto en el artículoCada versión de la plantilla acepta hasta tres parámetros para sus datos:
|glossary=the title of the glossary article to be linked to
[[...]]
wikilink.|term=the term entry in the glossary to be linked to
(o cualquiera para ello){{anchor}}
#
indicador de anclaje, estilo, plantillas, HTML ni otro marcado."
o la información sobre herramientas se romperá. Las plantillas específicas del glosario basadas en esta metaplantilla deben mencionar esto de forma destacada en su documentación.|1=
o como el primer parámetro sin nombre. No debe quedar sin nombre al crear una plantilla contenedora específica del glosario a partir de la metaplantilla, ya que no se puede garantizar que la entrada no contenga un user inputcarácter.|lc=no
|text=the actual text in the article to be linked from, if different from the term linked to
.Limitaciones : Los parámetros de glosario y de términos no pueden tener ningún marcado HTML o wiki; son básicamente partes de URL (es decir, ).https://en.wikipedia.org/wiki/Special:Purge/glossary#term
Un |color=
parámetro permite cambiar el color del texto. Esto solo se debe hacer cuando el resto del texto también es de otro color por alguna razón, por ejemplo, debido a texto blanco en una celda de tabla con fondo oscuro en un cuadro de navegación o cuadro de información . El parámetro aceptará nombres de color HTML/CSS establecidos (por ejemplo, white
) y valores hexadecimales (por ejemplo, #FFFFFF
), y se escribe " color
" ya que esta es la ortografía utilizada por HTML y CSS.
Algunos parámetros poco utilizados que están ahí por si acaso:
|lc=no
(o cualquier otro valor como , , ) – un interruptor para desactivar la conversión automática en minúsculas del ancla derivada de la entrada o , si ese contenido de destino no tiene un ancla completamente en minúsculas definida (automáticamente o por un agregado manualmente ) y no es deseable crear una (por ejemplo, porque sería algo unituitivo y de otro modo inútil como "jane w. smith" para una entrada biográfica)nfalse0#target
|1=
|term=
{{term}}
{{anchor}}
|id=an_ID
– un identificador de ancla (sin espacios, debe comenzar con una letra del alfabeto) para #vincular y posiblemente otros propósitos|style=arbitrary:css;
– Directivas CSS para personalizar el estilo de la instancia|class=css_class
– una clase o clases CSS (separadas por espacios y no por comas si hay más de una); de forma predeterminada, ya incluye glossary-link
o glossary-link-internal
(en la plantilla con el nombre correspondiente) para CSS de usuario personalizado .La plantilla para deportes de taco :{{cuegloss}}
{{ enlace glosario | glosario = Glosario de términos de deportes de taco | término = {{{ 1 }}} | texto = {{{ 2 |}}} | lc = {{{ lc |}}} }}
La variante se utiliza (como ) dentro de un artículo como Glosario de términos de deportes de taco :{{glossary link internal}}
{{gli}}
{{ gli |{{{ 1 }}} |{{{ 2 |}}} }}
{{{1}}}
es el ancla del enlace de la entrada del glosario. El opcional {{{2|}}}
es el texto que se muestra en el enlace. Ejemplos: o{{gli|obstetrics and gynaecology}}
{{gli|obstetrics and gynaecology|obstetrics and gyn[a]ecology (OB-GYN)}}
La sintaxis más completa es:{{gli}}
{{ gli | glosario = Glosario de términos de deportes de taco | término = {{{ 1 }}}| texto = {{{ 2 |}}}}}
Aquí, se especifica una página de glosario, que es necesaria si un glosario grande se ha dividido en varias páginas, y se utilizan parámetros con nombre, que serían necesarios si la entrada en ellos contuviera un carácter.=
Para aplicaciones de uso real, consulte la Plantilla:Cuegloss/doc , el artículo Glosario de términos de deportes de taco y artículos como Nine-ball que usan la plantilla para vincularse a los términos del glosario.
{{glossary}}
, , , y , las plantillas de estructura del glosario{{glossary end}}
{{term}}
{{defn}}
{{dfn}}
<dfn>
La plantilla más general{{glossary term}}
, para agregar un cuadro alineado a la derecha que contiene un enlace a un término en Wikipedia:Glosario