Template:Begin colored insert/doc

From OpenStreetMap Wiki
Jump to navigation Jump to search
OOjs UI icon information-progressive.svg This template is a fork from https://fr.wiktionary.org/wiki/Mod%C3%A8le:d%C3%A9but_encart_color%C3%A9

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 color 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 color{{end insert}}
    render :

Example with the default color

Example n°2

  • The following code :
    {{begin colored insert|background-color=#fee7e6|color-shadow=#000}}Exemple avec une couleur bleu{{end insert}}
    render :

Exemple avec une couleur bleu

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