Template:Begin colored insert
Jump to navigation
Jump to search
This documentation is transcluded from Template:Begin colored insert/doc.
This template is a fork from wikt:fr:Modèle:début encart coloré
Usage
[edit]- 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
[edit]{{begin colored insert}}text{{end insert}}
Parameters
[edit]Template that inserts an insert whose color can be specified.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Background color | background-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
| String | optional |
Color of the outline | color-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
| String | optional |
Internal margin | padding | Margin values in CSS.
| String | optional |
Compact mode | compact | If filled in, the margin will be finer.
| Boolean | optional |
Full height | full-height | If filled in, the insert will take the full height available.
| Boolean | optional |
Example
[edit]Example n°1 (default)
[edit]- The following code :
{{begin colored insert}}Example with the default color{{end insert}}
render :
Example with the default color
Example n°2
[edit]- 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
[edit]- The following code :
{{begin colored insert|red}}Example with a red color{{end insert}}
render :
Example with a red color
Example n°3
[edit]- The following code :
{{begin colored insert|#b2f9fa}}Example with a color #b2f9fa{{end insert}}
render :
Example with a color #b2f9fa