Muestra una fila de leyenda con un cuadro de color.
{{leyenda| color de fondo | título |contorno= color del contorno |borde= borde css }}
1px solid #aaa
) del borde que se dibujará alrededor del cuadro.{{leyenda|negro|África}}{{leyenda|verde|América}}{{leyenda|azul|Oceanía}}{{leyenda|#ffa|Europa|outline=plata}}{{legend|#ff2800|Asia|outline=#A2A9B1}} (#A2A9B1 es el color del borde de wikitables ).
{{ legend | #ded <!--light green--> | El prado es verde. | outline = #00e <!--blue >> no se usará porque fue reemplazado por border-parameter--> | border = 2px solid #e00 <!--red--> | textcolor = #00e <!--blue--> | size = 200% | text = green }}
{{ leyenda | [color del cuadro de leyenda] | [texto que sigue al cuadro de leyenda] | contorno = <!--color del borde alrededor del cuadro de leyenda--> | borde = <!--se usa para especificar un estilo CSS personalizado para el borde (anula 'contorno')--> | color del texto = <!--color de 'texto'--> | tamaño = <!--tamaño de fuente 'texto'--> | texto = <!--para colocar texto dentro del cuadro de leyenda--> }}
El uso de ciertos caracteres especiales |text=
que tienen un significado en el wikitexto puede provocar resultados inesperados. Para usar * en |text=
, utilice . Para usar # en , utilice .|text={{asterisk}}
|text=
|text={{number sign}}
Plantillas que enumeran colores
Datos de plantilla para la leyenda
Muestra una fila de leyenda con un cuadro de color y un título.