Template:Colored bar

From OpenStreetMap Wiki
Jump to navigation Jump to search
{{{title}}}
[Edit] [Purge] Template-info.svg Template documentation

Usage

Allows you to insert a bar with a clickable title.

Remarks

It looks like the model Template:Colored box.

Syntax

Simplified syntax

{{Colored bar
 | title = 
 | title-color = 
 | title-color-background = 
 | icon = 
 | link = 
}}

Paramètres

Allows you to insert a bar with a clickable title

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Titletitle

Title of the box

Example
A guide about North Korea
Stringsuggested
Title colortitle-color

Hexadecimal color code of the title

Example
#DD3333
Stringoptional
Title background colortitle-color-background

Hexadecimal color code of the title bar background

Default
#006699
Example
#273046
Stringsuggested
Linklink

Page behind the edit button

Stringsuggested
Iconicon

Name of the file for the icon

Example
Circle-icons-chat.svg
Fileoptional
Size of the iconicon-size

Set the size of the icon

Default
20
Auto value
20
Numbersuggested
Stylestyle

Additional CSS style for the container

Example
flex: 1 1 20em;
Stringoptional

Exemple

The following code

{{Colored bar
 | title = Accueil
 | title-color = #2a4b8d
 | title-color-background = #eaf3ff
 | link = Main_Page
 | icon = Osm logo wiki.png
}}
Render :

See Also