Template:Begin colored insert/doc
Jump to navigation
Jump to search
This is a documentation subpage for Template:Begin colored insert. It contains usage information, categories and other content or metadata that is not part of the original template. |
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 colour 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
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