Osobiste
User menu

Szablon:Colors

Z Ancestris

(Różnice między wersjami)
(Utworzył nową stronę „<span style="background: {{{2}}}; color: {{{1}}}">{{{3}}}</span><noinclude> === Usage === Guts: '''<nowiki><span style="background: {{{2}}}; color: {{{1}}}">{{{3}}...”)

Wersja z 12:17, 12 kwi 2016

{{{3}}}

Usage

Guts: <span style="background: {{{2}}}; color: {{{1}}}">{{{3}}}</span>

Sets foreground and background colors of a given text. They can be specified by name or in the format #dddddd (RGB hex triplet).

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.


Syntaxe

{{colors|foreground_color|background_color|text}}

Example:

{{colors|#ffffff|#000000|white text on a black background}}

white text on a black background


Examples

From Wikipedia, the free encyclopedia. gives: From Wikipedia, the free encyclopedia.

From Wikipedia, the free encyclopedia. gives: From Wikipedia, the free encyclopedia.

From Wikipedia, the free encyclopedia. gives: From Wikipedia, the free encyclopedia.

From Wikipedia, the free encyclopedia. gives: From Wikipedia, the free encyclopedia.

From Wikipedia, the free encyclopedia. gives: From Wikipedia, the free encyclopedia.

From Wikipedia, the free encyclopedia. gives: From Wikipedia, the free encyclopedia.

From Wikipedia, the free encyclopedia. gives: From Wikipedia, the free encyclopedia.


See also

  • {{Colors}} – background/text color (text in free span)
  • {{TextColors}} – background/text color (text in block table)
  • {{bkg}} – background color (text in free span)
  • {{bg}} – background color (text in free span)