Jump to content

Template:Colored bar

From Wikifunctions
Template documentation

Produces a colored bar that may then be decorated with text and/or an icon.
Example:
{{Colored bar|title=This is just an example.|title-color=green|link=Cat|style = text-align: center; font-size:20px;|background=#abcdef|icon=smile.svg}}


A template that produces a coloured bar spanning the width of the page; may have text.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
title-background-colortitle-background-color

no description

Unknownoptional
background-colorbackground-color

no description

Unknownoptional
Background Colorbackground

Controls the background color of the entire bar. Use HTML color names, hex color code, or HSL/HSLA.

Example
#AAAFFF, peru, hsla(68, 61%, 47%, 1)
Unknownoptional
stylestyle

Additional CSS to format.

Example
font-family: Arial; text-align: center;
Unknownoptional
iconicon

Adds a small image to the left of the text. Type the image name without an Image: or File: prefix.

Example
Example.png
Fileoptional
linklink

Creates a link in the title text.

Unknownoptional
Text Colortitle-color

The color you want the text in the bar to be.

Example
#F4C430, green
Unknownoptional
Texttitle

The text you want to appear in the bar, displays in bold text.

Example
Cats are nice!
Unknownoptional