Template:Font color/doc
Appearance
colorTemplate:Bigbg=yellow | text = default text in yellow background }} | default text in yellow background
|-
| {{ font color | white | black | white with black background }}
| white with black background
|-
| {{ font color | #ffffff | #000000 | white with black background }} ([[hexadecimal colors]])
| white with black background (hexadecimal colors)
|}
| Markup | Renders as |
|---|---|
{{ font color | white | blue | Wikipedia:Example | link = yes }}
|
Wikipedia:Example |
{{ font color | white | blue | Wikipedia:Example | link = Wikipedia:Sandbox }}
|
Wikipedia:Example |
{{ font color | text = Wikipedia:Example | link = Wikipedia:Sandbox | bg
= blue | fg = white }}
|
Wikipedia:Example |
The |link= parameter is a good way to colorize wikilinks,
and it is about as much typing as the pipe trick.
Although a wikilink accepts a font color (or other template or markup):
Template:BigWikipedia:ExampleTemplate:Big{{font color|white|blue|the Wikipedia:Example page}}Template:Big- → the Wikipedia:Example page (a font-colored link),
a font color does not accept a wikilink, it creates wikilinks itself with |link=.
- Green tick {{ font color | green | violet | Wikipedia:Example | link=yes }} → Wikipedia:Example (a
|link={{ font color }}) - ☒{{ font color | green | violet | the [[Wikipedia:Example]] page}} → the Wikipedia:Example page (Text with [[wikilink brackets]] overrides the designated color)
- ☒{{ font color | green | violet | [[Wikipedia:Exammple]] }} → the Wikipedia:Exammple page (Text with [[wikilink brackets]] overrides the designated color)
For actual mainspace template usage, here are search links for
- all usage.
- where
|link=is used. - hastemplate: "font color" prefix:F showing its use in articles whose title begins with the letter "F".
See also
- Important Manual of Style information
- Web colors
- HTML color names
- List of colors
- Help: Link color
- {{color}}
- {{background color}}
- {{coltit}} — colored table header cell
- {{color contrast ratio}}
- {{hilite}}
- {{font}}
- {{tq}}
- {{xt}}