För att be om redigering av rättigheter på Wiki, klicka här.

Mall:Colors

Från FamilySearch Wiki
Hoppa till navigering Hoppa till sök

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

[view] [edit] [history] [purge] Documentation icon Template documentation

<img class="FCK__MWIncludeonly" src="spacer.gif" _fckfakelement="true" _fckrealelement="8" _fck_mw_includeonly="true">

[[Kategori:Mall dokumentation<img class="FCK__MWNoinclude" src="spacer.gif" _fckfakelement="true" _fckrealelement="7" _fck_mw_noinclude="true">]]<img class="FCK__MWIncludeonly" src="spacer.gif" _fckfakelement="true" _fckrealelement="6" _fck_mw_includeonly="true"><img class="FCK__MWNoinclude" src="spacer.gif" _fckfakelement="true" _fckrealelement="5" _fck_mw_noinclude="true">

Usage[redigera wikitext]

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.

See also[redigera wikitext]

  • {{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)

Examples[redigera wikitext]

{{colors|#ffffff|#000000|From [[FamilySearch Wiki]], free genealogy research help.}} gives: <span style="background: #000000; color: #ffffff">From FamilySearch Wiki, free genealogy research help.

{{colors|#aa0000|#009999|From [[FamilySearch Wiki]], free genealogy research help.}} gives: <span style="background: #009999; color: #aa0000">From FamilySearch Wiki, free genealogy research help.

{{colors|white|black|From [[FamilySearch Wiki]], free genealogy research help.}} gives: <span style="background: black; color: white">From FamilySearch Wiki, free genealogy research help.

{{colors|yellow|grey|From [[FamilySearch Wiki]], free genealogy research help.}} gives: <span style="background: grey; color: yellow">From FamilySearch Wiki, free genealogy research help.

{{colors|blue|silver|From [[FamilySearch Wiki]], free genealogy research help.}} gives: <span style="background: silver; color: blue">From FamilySearch Wiki, free genealogy research help.

{{colors|grey|yellow|From [[FamilySearch Wiki]], free genealogy research help.}} gives: <span style="background: yellow; color: grey">From FamilySearch Wiki, free genealogy research help.

{{colors|black|aqua|From [[FamilySearch Wiki]], free genealogy research help.}} gives: <span style="background: aqua; color: black">From FamilySearch Wiki, free genealogy research help.

Standard color names[redigera wikitext]

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
orange #FF7F00

See also[redigera wikitext]

" style=" background-color: #ecfcf4; ">