Template:Colored bar/doc

From OpenStreetMap Wiki
Jump to navigation Jump to search
OOjs UI icon information-progressive.svgThis template is a fork from https://fr.wikipedia.org/wiki/Mod%C3%A8le:Barre_color%C3%A9e

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 :

Accueil

See Also