Predefinição:Cores
Usage
[editar]{{Colors| background | foreground | text }}
Sets foreground and background colors of a block of inline text. Colors can be specified by name, or (RGB hex triplet) in #DDDDDD format.
Unless in the case of personal use on a user page, use this template with great caution:
- A poor contrast may make the text difficult or impossible to read.
- The contrast can be experienced as even poorer in the case of color blindness.
- Links have a color according to user settings; they become invisible if this color is equal to the background color.
Examples
[editar]{{colors|#ffffff|#000000|From [[w:Wikipédia|Wikipedia]], the free [[w:enciclopédia|encyclopedia]].}} gives: From Wikipedia, the free encyclopedia.
{{colors|#aa0000|#009999|From [[w:Wikipédia|Wikipedia]], the free [[w:enciclopédia|encyclopedia]].}} gives: From Wikipedia, the free encyclopedia.
{{colors|white|black|From [[w:Wikipédia|Wikipedia]], the free [[w:enciclopédia|encyclopedia]].}} gives: From Wikipedia, the free encyclopedia.
{{colors|yellow|grey|From [[w:Wikipédia|Wikipedia]], the free [[w:enciclopédia|encyclopedia]].}} gives: From Wikipedia, the free encyclopedia.
{{colors|blue|silver|From [[w:Wikipédia|Wikipedia]], the free [[w:enciclopédia|encyclopedia]].}} gives: From Wikipedia, the free encyclopedia.
{{colors|grey|yellow|From [[w:Wikipédia|Wikipedia]], the free [[w:enciclopédia|encyclopedia]].}} gives: From Wikipedia, the free encyclopedia.
{{colors|black|aqua|From [[w:Wikipédia|Wikipedia]], the free [[w:enciclopédia|encyclopedia]].}} gives: From Wikipedia, the free encyclopedia.
Standard color names
[editar]The HTML 4.01 specification defines sixteen named colors, as follows:
Color | Hexadecimal | Color | Hexadecimal |
---|---|---|---|
black | #000000 | silver | #c0c0c0 |
gray | #808080 | white | #ffffff |
maroon | #800000 | red | #ff0000 |
purple | #800080 | fuchsia | #ff00ff |
green | #008000 | lime | #00ff00 |
olive | #808000 | yellow | #ffff00 |
navy | #000080 | blue | #0000ff |
teal | #008080 | aqua | #00ffff |
See also
[editar]A documentação acima é transcluída de Predefinição:Cores/doc. (editar | histórico) Editores podem experimentar nas páginas de teste (criar | espelhar) e de exemplos para testes (criar) desta predefinição. Por favor adicione categorias à subpágina /doc. Subpáginas desta predefinição. |