Jump to content

Template:Font color/doc

From Fifth Empire Wiki
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 tickY {{ font color | green | violet | Wikipedia:Example | link=yes }} → Wikipedia:Example (a |link= {{ font color }})
  • N{{ font color | green | violet | the [[Wikipedia:Example]] page}} → the Wikipedia:Example page (Text with [[wikilink brackets]] overrides the designated color)
  • N{{ 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

See also

File:SVG Recognized color keyword names.svg
SVG's color keywords that can be used as a keyword value.