Template:Box: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
<pre> | <pre> | ||
{{Box | {{Box | ||
|color= <blue|green|grey|yellow> | |color= <blue|green|grey|yellow|red|purple> | ||
|width= | |width= | ||
|height= | |height= | ||
Line 15: | Line 15: | ||
=== Parameters === | === Parameters === | ||
; color : The color of the box. Default: <code>grey</code>. Options: <code>blue</code>, <code>green</code>, <code>grey</code>, <code>yellow</code> | ; color : The color of the box. Default: <code>grey</code>. Options: <code>blue</code>, <code>green</code>, <code>grey</code>, <code>yellow</code>, <code>red</code>, <code>purple</code> | ||
; width : If specified, the width of the box. It | ; width : If specified, the width of the box. It must be specified in pixels (px) or percentage (%). | ||
; height : If specified, the height of the box. It | ; height : If specified, the height of the box. It must be specified in pixels (px). | ||
; title : If specified, a title will be shown. | ; title : If specified, a title will be shown. | ||
; text : The text in the box. Other templates and transcluded pages can be specified. | ; text : The text in the box. Other templates and transcluded pages can be specified. |
Revision as of 15:07, 20 October 2017
The {{box}}
template may be used to add a colored box with title (optional) and text.
Usage
{{Box |color= <blue|green|grey|yellow|red|purple> |width= |height= |title= |text= }}
Parameters
- color
- The color of the box. Default:
grey
. Options:blue
,green
,grey
,yellow
,red
,purple
- width
- If specified, the width of the box. It must be specified in pixels (px) or percentage (%).
- height
- If specified, the height of the box. It must be specified in pixels (px).
- title
- If specified, a title will be shown.
- text
- The text in the box. Other templates and transcluded pages can be specified.
Examples
{{Box|color=blue|width=500px|height=150px|title=This is the title|text=Here comes the text.}}
|