Template:Begin colored insert

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

Usage

The template Template:begin colored insert must be used with Template:end insert.
For colors, it is recommended to use the colors of the Wikimedia Foundation

Syntax

{{begin colored insert}}text{{end insert}}

Parameters

Template that inserts an insert whose colour can be specified.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Background colorbackground-color 1

This argument is used to color the bottom of the box, for example: blue, green, yellow, orange, medium green, red, gray, white, black, transp

Default
#FCFCFC
Example
blue, green, #fee7e6
Stringoptional
Color of the outlinecolor-shadow 2

This argument is used to color the outline of the box, for example: blue, green, yellow, orange, medium green, red, gray, white, black, transp

Default
#999
Example
blue, green, #fee7e6
Stringoptional
Internal marginpadding

Margin values in CSS.

Example
0.5em 1em
Stringoptional
Compact modecompact

If filled in, the margin will be finer.

Example
1
Booleanoptional
Full heightfull-height

If filled in, the insert will take the full height available.

Example
1
Booleanoptional

Example

Example n°1 (default)

  • The following code :
    {{begin colored insert}}Example with the default colour{{end insert}}
    render :

Example with the default color

Example n°2

  • The following code :
    {{begin colored insert|background-color=#fee7e6|color-shadow=#000}}Example with a blue color{{end insert}}
    render :

Example with a blue color

Example n°3

  • The following code :
    {{begin colored insert|red}}Example with a red color{{end insert}}
    render :

Example with a red color

Example n°3

  • The following code :
    {{begin colored insert|#b2f9fa}}Example with a color #b2f9fa{{end insert}}
    render :

Example with a color #b2f9fa

See Also