Template:Font color

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Documentationviewedithistorypurge
This documentation is transcluded from Template:Font color/doc.


Usage[edit]

{{Font color|text color|text}} or
{{Font color|text color|background color|text}}

All parameters except text are optional.


Code Result Notes
{{Font color||no color}} no color default is unformatted text
{{Font color|blue|this is about plants}} this is about plants blue text
{{Font color|#0033CC|this is about plants}} this is about plants Hex triplet codes also work
{{Font color||red|text with red background}} text with red background background only, no text color parameter
{{Font color|red|yellow| ''red'' text on '''yellow''' background}}  red text on yellow background wikitext and HTML markup can be used

See also[edit]